/[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.7 by jpp, Tue Mar 13 02:10:05 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 3  %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
47    - zoneminder needs ffmpeg from zmrepo [SME: 10539]
48    
49    * Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-11.sme
50    - zmrepo url has changed [SME: 10675]
51    
52    * Fri Nov 30 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-7.sme
53    - Add libreswan repo  [SME: 10605]
54    - remove duplicate remi-safe entry
55    
56    * Mon Jun 25 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-6.sme
57    - Update reetp URL  [SME: 10604]
58    
59    * Tue May 08 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-5.sme
60    - add elrepo-kernel repo  [SME: 10581]
61    
62    * Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-4.sme
63    - exclude ffmpeg-2.6.4 and celt-0.11 from zmrepo [SME: 10543]
64    - add Sogo4 repo + migrate to exclude gnustep from epel if sogo repo present
65    
66  * Sun Feb 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-3.sme  * Sun Feb 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-3.sme
67  - fix wrong escape sequence for $basearch and $releasever [SME: 10239]  - fix wrong escape sequence for $basearch and $releasever [SME: 10239]
68    
# Line 77  return 0 Line 122  return 0
122    
123    
124    
 #remi-safe  
 REPO['reponame']='remi-safe'  
 REPO['fullreponame']='Remi - safe'  
 REPO['EnableGroups']='no'  
 REPO['GPGCheck']='yes'  
 REPO['Visible']='yes'  
 REPO['status']='enabled'  
 REPO['BaseURL']='http://rpms.famillecollet.com/enterprise/$releasever/safe/$basearch/'  
 REPO['MirrorList']=''  
 REPO['GPGKey']='http://rpms.famillecollet.com/RPM-GPG-KEY-remi'  
 REPO['Exclude']=''  
 REPO['IncludePkgs']=''  
 createrepo  
   
125  ######################  ######################
126  #####################  #####################
127  # asterisk 13 LTS  # asterisk 13 LTS
# Line 120  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 132  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 217  REPO['Exclude']='' Line 248  REPO['Exclude']=''
248  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
249  createrepo  createrepo
250    
   
251  #####################  #####################
252  #####################  #####################
253  #egroupware  #egroupware
# Line 268  REPO['EnableGroups']='no' Line 298  REPO['EnableGroups']='no'
298  REPO['Visible']='no'  REPO['Visible']='no'
299  REPO['status']='disabled'  REPO['status']='disabled'
300  REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch'  REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch'
301  REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.$releasever'  REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.el$releasever'
302  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
303  REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'  REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'
304  REPO['Exclude']='clamav,spamassassin,libselinux,perl-HTML-Parser,lm_sensors,perl-IO-stringy,perl-XML-Parser,razor-agents,libgcrypt,rpm-python,libxml2,zlib,gnupg,libxml2-python,yum,module-init-tools,rpm,gettext,librpm4,glib2,perl-libwww-perl,perl-Convert-ASN1,beecrypt,fetchmail,libacl,libtool-ltdl,popt,libgpg-error,freetype,perl-MIME-tools,mutt,gd,perl-TimeDate,librpm4.4'  REPO['Exclude']='clamav,spamassassin,libselinux,perl-HTML-Parser,lm_sensors,perl-IO-stringy,perl-XML-Parser,razor-agents,libgcrypt,rpm-python,libxml2,zlib,gnupg,libxml2-python,yum,module-init-tools,rpm,gettext,librpm4,glib2,perl-libwww-perl,perl-Convert-ASN1,beecrypt,fetchmail,libacl,libtool-ltdl,popt,libgpg-error,freetype,perl-MIME-tools,mutt,gd,perl-TimeDate,librpm4.4'
# Line 277  createrepo Line 307  createrepo
307    
308  #####################  #####################
309  #####################  #####################
310    #ELRepo kernel
311    #####################
312    #####################
313    REPO['reponame']='elrepo-kernel'
314    REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository Kernel'
315    REPO['EnableGroups']='no'
316    REPO['Visible']='no'
317    REPO['status']='disabled'
318    REPO['BaseURL']='http://elrepo.org/linux/kernel/el$releasever/$basearch'
319    REPO['MirrorList']='http://elrepo.org/mirrors-elrepo-kernel.el$releasever'
320    REPO['GPGCheck']='yes'
321    REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'
322    REPO['Exclude']=''
323    REPO['IncludePkgs']=''
324    createrepo
325    
326    #####################
327    #####################
328  #EPEL  #EPEL
329  #####################  #####################
330  #####################  #####################
# Line 383  REPO['Exclude']='' Line 431  REPO['Exclude']=''
431  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
432  createrepo  createrepo
433    
434    #####################
435    #####################
436    # Libreswan
437    #####################
438    #####################
439    REPO['reponame']='libreswan'
440    REPO['fullreponame']='Libreswan'
441    REPO['EnableGroups']='no'
442    REPO['Visible']='no'
443    REPO['status']='disabled'
444    REPO['BaseURL']='http://download.libreswan.org/binaries/rhel/$releasever/$basearch/'
445    REPO['MirrorList']=''
446    REPO['GPGCheck']='yes'
447    REPO['GPGKey']='http://download.libreswan.org/binaries/RPM-GPG-KEY-libreswan'
448    REPO['Exclude']=''
449    REPO['IncludePkgs']=''
450    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 453  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 467  REPO['fullreponame']='Mirror John Crisp Line 680  REPO['fullreponame']='Mirror John Crisp
680  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
681  REPO['Visible']='yes'  REPO['Visible']='yes'
682  REPO['status']='disabled'  REPO['status']='disabled'
683  REPO['BaseURL']='https://reetspetit.com/smeserver/$releasever'  REPO['BaseURL']='https://www.reetspetit.com/smeserver/$releasever'
684  REPO['MirrorList']=''  REPO['MirrorList']=''
685  REPO['GPGCheck']='no'  REPO['GPGCheck']='no'
686  REPO['GPGKey']='https://reetspetit.com/RPM-GPG-KEY'  REPO['GPGKey']='https://www.reetspetit.com/RPM-GPG-KEY'
687  REPO['Exclude']=''  REPO['Exclude']=''
688  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
689  createrepo  createrepo
690    
691    #####################
692    #####################
693  #remi-safe  #remi-safe
694    #####################
695    #####################
696  REPO['reponame']='remi-safe'  REPO['reponame']='remi-safe'
697  REPO['fullreponame']='Remi - safe'  REPO['fullreponame']='Remi - safe'
698  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
# Line 618  createrepo Line 835  createrepo
835    
836  #####################  #####################
837  #####################  #####################
838  #Sogo3 nightly  #Sogo4 nightly
839  #####################  #####################
840  #####################  #####################
841  REPO['reponame']='sogo4'  REPO['reponame']='sogo4'
# Line 634  REPO['Exclude']='' Line 851  REPO['Exclude']=''
851  REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'  REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'
852  createrepo  createrepo
853    
   
854  #####################  #####################
855  #####################  #####################
856  #Sogo stable  #Sogo stable
# Line 778  REPO['fullreponame']='ZoneMinder Repo - Line 994  REPO['fullreponame']='ZoneMinder Repo -
994  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
995  REPO['Visible']='yes'  REPO['Visible']='yes'
996  REPO['status']='disabled'  REPO['status']='disabled'
997  REPO['BaseURL']='http://zmrepo.mehvc.com/el/$releasever/$basearch'  REPO['BaseURL']='http://zmrepo.zoneminder.com/el/$releasever/$basearch'
998  REPO['MirrorList']=''  REPO['MirrorList']=''
999  REPO['GPGCheck']='no'  REPO['GPGCheck']='no'
1000  REPO['GPGKey']=""  REPO['GPGKey']=""
# Line 787  REPO['IncludePkgs']='' Line 1003  REPO['IncludePkgs']=''
1003  createrepo  createrepo
1004    
1005    
1006    #####################################################
1007    # migrates
1008    ######################################################
1009    mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate
1010    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/90sogo
1011    {
1012        my @add = split(/[,; ]+/, 'gnustep-*');
1013        my %remove = map { $_ => 1 } split(/[,; ]+/, '');
1014    
1015        for my $name ( qw(epel) )
1016        {
1017            my $repo = $DB->get($name) or next;
1018    
1019            my @exclude = split(/,/, $repo->prop('Exclude') || '');
1020            push @exclude, @add;
1021            @exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude);
1022    
1023            # remove duplicates
1024            undef %saw;
1025            @exclude = grep(!$saw{$_}++, @exclude);
1026    
1027            if ($#exclude >= 0)
1028            {
1029                $repo->set_prop('Exclude', join(',', @exclude));
1030            }
1031            else
1032            {
1033                $repo->delete('Exclude');
1034            }
1035        }
1036    }
1037    
1038    EOF
1039    
1040    
1041    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10epel
1042    {
1043        my @add = split(/[,; ]+/, '');
1044        my %remove = map { $_ => 1 } split(/[,; ]+/, 'gnustep-*,gnustep*,gnustep-base,gnustep-make');
1045    
1046        for my $name ( qw(epel) )
1047        {
1048            my $repo = $DB->get($name) or next;
1049    
1050            my @exclude = split(/,/, $repo->prop('Exclude') || '');
1051            push @exclude, @add;
1052            @exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude);
1053    
1054            # remove duplicates
1055            undef %saw;
1056            @exclude = grep(!$saw{$_}++, @exclude);
1057    
1058            if ($#exclude >= 0)
1059            {
1060                $repo->set_prop('Exclude', join(',', @exclude));
1061            }
1062            else
1063            {
1064                $repo->delete('Exclude');
1065            }
1066        }
1067    }
1068    
1069    EOF
1070    
1071    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10zmrepo
1072    {
1073        for my $name ( qw(zmrepo) )
1074        {
1075            my $repo = $DB->get($name) or next;
1076            my $BaseURL = $repo->prop('BaseURL') || '';
1077            if ($BaseURL =~ s/zmrepo.mehvc.com/zmrepo.zoneminder.com/g)
1078                    {$repo->set_prop('BaseURL', $BaseURL);}
1079            $repo->delete('Exclude') if $repo->prop('delete');
1080        }
1081    
1082    }
1083    
1084    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    
1151    
1152    ##########################################################
1153    
1154  rm -f %{name}-%{version}-filelist*  rm -f %{name}-%{version}-filelist*
1155  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT                       > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT                       > %{name}-%{version}-filelist
1156  cat %{name}-%{version}-filelist| grep atomic                    > %{name}-%{version}-filelist-atomic  cat %{name}-%{version}-filelist| grep atomic                    > %{name}-%{version}-filelist-atomic
# Line 800  cat %{name}-%{version}-filelist| grep er Line 1164  cat %{name}-%{version}-filelist| grep er
1164  cat %{name}-%{version}-filelist| grep freeswitch                > %{name}-%{version}-filelist-freeswitch  cat %{name}-%{version}-filelist| grep freeswitch                > %{name}-%{version}-filelist-freeswitch
1165  cat %{name}-%{version}-filelist| grep fws                       > %{name}-%{version}-filelist-fws  cat %{name}-%{version}-filelist| grep fws                       > %{name}-%{version}-filelist-fws
1166  cat %{name}-%{version}-filelist| grep geekery                   > %{name}-%{version}-filelist-geekery  cat %{name}-%{version}-filelist| grep geekery                   > %{name}-%{version}-filelist-geekery
1167    cat %{name}-%{version}-filelist| grep libreswan                 > %{name}-%{version}-filelist-libreswan
1168  if  ( "%{?dist}"  == "el7" ); then  if  ( "%{?dist}"  == "el7" ); then
1169  cat %{name}-%{version}-filelist| grep odoo                      > %{name}-%{version}-filelist-odoo  cat %{name}-%{version}-filelist| grep odoo                      > %{name}-%{version}-filelist-odoo
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 923  Geekery Repository Line 1289  Geekery Repository
1289  %files geekery -f  %{name}-%{version}-filelist-geekery  %files geekery -f  %{name}-%{version}-filelist-geekery
1290  %defattr(-,root,root)  %defattr(-,root,root)
1291    
1292    %package libreswan
1293    Summary: Libreswan Repository
1294    %description libreswan
1295    Libreswan Repository
1296    %files libreswan -f  %{name}-%{version}-filelist-libreswan
1297    %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