/[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.14 by jpp, Sat Dec 29 01:56:02 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 9
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    * Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-9.sme
22    - zmrepo url has changed [SME: 10675]
23    
24    * Fri Nov 30 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-7.sme
25    - Add libreswan repo  [SME: 10605]
26    - remove duplicate remi-safe entry
27    
28    * Mon Jun 25 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-6.sme
29    - Update reetp URL  [SME: 10604]
30    
31    * Tue May 08 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-5.sme
32    - add elrepo-kernel repo  [SME: 10581]
33    
34    * Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-4.sme
35    - exclude ffmpeg-2.6.4 and celt-0.11 from zmrepo [SME: 10543]
36    - add Sogo4 repo + migrate to exclude gnustep from epel if sogo repo present
37    
38  * 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
39  - fix wrong escape sequence for $basearch and $releasever [SME: 10239]  - fix wrong escape sequence for $basearch and $releasever [SME: 10239]
40    
# Line 77  return 0 Line 94  return 0
94    
95    
96    
 #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  
   
97  ######################  ######################
98  #####################  #####################
99  # asterisk 13 LTS  # asterisk 13 LTS
# Line 217  REPO['Exclude']='' Line 220  REPO['Exclude']=''
220  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
221  createrepo  createrepo
222    
   
223  #####################  #####################
224  #####################  #####################
225  #egroupware  #egroupware
# Line 268  REPO['EnableGroups']='no' Line 270  REPO['EnableGroups']='no'
270  REPO['Visible']='no'  REPO['Visible']='no'
271  REPO['status']='disabled'  REPO['status']='disabled'
272  REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch'  REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch'
273  REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.$releasever'  REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.el$releasever'
274  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
275  REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'  REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'
276  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 279  createrepo
279    
280  #####################  #####################
281  #####################  #####################
282    #ELRepo kernel
283    #####################
284    #####################
285    REPO['reponame']='elrepo-kernel'
286    REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository Kernel'
287    REPO['EnableGroups']='no'
288    REPO['Visible']='no'
289    REPO['status']='disabled'
290    REPO['BaseURL']='http://elrepo.org/linux/kernel/el$releasever/$basearch'
291    REPO['MirrorList']='http://elrepo.org/mirrors-elrepo-kernel.el$releasever'
292    REPO['GPGCheck']='yes'
293    REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'
294    REPO['Exclude']=''
295    REPO['IncludePkgs']=''
296    createrepo
297    
298    #####################
299    #####################
300  #EPEL  #EPEL
301  #####################  #####################
302  #####################  #####################
# Line 383  REPO['Exclude']='' Line 403  REPO['Exclude']=''
403  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
404  createrepo  createrepo
405    
406    #####################
407    #####################
408    # Libreswan
409    #####################
410    #####################
411    REPO['reponame']='libreswan'
412    REPO['fullreponame']='Libreswan'
413    REPO['EnableGroups']='no'
414    REPO['Visible']='no'
415    REPO['status']='disabled'
416    REPO['BaseURL']='http://download.libreswan.org/binaries/rhel/6/x86_64/'
417    REPO['MirrorList']=''
418    REPO['GPGCheck']='yes'
419    REPO['GPGKey']='http://download.libreswan.org/binaries/RPM-GPG-KEY-libreswan'
420    REPO['Exclude']=''
421    REPO['IncludePkgs']=''
422    createrepo
423    
424    
425  if  ( "%{?dist}"  == "el7" ); then  if  ( "%{?dist}"  == "el7" ); then
426  #####################  #####################
427  #####################  #####################
# Line 467  REPO['fullreponame']='Mirror John Crisp Line 506  REPO['fullreponame']='Mirror John Crisp
506  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
507  REPO['Visible']='yes'  REPO['Visible']='yes'
508  REPO['status']='disabled'  REPO['status']='disabled'
509  REPO['BaseURL']='https://reetspetit.com/smeserver/$releasever'  REPO['BaseURL']='https://www.reetspetit.com/smeserver/$releasever'
510  REPO['MirrorList']=''  REPO['MirrorList']=''
511  REPO['GPGCheck']='no'  REPO['GPGCheck']='no'
512  REPO['GPGKey']='https://reetspetit.com/RPM-GPG-KEY'  REPO['GPGKey']='https://www.reetspetit.com/RPM-GPG-KEY'
513  REPO['Exclude']=''  REPO['Exclude']=''
514  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
515  createrepo  createrepo
516    
517    #####################
518    #####################
519  #remi-safe  #remi-safe
520    #####################
521    #####################
522  REPO['reponame']='remi-safe'  REPO['reponame']='remi-safe'
523  REPO['fullreponame']='Remi - safe'  REPO['fullreponame']='Remi - safe'
524  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
# Line 618  createrepo Line 661  createrepo
661    
662  #####################  #####################
663  #####################  #####################
664    #Sogo4 nightly
665    #####################
666    #####################
667    REPO['reponame']='sogo4'
668    REPO['fullreponame']='Inverse SOGo 4 Repository'
669    REPO['EnableGroups']='no'
670    REPO['Visible']='yes'
671    REPO['status']='disabled'
672    REPO['BaseURL']='http://packages.inverse.ca/SOGo/nightly/4/rhel/$releasever/$basearch'
673    REPO['MirrorList']=''
674    REPO['GPGCheck']='no'
675    REPO['GPGKey']=''
676    REPO['Exclude']=''
677    REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'
678    createrepo
679    
680    #####################
681    #####################
682  #Sogo stable  #Sogo stable
683  #####################  #####################
684  #####################  #####################
# Line 759  REPO['fullreponame']='ZoneMinder Repo - Line 820  REPO['fullreponame']='ZoneMinder Repo -
820  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
821  REPO['Visible']='yes'  REPO['Visible']='yes'
822  REPO['status']='disabled'  REPO['status']='disabled'
823  REPO['BaseURL']='http://zmrepo.mehvc.com/el/$releasever/$basearch'  REPO['BaseURL']='http://zmrepo.zoneminder.com/el/$releasever/$basearch'
824  REPO['MirrorList']=''  REPO['MirrorList']=''
825  REPO['GPGCheck']='no'  REPO['GPGCheck']='no'
826  REPO['GPGKey']=""  REPO['GPGKey']=""
827  REPO['Exclude']=''  REPO['Exclude']='ffmpeg-2.6.4,celt-0.11'
828  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
829  createrepo  createrepo
830    
831    
832    #####################################################
833    # migrates
834    ######################################################
835    mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate
836    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/90sogo
837    {
838        my @add = split(/[,; ]+/, 'gnustep-*');
839        my %remove = map { $_ => 1 } split(/[,; ]+/, '');
840    
841        for my $name ( qw(epel) )
842        {
843            my $repo = $DB->get($name) or next;
844    
845            my @exclude = split(/,/, $repo->prop('Exclude') || '');
846            push @exclude, @add;
847            @exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude);
848    
849            # remove duplicates
850            undef %saw;
851            @exclude = grep(!$saw{$_}++, @exclude);
852    
853            if ($#exclude >= 0)
854            {
855                $repo->set_prop('Exclude', join(',', @exclude));
856            }
857            else
858            {
859                $repo->delete('Exclude');
860            }
861        }
862    }
863    
864    EOF
865    
866    
867    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10epel
868    {
869        my @add = split(/[,; ]+/, '');
870        my %remove = map { $_ => 1 } split(/[,; ]+/, 'gnustep-*,gnustep*,gnustep-base,gnustep-make');
871    
872        for my $name ( qw(epel) )
873        {
874            my $repo = $DB->get($name) or next;
875    
876            my @exclude = split(/,/, $repo->prop('Exclude') || '');
877            push @exclude, @add;
878            @exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude);
879    
880            # remove duplicates
881            undef %saw;
882            @exclude = grep(!$saw{$_}++, @exclude);
883    
884            if ($#exclude >= 0)
885            {
886                $repo->set_prop('Exclude', join(',', @exclude));
887            }
888            else
889            {
890                $repo->delete('Exclude');
891            }
892        }
893    }
894    
895    EOF
896    
897    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10zmrepo
898    {
899        for my $name ( qw(zmrepo) )
900        {
901            my $repo = $DB->get($name) or next;
902            my $BaseURL = $repo->prop('BaseURL') || '';
903            my $BaseURL = s/zmrepo.mehvc.com/zmrepo.zoneminder.com/g;
904        }
905    
906    }
907    
908    EOF
909    
910    
911    
912    
913    
914    ##########################################################
915    
916  rm -f %{name}-%{version}-filelist*  rm -f %{name}-%{version}-filelist*
917  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT                       > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT                       > %{name}-%{version}-filelist
918  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 926  cat %{name}-%{version}-filelist| grep er
926  cat %{name}-%{version}-filelist| grep freeswitch                > %{name}-%{version}-filelist-freeswitch  cat %{name}-%{version}-filelist| grep freeswitch                > %{name}-%{version}-filelist-freeswitch
927  cat %{name}-%{version}-filelist| grep fws                       > %{name}-%{version}-filelist-fws  cat %{name}-%{version}-filelist| grep fws                       > %{name}-%{version}-filelist-fws
928  cat %{name}-%{version}-filelist| grep geekery                   > %{name}-%{version}-filelist-geekery  cat %{name}-%{version}-filelist| grep geekery                   > %{name}-%{version}-filelist-geekery
929    cat %{name}-%{version}-filelist| grep libreswan                 > %{name}-%{version}-filelist-libreswan
930  if  ( "%{?dist}"  == "el7" ); then  if  ( "%{?dist}"  == "el7" ); then
931  cat %{name}-%{version}-filelist| grep odoo                      > %{name}-%{version}-filelist-odoo  cat %{name}-%{version}-filelist| grep odoo                      > %{name}-%{version}-filelist-odoo
932  fi  fi
# Line 904  Geekery Repository Line 1050  Geekery Repository
1050  %files geekery -f  %{name}-%{version}-filelist-geekery  %files geekery -f  %{name}-%{version}-filelist-geekery
1051  %defattr(-,root,root)  %defattr(-,root,root)
1052    
1053    %package libreswan
1054    Summary: Libreswan Repository
1055    %description libreswan
1056    Geekery Repository
1057    %files libreswan -f  %{name}-%{version}-filelist-libreswan
1058    %defattr(-,root,root)
1059    
1060  %package odoo  %package odoo
1061  Summary: Odoo 10 Nightly - EL7 Repository  Summary: Odoo 10 Nightly - EL7 Repository
1062  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