/[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.11 by jcrisp, Mon Nov 12 17:03:10 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 7
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    * Mon Nov 30 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-7.sme
22    - Add libreswan repo  [SME: 10605]
23    - remove duplicate remi-safe entry
24    
25    * Mon Jun 25 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-6.sme
26    - Update reetp URL  [SME: 10604]
27    
28    * Tue May 08 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-5.sme
29    - add elrepo-kernel repo  [SME: 10581]
30    
31    * Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-4.sme
32    - exclude ffmpeg-2.6.4 and celt-0.11 from zmrepo [SME: 10543]
33    - add Sogo4 repo + migrate to exclude gnustep from epel if sogo repo present
34    
35  * 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
36  - fix wrong escape sequence for $basearch and $releasever [SME: 10239]  - fix wrong escape sequence for $basearch and $releasever [SME: 10239]
37    
# Line 77  return 0 Line 91  return 0
91    
92    
93    
 #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  
   
94  ######################  ######################
95  #####################  #####################
96  # asterisk 13 LTS  # asterisk 13 LTS
# Line 217  REPO['Exclude']='' Line 217  REPO['Exclude']=''
217  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
218  createrepo  createrepo
219    
   
220  #####################  #####################
221  #####################  #####################
222  #egroupware  #egroupware
# Line 268  REPO['EnableGroups']='no' Line 267  REPO['EnableGroups']='no'
267  REPO['Visible']='no'  REPO['Visible']='no'
268  REPO['status']='disabled'  REPO['status']='disabled'
269  REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch'  REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch'
270  REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.$releasever'  REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.el$releasever'
271  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
272  REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'  REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'
273  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 276  createrepo
276    
277  #####################  #####################
278  #####################  #####################
279    #ELRepo kernel
280    #####################
281    #####################
282    REPO['reponame']='elrepo-kernel'
283    REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository Kernel'
284    REPO['EnableGroups']='no'
285    REPO['Visible']='no'
286    REPO['status']='disabled'
287    REPO['BaseURL']='http://elrepo.org/linux/kernel/el$releasever/$basearch'
288    REPO['MirrorList']='http://elrepo.org/mirrors-elrepo-kernel.el$releasever'
289    REPO['GPGCheck']='yes'
290    REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'
291    REPO['Exclude']=''
292    REPO['IncludePkgs']=''
293    createrepo
294    
295    #####################
296    #####################
297  #EPEL  #EPEL
298  #####################  #####################
299  #####################  #####################
# Line 383  REPO['Exclude']='' Line 400  REPO['Exclude']=''
400  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
401  createrepo  createrepo
402    
403    #####################
404    #####################
405    # Libreswan
406    #####################
407    #####################
408    REPO['reponame']='libreswan'
409    REPO['fullreponame']='Libreswan'
410    REPO['EnableGroups']='no'
411    REPO['Visible']='no'
412    REPO['status']='disabled'
413    REPO['BaseURL']='http://download.libreswan.org/binaries/rhel/6/x86_64/'
414    REPO['MirrorList']=''
415    REPO['GPGCheck']='yes'
416    REPO['GPGKey']='http://download.libreswan.org/binaries/RPM-GPG-KEY-libreswan'
417    REPO['Exclude']=''
418    REPO['IncludePkgs']=''
419    createrepo
420    
421    
422  if  ( "%{?dist}"  == "el7" ); then  if  ( "%{?dist}"  == "el7" ); then
423  #####################  #####################
424  #####################  #####################
# Line 467  REPO['fullreponame']='Mirror John Crisp Line 503  REPO['fullreponame']='Mirror John Crisp
503  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
504  REPO['Visible']='yes'  REPO['Visible']='yes'
505  REPO['status']='disabled'  REPO['status']='disabled'
506  REPO['BaseURL']='https://reetspetit.com/smeserver/$releasever'  REPO['BaseURL']='https://www.reetspetit.com/smeserver/$releasever'
507  REPO['MirrorList']=''  REPO['MirrorList']=''
508  REPO['GPGCheck']='no'  REPO['GPGCheck']='no'
509  REPO['GPGKey']='https://reetspetit.com/RPM-GPG-KEY'  REPO['GPGKey']='https://www.reetspetit.com/RPM-GPG-KEY'
510  REPO['Exclude']=''  REPO['Exclude']=''
511  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
512  createrepo  createrepo
513    
514    #####################
515    #####################
516  #remi-safe  #remi-safe
517    #####################
518    #####################
519  REPO['reponame']='remi-safe'  REPO['reponame']='remi-safe'
520  REPO['fullreponame']='Remi - safe'  REPO['fullreponame']='Remi - safe'
521  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
# Line 618  createrepo Line 658  createrepo
658    
659  #####################  #####################
660  #####################  #####################
661  #Sogo3 nightly  #Sogo4 nightly
662  #####################  #####################
663  #####################  #####################
664  REPO['reponame']='sogo4'  REPO['reponame']='sogo4'
# Line 634  REPO['Exclude']='' Line 674  REPO['Exclude']=''
674  REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'  REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'
675  createrepo  createrepo
676    
   
677  #####################  #####################
678  #####################  #####################
679  #Sogo stable  #Sogo stable
# Line 782  REPO['BaseURL']='http://zmrepo.mehvc.com Line 821  REPO['BaseURL']='http://zmrepo.mehvc.com
821  REPO['MirrorList']=''  REPO['MirrorList']=''
822  REPO['GPGCheck']='no'  REPO['GPGCheck']='no'
823  REPO['GPGKey']=""  REPO['GPGKey']=""
824  REPO['Exclude']=''  REPO['Exclude']='ffmpeg-2.6.4,celt-0.11'
825  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
826  createrepo  createrepo
827    
828    
829    #####################################################
830    # migrates
831    ######################################################
832    mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate
833    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/90sogo
834    {
835        my @add = split(/[,; ]+/, 'gnustep-*');
836        my %remove = map { $_ => 1 } split(/[,; ]+/, '');
837    
838        for my $name ( qw(epel) )
839        {
840            my $repo = $DB->get($name) or next;
841    
842            my @exclude = split(/,/, $repo->prop('Exclude') || '');
843            push @exclude, @add;
844            @exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude);
845    
846            # remove duplicates
847            undef %saw;
848            @exclude = grep(!$saw{$_}++, @exclude);
849    
850            if ($#exclude >= 0)
851            {
852                $repo->set_prop('Exclude', join(',', @exclude));
853            }
854            else
855            {
856                $repo->delete('Exclude');
857            }
858        }
859    }
860    
861    EOF
862    
863    
864    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10epel
865    {
866        my @add = split(/[,; ]+/, '');
867        my %remove = map { $_ => 1 } split(/[,; ]+/, 'gnustep-*,gnustep*,gnustep-base,gnustep-make');
868    
869        for my $name ( qw(epel) )
870        {
871            my $repo = $DB->get($name) or next;
872    
873            my @exclude = split(/,/, $repo->prop('Exclude') || '');
874            push @exclude, @add;
875            @exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude);
876    
877            # remove duplicates
878            undef %saw;
879            @exclude = grep(!$saw{$_}++, @exclude);
880    
881            if ($#exclude >= 0)
882            {
883                $repo->set_prop('Exclude', join(',', @exclude));
884            }
885            else
886            {
887                $repo->delete('Exclude');
888            }
889        }
890    }
891    
892    EOF
893    
894    
895    
896    
897    
898    
899    ##########################################################
900    
901  rm -f %{name}-%{version}-filelist*  rm -f %{name}-%{version}-filelist*
902  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT                       > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT                       > %{name}-%{version}-filelist
903  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 911  cat %{name}-%{version}-filelist| grep er
911  cat %{name}-%{version}-filelist| grep freeswitch                > %{name}-%{version}-filelist-freeswitch  cat %{name}-%{version}-filelist| grep freeswitch                > %{name}-%{version}-filelist-freeswitch
912  cat %{name}-%{version}-filelist| grep fws                       > %{name}-%{version}-filelist-fws  cat %{name}-%{version}-filelist| grep fws                       > %{name}-%{version}-filelist-fws
913  cat %{name}-%{version}-filelist| grep geekery                   > %{name}-%{version}-filelist-geekery  cat %{name}-%{version}-filelist| grep geekery                   > %{name}-%{version}-filelist-geekery
914    cat %{name}-%{version}-filelist| grep libreswan                 > %{name}-%{version}-filelist-libreswan
915  if  ( "%{?dist}"  == "el7" ); then  if  ( "%{?dist}"  == "el7" ); then
916  cat %{name}-%{version}-filelist| grep odoo                      > %{name}-%{version}-filelist-odoo  cat %{name}-%{version}-filelist| grep odoo                      > %{name}-%{version}-filelist-odoo
917  fi  fi
# Line 923  Geekery Repository Line 1035  Geekery Repository
1035  %files geekery -f  %{name}-%{version}-filelist-geekery  %files geekery -f  %{name}-%{version}-filelist-geekery
1036  %defattr(-,root,root)  %defattr(-,root,root)
1037    
1038    %package libreswan
1039    Summary: Libreswan Repository
1040    %description libreswan
1041    Geekery Repository
1042    %files libreswan -f  %{name}-%{version}-filelist-libreswan
1043    %defattr(-,root,root)
1044    
1045  %package odoo  %package odoo
1046  Summary: Odoo 10 Nightly - EL7 Repository  Summary: Odoo 10 Nightly - EL7 Repository
1047  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