/[smecontribs]/rpms/smeserver-extrarepositories/contribs9/smeserver-extrarepositories.spec
ViewVC logotype

Diff of /rpms/smeserver-extrarepositories/contribs9/smeserver-extrarepositories.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.17 by jpp, Sat Dec 29 04:21:21 2018 UTC Revision 1.25 by jpp, Sun Jan 27 17:02:31 2019 UTC
# Line 1  Line 1 
1  %define name smeserver-extrarepositories  %define name smeserver-extrarepositories
2  %define version 0.1  %define version 0.1
3  %define release 12  %define release 20
4  Summary: easy configuration of extra yum repo  Summary: easy configuration of extra yum repo
5  Name: %{name}  Name: %{name}
6  Version: %{version}  Version: %{version}
# Line 18  AutoReqProv: no Line 18  AutoReqProv: no
18  Provides configuration for external yum repository comaptible with Koozali SME Server.  Provides configuration for external yum repository comaptible with Koozali SME Server.
19    
20  %changelog  %changelog
21    * Sun Jan 27 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-20.sme
22    - add node repos [SME: 10727]
23    
24    * Fri Jan 04 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-19.sme
25    - improve zmrepo migrate fragment to avoid action if not needed.
26    - migrate fragment for openfusion
27    
28    * Fri Jan 04 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-18.sme
29    - remove perl-version from pkg lists
30    
31    * Fri Jan 04 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-17.sme
32    - revised Include and Exclude to prevident accidental update
33    - updated incorrect changelog dates
34    
35    * Thu Jan 03 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-16.sme
36    - Add more Excludes to Openfusion
37    
38    * Tue Jan 01 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-15.sme
39    - Exclude mod_perl and other files from OpenFusion repo
40    
41    * Sat Dec 29 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-14.sme
42    - fix typo in asterisk-current
43    - fix typo in migrate fragment for zmrepo
44    - renamed digium as digium-current
45    
46  * Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-12.sme  * Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-12.sme
47  - zoneminder needs ffmpeg from zmrepo [SME: 10539]  - zoneminder needs ffmpeg from zmrepo [SME: 10539]
48    
# Line 126  REPO['EnableGroups']='yes' Line 151  REPO['EnableGroups']='yes'
151  REPO['GPGCheck']='no'  REPO['GPGCheck']='no'
152  REPO['Visible']='no'  REPO['Visible']='no'
153  REPO['status']='disabled'  REPO['status']='disabled'
154  REPO['BaseURL']='http://packages.asterisk.org/centos$releasever/current/$basearch/'  REPO['BaseURL']='http://packages.asterisk.org/centos/$releasever/current/$basearch/'
155  REPO['MirrorList']=''  REPO['MirrorList']=''
156  REPO['GPGKey']=''  REPO['GPGKey']=''
157  REPO['Exclude']=''  REPO['Exclude']=''
# Line 138  createrepo Line 163  createrepo
163  # Digium Repo  # Digium Repo
164  #####################  #####################
165  #####################  #####################
166  REPO['reponame']='digium'  REPO['reponame']='digium-current'
167  REPO['fullreponame']='Digium packages - EL'  REPO['fullreponame']='Digium packages - EL'
168  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
169  REPO['Visible']='no'  REPO['Visible']='no'
# Line 416  REPO['fullreponame']='Libreswan' Line 441  REPO['fullreponame']='Libreswan'
441  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
442  REPO['Visible']='no'  REPO['Visible']='no'
443  REPO['status']='disabled'  REPO['status']='disabled'
444  REPO['BaseURL']='http://download.libreswan.org/binaries/rhel/6/x86_64/'  REPO['BaseURL']='http://download.libreswan.org/binaries/rhel/$releasever/$basearch/'
445  REPO['MirrorList']=''  REPO['MirrorList']=''
446  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
447  REPO['GPGKey']='http://download.libreswan.org/binaries/RPM-GPG-KEY-libreswan'  REPO['GPGKey']='http://download.libreswan.org/binaries/RPM-GPG-KEY-libreswan'
# Line 425  REPO['IncludePkgs']='' Line 450  REPO['IncludePkgs']=''
450  createrepo  createrepo
451    
452    
453    #####################
454    #####################
455    # NodeJS 4
456    #####################
457    #####################
458    REPO['reponame']='node4'
459    REPO['fullreponame']='NodeJS 4'
460    REPO['EnableGroups']='no'
461    REPO['Visible']='no'
462    REPO['status']='disabled'
463    REPO['BaseURL']='https://rpm.nodesource.com/pub_4.x/el/$releasever/$basearch/'
464    REPO['MirrorList']=''
465    REPO['GPGCheck']='no'
466    REPO['GPGKey']='https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
467    REPO['Exclude']=''
468    REPO['IncludePkgs']=''
469    createrepo
470    
471    #####################
472    #####################
473    # NodeJS 5
474    #####################
475    #####################
476    REPO['reponame']='node5'
477    REPO['fullreponame']='NodeJS 5'
478    REPO['EnableGroups']='no'
479    REPO['Visible']='no'
480    REPO['status']='disabled'
481    REPO['BaseURL']='https://rpm.nodesource.com/pub_5.x/el/$releasever/$basearch/'
482    REPO['MirrorList']=''
483    REPO['GPGCheck']='no'
484    REPO['GPGKey']='https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
485    REPO['Exclude']=''
486    REPO['IncludePkgs']=''
487    createrepo
488    
489    #####################
490    #####################
491    # NodeJS 6
492    #####################
493    #####################
494    REPO['reponame']='node6'
495    REPO['fullreponame']='NodeJS 6'
496    REPO['EnableGroups']='no'
497    REPO['Visible']='no'
498    REPO['status']='disabled'
499    REPO['BaseURL']='https://rpm.nodesource.com/pub_6.x/el/$releasever/$basearch/'
500    REPO['MirrorList']=''
501    REPO['GPGCheck']='no'
502    REPO['GPGKey']='https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
503    REPO['Exclude']=''
504    REPO['IncludePkgs']=''
505    createrepo
506    
507    #####################
508    #####################
509    # NodeJS 7
510    #####################
511    #####################
512    REPO['reponame']='node7'
513    REPO['fullreponame']='NodeJS 7'
514    REPO['EnableGroups']='no'
515    REPO['Visible']='no'
516    REPO['status']='disabled'
517    REPO['BaseURL']='https://rpm.nodesource.com/pub_7.x/el/$releasever/$basearch/'
518    REPO['MirrorList']=''
519    REPO['GPGCheck']='no'
520    REPO['GPGKey']='https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
521    REPO['Exclude']=''
522    REPO['IncludePkgs']=''
523    createrepo
524    
525    #####################
526    #####################
527    # NodeJS
528    #####################
529    #####################
530    REPO['reponame']='node8'
531    REPO['fullreponame']='NodeJS 8'
532    REPO['EnableGroups']='no'
533    REPO['Visible']='no'
534    REPO['status']='disabled'
535    REPO['BaseURL']='https://rpm.nodesource.com/pub_8.x/el/$releasever/$basearch/'
536    REPO['MirrorList']=''
537    REPO['GPGCheck']='no'
538    REPO['GPGKey']='https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
539    REPO['Exclude']=''
540    REPO['IncludePkgs']=''
541    createrepo
542    
543    #####################
544    #####################
545    # NodeJS 9
546    #####################
547    #####################
548    REPO['reponame']='node9'
549    REPO['fullreponame']='NodeJS 9'
550    REPO['EnableGroups']='no'
551    REPO['Visible']='no'
552    REPO['status']='disabled'
553    REPO['BaseURL']='https://rpm.nodesource.com/pub_9.x/el/$releasever/$basearch/'
554    REPO['MirrorList']=''
555    REPO['GPGCheck']='no'
556    REPO['GPGKey']='https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
557    REPO['Exclude']=''
558    REPO['IncludePkgs']=''
559    createrepo
560    
561    #####################
562    #####################
563    # NodeJS 10
564    #####################
565    #####################
566    REPO['reponame']='node10'
567    REPO['fullreponame']='NodeJS 10'
568    REPO['EnableGroups']='no'
569    REPO['Visible']='no'
570    REPO['status']='disabled'
571    REPO['BaseURL']='https://rpm.nodesource.com/pub_10.x/el/$releasever/$basearch/'
572    REPO['MirrorList']=''
573    REPO['GPGCheck']='no'
574    REPO['GPGKey']='https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
575    REPO['Exclude']=''
576    REPO['IncludePkgs']=''
577    createrepo
578    
579    #####################
580    #####################
581    # NodeJS 11
582    #####################
583    #####################
584    REPO['reponame']='node11'
585    REPO['fullreponame']='NodeJS 11'
586    REPO['EnableGroups']='no'
587    REPO['Visible']='no'
588    REPO['status']='disabled'
589    REPO['BaseURL']='https://rpm.nodesource.com/pub_11.x/el/$releasever/$basearch/'
590    REPO['MirrorList']=''
591    REPO['GPGCheck']='no'
592    REPO['GPGKey']='https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
593    REPO['Exclude']=''
594    REPO['IncludePkgs']=''
595    createrepo
596    
597    
598    
599  if  ( "%{?dist}"  == "el7" ); then  if  ( "%{?dist}"  == "el7" ); then
600  #####################  #####################
601  #####################  #####################
# Line 495  REPO['BaseURL']='http://repo.openfusion. Line 666  REPO['BaseURL']='http://repo.openfusion.
666  REPO['MirrorList']=''  REPO['MirrorList']=''
667  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
668  REPO['GPGKey']='http://repo.openfusion.net/RPM-GPG-KEY-openfusion'  REPO['GPGKey']='http://repo.openfusion.net/RPM-GPG-KEY-openfusion'
669  REPO['Exclude']=''  REPO['Exclude']='perl-Devel-StackTrace,perl-ExtUtils-MakeMaker,perl-List-MoreUtils,perl-Exporter-Tiny,perl-ExtUtils-Install,perl-parent'
670  REPO['IncludePkgs']=''  REPO['IncludePkgs']='perl-Algorithm-C3,perl-App-cpanminus,perl-B-Hooks-EndOfScope,perl-B-Hooks-OP-Check,perl-CPAN-Metanoarch,perl-Carp,perl-Class-C3,perl-Class-Load,perl-Class-Load-XS,perl-Class-Method-Modifiers,perl-Class-Singleton,perl-Class-XSAccessor,perl-Clone-PP,perl-Data-Dumper-Concise,perl-Data-IEEE754,perl-Data-OptList,perl-Data-Printer,perl-Data-Validate-IP,perl-DateTime,perl-DateTime-Locale,perl-DateTime-TimeZone,perl-Devel-GlobalDestruction,perl-Dist-CheckConflicts,perl-Eval-Closure,perl-Exporter-Tiny,perl-ExtUtils-CBuilder,perl-ExtUtils-Install,perl-ExtUtils-Manifest,perl-File-HomeDir,perl-File-Which,perl-GeoIP2,perl-Hash-FieldHash,perl-IPC-Cmd,perl-Lexical-SealRequireHints,perl-List-AllUtils,perl-Locale-Maketext-Simple,perl-MRO-Compat,perl-Math-Int128,perl-Math-Int64,perl-MaxMind-DB-Common,perl-MaxMind-DB-Reader,perl-Module-Build,perl-Module-CoreList,perl-Module-Implementation,perl-Module-Load,perl-Module-Load-Conditional,perl-Module-Runtime,perl-Moo,perl-MooX-StrictConstructor,perl-MooX-Types-MooseLike,perl-Moose,perl-Net-Works,perl-Package-DeprecationManager,perl-Package-Stash,perl-Package-Stash-XS,perl-Params-Check,perl-Params-Classify,perl-Params-Validate,perl-Perl-OSType,perl-Role-Tiny,perl-Scalar-List-Utils,perl-Socket,perl-Sort-Naturally,perl-Sub-Exporter,perl-Sub-Exporter-Progressive,perl-Sub-Identify,perl-Sub-Install,perl-Sub-Name,perl-Sub-Quote,perl-Task-Weaken,perl-Term-ANSIColor,perl-Test-Warnings,perl-Throwable,perl-Try-Tiny,perl-Variable-Magic,perl-bareword-filehandles,perl-indirect,perl-multidimensional,perl-namespace-autoclean,perl-namespace-clean,perl-strictures,perl-Devel-StackTrace,perl-ExtUtils-MakeMaker,perl-List-MoreUtils,perl-parent'
671  createrepo  createrepo
672    
673  #####################  #####################
# Line 903  cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smi Line 1074  cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smi
1074      {      {
1075          my $repo = $DB->get($name) or next;          my $repo = $DB->get($name) or next;
1076          my $BaseURL = $repo->prop('BaseURL') || '';          my $BaseURL = $repo->prop('BaseURL') || '';
1077          $BaseURL = s/zmrepo.mehvc.com/zmrepo.zoneminder.com/g;          if ($BaseURL =~ s/zmrepo.mehvc.com/zmrepo.zoneminder.com/g)
1078          $repo->set_prop('Exclude', join(',', @exclude));                  {$repo->set_prop('BaseURL', $BaseURL);}
1079            $repo->delete('Exclude') if $repo->prop('delete');
1080      }      }
1081    
1082  }  }
1083    
1084  EOF  EOF
1085    
1086    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10asterisk
1087    {
1088        for my $name ( qw(asterisk-current) )
1089        {
1090            my $repo = $DB->get($name) or next;
1091            my $BaseURL = $repo->prop('BaseURL') || '';
1092            if ($BaseURL =~ s/centos\$/centos\/\$/g)
1093                    {$repo->set_prop('BaseURL', $BaseURL);}
1094        }
1095    
1096    }
1097    
1098    EOF
1099    
1100    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10openfusion
1101    {
1102        my @addexclude = split(/,/,"perl-Devel-StackTrace,perl-ExtUtils-MakeMaker,perl-List-MoreUtils,perl-Exporter-Tiny,perl-ExtUtils-Install,perl-parent");
1103        my %removeexclude = map { $_ => 1 } split(/[,; ]+/, 'perl-version');
1104        my @addinclude = split(/,/,"perl-Algorithm-C3,perl-App-cpanminus,perl-B-Hooks-EndOfScope,perl-B-Hooks-OP-Check,perl-CPAN-Metanoarch,perl-Carp,perl-Class-C3,perl-Class-Load,perl-Class-Load-XS,perl-Class-Method-Modifiers,perl-Class-Singleton,perl-Class-XSAccessor,perl-Clone-PP,perl-Data-Dumper-Concise,perl-Data-IEEE754,perl-Data-OptList,perl-Data-Printer,perl-Data-Validate-IP,perl-DateTime,perl-DateTime-Locale,perl-DateTime-TimeZone,perl-Devel-GlobalDestruction,perl-Dist-CheckConflicts,perl-Eval-Closure,perl-Exporter-Tiny,perl-ExtUtils-CBuilder,perl-ExtUtils-Install,perl-ExtUtils-Manifest,perl-File-HomeDir,perl-File-Which,perl-GeoIP2,perl-Hash-FieldHash,perl-IPC-Cmd,perl-Lexical-SealRequireHints,perl-List-AllUtils,perl-Locale-Maketext-Simple,perl-MRO-Compat,perl-Math-Int128,perl-Math-Int64,perl-MaxMind-DB-Common,perl-MaxMind-DB-Reader,perl-Module-Build,perl-Module-CoreList,perl-Module-Implementation,perl-Module-Load,perl-Module-Load-Conditional,perl-Module-Runtime,perl-Moo,perl-MooX-StrictConstructor,perl-MooX-Types-MooseLike,perl-Moose,perl-Net-Works,perl-Package-DeprecationManager,perl-Package-Stash,perl-Package-Stash-XS,perl-Params-Check,perl-Params-Classify,perl-Params-Validate,perl-Perl-OSType,perl-Role-Tiny,perl-Scalar-List-Utils,perl-Socket,perl-Sort-Naturally,perl-Sub-Exporter,perl-Sub-Exporter-Progressive,perl-Sub-Identify,perl-Sub-Install,perl-Sub-Name,perl-Sub-Quote,perl-Task-Weaken,perl-Term-ANSIColor,perl-Test-Warnings,perl-Throwable,perl-Try-Tiny,perl-Variable-Magic,perl-bareword-filehandles,perl-indirect,perl-multidimensional,perl-namespace-autoclean,perl-namespace-clean,perl-strictures,perl-Devel-StackTrace,perl-ExtUtils-MakeMaker,perl-List-MoreUtils,perl-parent");
1105        my %removeinclude = map { $_ => 1 } split(/[,; ]+/, '');
1106    
1107        for my $name ( qw(openfusion) )
1108        {
1109            my $repo = $DB->get($name) or next;
1110    
1111            my @exclude = split(/,/, $repo->prop('Exclude') || '');
1112            push @exclude, @addexclude;
1113            @exclude = grep(!defined $removeexclude{$_} , @exclude);
1114            # remove duplicates
1115            undef %saw;
1116            @exclude = grep(!$saw{$_}++, @exclude);
1117            if ($#exclude >= 0)
1118            {
1119                $repo->set_prop('Exclude', join(',', @exclude));
1120            }
1121            else
1122            {
1123                $repo->delete('Exclude');
1124            }
1125    
1126            my @include = split(/,/, $repo->prop('IncludePkgs') || '');
1127            push @include, @addinclude;
1128            @include = grep(!defined $removeinclude{$_} , @include);
1129            # remove duplicates
1130            undef %saw;
1131            @include = grep(!$saw{$_}++, @include);
1132            if ($#include >= 0)
1133            {
1134                $repo->set_prop('IncludePkgs', join(',', @include));
1135            }
1136            else
1137            {
1138                $repo->delete('IncludePkgs');
1139            }
1140    
1141    
1142    
1143        }
1144    
1145    }
1146    
1147    EOF
1148    
1149    
1150    
# Line 936  cat %{name}-%{version}-filelist| grep od Line 1170  cat %{name}-%{version}-filelist| grep od
1170  fi  fi
1171  cat %{name}-%{version}-filelist| grep okay                      > %{name}-%{version}-filelist-okay  cat %{name}-%{version}-filelist| grep okay                      > %{name}-%{version}-filelist-okay
1172  cat %{name}-%{version}-filelist| grep openfusion                > %{name}-%{version}-filelist-openfusion  cat %{name}-%{version}-filelist| grep openfusion                > %{name}-%{version}-filelist-openfusion
1173    cat %{name}-%{version}-filelist| grep node                      > %{name}-%{version}-filelist-node
1174  cat %{name}-%{version}-filelist| grep reetp                     > %{name}-%{version}-filelist-reetp  cat %{name}-%{version}-filelist| grep reetp                     > %{name}-%{version}-filelist-reetp
1175  cat %{name}-%{version}-filelist| grep remi-safe                 > %{name}-%{version}-filelist-remi-safe  cat %{name}-%{version}-filelist| grep remi-safe                 > %{name}-%{version}-filelist-remi-safe
1176  cat %{name}-%{version}-filelist| grep remi-ocsinventory         > %{name}-%{version}-filelist-remi-ocsinventory  cat %{name}-%{version}-filelist| grep remi-ocsinventory         > %{name}-%{version}-filelist-remi-ocsinventory
# Line 1057  Geekery Repository Line 1292  Geekery Repository
1292  %package libreswan  %package libreswan
1293  Summary: Libreswan Repository  Summary: Libreswan Repository
1294  %description libreswan  %description libreswan
1295  Geekery Repository  Libreswan Repository
1296  %files libreswan -f  %{name}-%{version}-filelist-libreswan  %files libreswan -f  %{name}-%{version}-filelist-libreswan
1297  %defattr(-,root,root)  %defattr(-,root,root)
1298    
1299    %package node
1300    Summary: NodeJS Repositories
1301    %description node
1302    NodeJS Repositories
1303    %files node -f  %{name}-%{version}-filelist-node
1304    %defattr(-,root,root)
1305    
1306  %package odoo  %package odoo
1307  Summary: Odoo 10 Nightly - EL7 Repository  Summary: Odoo 10 Nightly - EL7 Repository
1308  Distribution: el7  Distribution: el7


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed