/[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.6 by jpp, Sun Feb 18 21:16:16 2018 UTC Revision 1.19 by jpp, Sat Dec 29 05:34:06 2018 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 14
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    * Sat Dec 29 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-14.sme
22    - fix typo in asterisk-current
23    - fix typo in migrate fragment for zmrepo
24    - renamed digium as digium-current
25    
26    * Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-12.sme
27    - zoneminder needs ffmpeg from zmrepo [SME: 10539]
28    
29    * Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-11.sme
30    - zmrepo url has changed [SME: 10675]
31    
32    * Fri Nov 30 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-7.sme
33    - Add libreswan repo  [SME: 10605]
34    - remove duplicate remi-safe entry
35    
36    * Mon Jun 25 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-6.sme
37    - Update reetp URL  [SME: 10604]
38    
39    * Tue May 08 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-5.sme
40    - add elrepo-kernel repo  [SME: 10581]
41    
42    * Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-4.sme
43    - exclude ffmpeg-2.6.4 and celt-0.11 from zmrepo [SME: 10543]
44    - add Sogo4 repo + migrate to exclude gnustep from epel if sogo repo present
45    
46  * 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
47  - fix wrong escape sequence for $basearch and $releasever [SME: 10239]  - fix wrong escape sequence for $basearch and $releasever [SME: 10239]
48    
# Line 77  return 0 Line 102  return 0
102    
103    
104    
 #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  
   
105  ######################  ######################
106  #####################  #####################
107  # asterisk 13 LTS  # asterisk 13 LTS
# Line 120  REPO['EnableGroups']='yes' Line 131  REPO['EnableGroups']='yes'
131  REPO['GPGCheck']='no'  REPO['GPGCheck']='no'
132  REPO['Visible']='no'  REPO['Visible']='no'
133  REPO['status']='disabled'  REPO['status']='disabled'
134  REPO['BaseURL']='http://packages.asterisk.org/centos$releasever/current/$basearch/'  REPO['BaseURL']='http://packages.asterisk.org/centos/$releasever/current/$basearch/'
135  REPO['MirrorList']=''  REPO['MirrorList']=''
136  REPO['GPGKey']=''  REPO['GPGKey']=''
137  REPO['Exclude']=''  REPO['Exclude']=''
# Line 132  createrepo Line 143  createrepo
143  # Digium Repo  # Digium Repo
144  #####################  #####################
145  #####################  #####################
146  REPO['reponame']='digium'  REPO['reponame']='digium-current'
147  REPO['fullreponame']='Digium packages - EL'  REPO['fullreponame']='Digium packages - EL'
148  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
149  REPO['Visible']='no'  REPO['Visible']='no'
# Line 217  REPO['Exclude']='' Line 228  REPO['Exclude']=''
228  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
229  createrepo  createrepo
230    
   
231  #####################  #####################
232  #####################  #####################
233  #egroupware  #egroupware
# Line 268  REPO['EnableGroups']='no' Line 278  REPO['EnableGroups']='no'
278  REPO['Visible']='no'  REPO['Visible']='no'
279  REPO['status']='disabled'  REPO['status']='disabled'
280  REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch'  REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch'
281  REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.$releasever'  REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.el$releasever'
282  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
283  REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'  REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'
284  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 287  createrepo
287    
288  #####################  #####################
289  #####################  #####################
290    #ELRepo kernel
291    #####################
292    #####################
293    REPO['reponame']='elrepo-kernel'
294    REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository Kernel'
295    REPO['EnableGroups']='no'
296    REPO['Visible']='no'
297    REPO['status']='disabled'
298    REPO['BaseURL']='http://elrepo.org/linux/kernel/el$releasever/$basearch'
299    REPO['MirrorList']='http://elrepo.org/mirrors-elrepo-kernel.el$releasever'
300    REPO['GPGCheck']='yes'
301    REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'
302    REPO['Exclude']=''
303    REPO['IncludePkgs']=''
304    createrepo
305    
306    #####################
307    #####################
308  #EPEL  #EPEL
309  #####################  #####################
310  #####################  #####################
# Line 383  REPO['Exclude']='' Line 411  REPO['Exclude']=''
411  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
412  createrepo  createrepo
413    
414    #####################
415    #####################
416    # Libreswan
417    #####################
418    #####################
419    REPO['reponame']='libreswan'
420    REPO['fullreponame']='Libreswan'
421    REPO['EnableGroups']='no'
422    REPO['Visible']='no'
423    REPO['status']='disabled'
424    REPO['BaseURL']='http://download.libreswan.org/binaries/rhel/6/x86_64/'
425    REPO['MirrorList']=''
426    REPO['GPGCheck']='yes'
427    REPO['GPGKey']='http://download.libreswan.org/binaries/RPM-GPG-KEY-libreswan'
428    REPO['Exclude']=''
429    REPO['IncludePkgs']=''
430    createrepo
431    
432    
433  if  ( "%{?dist}"  == "el7" ); then  if  ( "%{?dist}"  == "el7" ); then
434  #####################  #####################
435  #####################  #####################
# Line 467  REPO['fullreponame']='Mirror John Crisp Line 514  REPO['fullreponame']='Mirror John Crisp
514  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
515  REPO['Visible']='yes'  REPO['Visible']='yes'
516  REPO['status']='disabled'  REPO['status']='disabled'
517  REPO['BaseURL']='https://reetspetit.com/smeserver/$releasever'  REPO['BaseURL']='https://www.reetspetit.com/smeserver/$releasever'
518  REPO['MirrorList']=''  REPO['MirrorList']=''
519  REPO['GPGCheck']='no'  REPO['GPGCheck']='no'
520  REPO['GPGKey']='https://reetspetit.com/RPM-GPG-KEY'  REPO['GPGKey']='https://www.reetspetit.com/RPM-GPG-KEY'
521  REPO['Exclude']=''  REPO['Exclude']=''
522  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
523  createrepo  createrepo
524    
525    #####################
526    #####################
527  #remi-safe  #remi-safe
528    #####################
529    #####################
530  REPO['reponame']='remi-safe'  REPO['reponame']='remi-safe'
531  REPO['fullreponame']='Remi - safe'  REPO['fullreponame']='Remi - safe'
532  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
# Line 618  createrepo Line 669  createrepo
669    
670  #####################  #####################
671  #####################  #####################
672    #Sogo4 nightly
673    #####################
674    #####################
675    REPO['reponame']='sogo4'
676    REPO['fullreponame']='Inverse SOGo 4 Repository'
677    REPO['EnableGroups']='no'
678    REPO['Visible']='yes'
679    REPO['status']='disabled'
680    REPO['BaseURL']='http://packages.inverse.ca/SOGo/nightly/4/rhel/$releasever/$basearch'
681    REPO['MirrorList']=''
682    REPO['GPGCheck']='no'
683    REPO['GPGKey']=''
684    REPO['Exclude']=''
685    REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'
686    createrepo
687    
688    #####################
689    #####################
690  #Sogo stable  #Sogo stable
691  #####################  #####################
692  #####################  #####################
# Line 759  REPO['fullreponame']='ZoneMinder Repo - Line 828  REPO['fullreponame']='ZoneMinder Repo -
828  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
829  REPO['Visible']='yes'  REPO['Visible']='yes'
830  REPO['status']='disabled'  REPO['status']='disabled'
831  REPO['BaseURL']='http://zmrepo.mehvc.com/el/$releasever/$basearch'  REPO['BaseURL']='http://zmrepo.zoneminder.com/el/$releasever/$basearch'
832  REPO['MirrorList']=''  REPO['MirrorList']=''
833  REPO['GPGCheck']='no'  REPO['GPGCheck']='no'
834  REPO['GPGKey']=""  REPO['GPGKey']=""
# Line 768  REPO['IncludePkgs']='' Line 837  REPO['IncludePkgs']=''
837  createrepo  createrepo
838    
839    
840    #####################################################
841    # migrates
842    ######################################################
843    mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate
844    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/90sogo
845    {
846        my @add = split(/[,; ]+/, 'gnustep-*');
847        my %remove = map { $_ => 1 } split(/[,; ]+/, '');
848    
849        for my $name ( qw(epel) )
850        {
851            my $repo = $DB->get($name) or next;
852    
853            my @exclude = split(/,/, $repo->prop('Exclude') || '');
854            push @exclude, @add;
855            @exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude);
856    
857            # remove duplicates
858            undef %saw;
859            @exclude = grep(!$saw{$_}++, @exclude);
860    
861            if ($#exclude >= 0)
862            {
863                $repo->set_prop('Exclude', join(',', @exclude));
864            }
865            else
866            {
867                $repo->delete('Exclude');
868            }
869        }
870    }
871    
872    EOF
873    
874    
875    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10epel
876    {
877        my @add = split(/[,; ]+/, '');
878        my %remove = map { $_ => 1 } split(/[,; ]+/, 'gnustep-*,gnustep*,gnustep-base,gnustep-make');
879    
880        for my $name ( qw(epel) )
881        {
882            my $repo = $DB->get($name) or next;
883    
884            my @exclude = split(/,/, $repo->prop('Exclude') || '');
885            push @exclude, @add;
886            @exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude);
887    
888            # remove duplicates
889            undef %saw;
890            @exclude = grep(!$saw{$_}++, @exclude);
891    
892            if ($#exclude >= 0)
893            {
894                $repo->set_prop('Exclude', join(',', @exclude));
895            }
896            else
897            {
898                $repo->delete('Exclude');
899            }
900        }
901    }
902    
903    EOF
904    
905    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10zmrepo
906    {
907        for my $name ( qw(zmrepo) )
908        {
909            my $repo = $DB->get($name) or next;
910            my $BaseURL = $repo->prop('BaseURL') || '';
911            $BaseURL =~ s/zmrepo.mehvc.com/zmrepo.zoneminder.com/g;
912            $repo->set_prop('BaseURL', $BaseURL);
913            $repo->delete('Exclude');
914        }
915    
916    }
917    
918    EOF
919    
920    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10asterisk
921    {
922        for my $name ( qw(asterisk-current) )
923        {
924            my $repo = $DB->get($name) or next;
925            my $BaseURL = $repo->prop('BaseURL') || '';
926            $BaseURL =~ s/centos\$/centos\/\$/g;
927            $repo->set_prop('BaseURL', $BaseURL);
928        }
929    
930    }
931    
932    EOF
933    
934    
935    
936    
937    ##########################################################
938    
939  rm -f %{name}-%{version}-filelist*  rm -f %{name}-%{version}-filelist*
940  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT                       > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT                       > %{name}-%{version}-filelist
941  cat %{name}-%{version}-filelist| grep atomic                    > %{name}-%{version}-filelist-atomic  cat %{name}-%{version}-filelist| grep atomic                    > %{name}-%{version}-filelist-atomic
# Line 781  cat %{name}-%{version}-filelist| grep er Line 949  cat %{name}-%{version}-filelist| grep er
949  cat %{name}-%{version}-filelist| grep freeswitch                > %{name}-%{version}-filelist-freeswitch  cat %{name}-%{version}-filelist| grep freeswitch                > %{name}-%{version}-filelist-freeswitch
950  cat %{name}-%{version}-filelist| grep fws                       > %{name}-%{version}-filelist-fws  cat %{name}-%{version}-filelist| grep fws                       > %{name}-%{version}-filelist-fws
951  cat %{name}-%{version}-filelist| grep geekery                   > %{name}-%{version}-filelist-geekery  cat %{name}-%{version}-filelist| grep geekery                   > %{name}-%{version}-filelist-geekery
952    cat %{name}-%{version}-filelist| grep libreswan                 > %{name}-%{version}-filelist-libreswan
953  if  ( "%{?dist}"  == "el7" ); then  if  ( "%{?dist}"  == "el7" ); then
954  cat %{name}-%{version}-filelist| grep odoo                      > %{name}-%{version}-filelist-odoo  cat %{name}-%{version}-filelist| grep odoo                      > %{name}-%{version}-filelist-odoo
955  fi  fi
# Line 904  Geekery Repository Line 1073  Geekery Repository
1073  %files geekery -f  %{name}-%{version}-filelist-geekery  %files geekery -f  %{name}-%{version}-filelist-geekery
1074  %defattr(-,root,root)  %defattr(-,root,root)
1075    
1076    %package libreswan
1077    Summary: Libreswan Repository
1078    %description libreswan
1079    Geekery Repository
1080    %files libreswan -f  %{name}-%{version}-filelist-libreswan
1081    %defattr(-,root,root)
1082    
1083  %package odoo  %package odoo
1084  Summary: Odoo 10 Nightly - EL7 Repository  Summary: Odoo 10 Nightly - EL7 Repository
1085  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