/[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.9 by jpp, Wed May 9 04:00:29 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 5
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    * Tue May 08 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-5.sme
22    - add elrepo-kernel repo  [SME: 10581]
23    
24    * Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-4.sme
25    - exclude ffmpeg-2.6.4 and celt-0.11 from zmrepo [SME: 10543]
26    - add Sogo4 repo + migrate to exclude gnustep from epel if sogo repo present
27    
28  * 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
29  - fix wrong escape sequence for $basearch and $releasever [SME: 10239]  - fix wrong escape sequence for $basearch and $releasever [SME: 10239]
30    
# Line 268  REPO['EnableGroups']='no' Line 275  REPO['EnableGroups']='no'
275  REPO['Visible']='no'  REPO['Visible']='no'
276  REPO['status']='disabled'  REPO['status']='disabled'
277  REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch'  REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch'
278  REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.$releasever'  REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.el$releasever'
279  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
280  REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'  REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'
281  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 284  createrepo
284    
285  #####################  #####################
286  #####################  #####################
287    #ELRepo kernel
288    #####################
289    #####################
290    REPO['reponame']='elrepo-kernel'
291    REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository Kernel'
292    REPO['EnableGroups']='no'
293    REPO['Visible']='no'
294    REPO['status']='disabled'
295    REPO['BaseURL']='http://elrepo.org/linux/kernel/el$releasever/$basearch'
296    REPO['MirrorList']='http://elrepo.org/mirrors-elrepo-kernel.el$releasever'
297    REPO['GPGCheck']='yes'
298    REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'
299    REPO['Exclude']=''
300    REPO['IncludePkgs']=''
301    createrepo
302    
303    #####################
304    #####################
305  #EPEL  #EPEL
306  #####################  #####################
307  #####################  #####################
# Line 618  createrepo Line 643  createrepo
643    
644  #####################  #####################
645  #####################  #####################
646    #Sogo4 nightly
647    #####################
648    #####################
649    REPO['reponame']='sogo4'
650    REPO['fullreponame']='Inverse SOGo 4 Repository'
651    REPO['EnableGroups']='no'
652    REPO['Visible']='yes'
653    REPO['status']='disabled'
654    REPO['BaseURL']='http://packages.inverse.ca/SOGo/nightly/4/rhel/$releasever/$basearch'
655    REPO['MirrorList']=''
656    REPO['GPGCheck']='no'
657    REPO['GPGKey']=''
658    REPO['Exclude']=''
659    REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'
660    createrepo
661    
662    #####################
663    #####################
664  #Sogo stable  #Sogo stable
665  #####################  #####################
666  #####################  #####################
# Line 763  REPO['BaseURL']='http://zmrepo.mehvc.com Line 806  REPO['BaseURL']='http://zmrepo.mehvc.com
806  REPO['MirrorList']=''  REPO['MirrorList']=''
807  REPO['GPGCheck']='no'  REPO['GPGCheck']='no'
808  REPO['GPGKey']=""  REPO['GPGKey']=""
809  REPO['Exclude']=''  REPO['Exclude']='ffmpeg-2.6.4,celt-0.11'
810  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
811  createrepo  createrepo
812    
813    
814    #####################################################
815    # migrates
816    ######################################################
817    mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate
818    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/90sogo
819    {
820        my @add = split(/[,; ]+/, 'gnustep-*');
821        my %remove = map { $_ => 1 } split(/[,; ]+/, '');
822    
823        for my $name ( qw(epel) )
824        {
825            my $repo = $DB->get($name) or next;
826    
827            my @exclude = split(/,/, $repo->prop('Exclude') || '');
828            push @exclude, @add;
829            @exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude);
830    
831            # remove duplicates
832            undef %saw;
833            @exclude = grep(!$saw{$_}++, @exclude);
834    
835            if ($#exclude >= 0)
836            {
837                $repo->set_prop('Exclude', join(',', @exclude));
838            }
839            else
840            {
841                $repo->delete('Exclude');
842            }
843        }
844    }
845    
846    EOF
847    
848    
849    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10epel
850    {
851        my @add = split(/[,; ]+/, '');
852        my %remove = map { $_ => 1 } split(/[,; ]+/, 'gnustep-*,gnustep*,gnustep-base,gnustep-make');
853    
854        for my $name ( qw(epel) )
855        {
856            my $repo = $DB->get($name) or next;
857    
858            my @exclude = split(/,/, $repo->prop('Exclude') || '');
859            push @exclude, @add;
860            @exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude);
861    
862            # remove duplicates
863            undef %saw;
864            @exclude = grep(!$saw{$_}++, @exclude);
865    
866            if ($#exclude >= 0)
867            {
868                $repo->set_prop('Exclude', join(',', @exclude));
869            }
870            else
871            {
872                $repo->delete('Exclude');
873            }
874        }
875    }
876    
877    EOF
878    
879    
880    
881    
882    
883    
884    ##########################################################
885    
886  rm -f %{name}-%{version}-filelist*  rm -f %{name}-%{version}-filelist*
887  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT                       > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT                       > %{name}-%{version}-filelist
888  cat %{name}-%{version}-filelist| grep atomic                    > %{name}-%{version}-filelist-atomic  cat %{name}-%{version}-filelist| grep atomic                    > %{name}-%{version}-filelist-atomic


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