/[smecontribs]/rpms/smeserver-extrarepositories/contribs10/smeserver-extrarepositories.spec
ViewVC logotype

Diff of /rpms/smeserver-extrarepositories/contribs10/smeserver-extrarepositories.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.16 by jpp, Fri Feb 25 02:50:32 2022 UTC Revision 1.23 by jcrisp, Mon Sep 4 14:47:22 2023 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 36  %define release 41
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 13  BuildArchitectures: noarch Line 13  BuildArchitectures: noarch
13  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
14  Requires: e-smith-release >= 10.0  Requires: e-smith-release >= 10.0
15  AutoReqProv: no  AutoReqProv: no
16    Source0: https://raw.githubusercontent.com/ONLYOFFICE/repo/master/centos/RPM-GPG-KEY-ONLYOFFICE
17    
18  %description  %description
19  Provides configuration for external yum repository comaptible with Koozali SME Server.  Provides configuration for external yum repository comaptible with Koozali SME Server.
20    
21  %changelog  %changelog
22    * Wed Jul 26 2023 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-41.sme
23    - fix issues with libreswan repo [SME: 12389]
24    - Remove old mongodb repos prior to 4.0
25    
26    * Wed Jun 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-40.sme
27    - add mongodb repos [SME: 11905]
28    - add onlyoffice repo [SME: 12078]
29    - add nginx repo [SME: 12079]
30    
31    * Sat May 28 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-39.sme
32    - fix typo in pgsql url
33    
34    * Thu Mar 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-38.sme
35    - add docker-ce repo [SME: 11894]
36    
37    * Wed Mar 09 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-37.sme
38    - add collaboraoffice repo [SME: 11888]
39    
40  * Thu Feb 24 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-36.sme  * Thu Feb 24 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-36.sme
41  - add Copr repo for fusioninventory-agent owned by trasher [SME: 11751]  - add Copr repo for fusioninventory-agent owned by trasher [SME: 11751]
42  - fix update event for sclo [SME: 11876]  - fix update event for sclo [SME: 11876]
# Line 143  mkdir -p $RPM_BUILD_ROOT/usr/share/rpm-g Line 162  mkdir -p $RPM_BUILD_ROOT/usr/share/rpm-g
162  # if needing to add a gpg key  # if needing to add a gpg key
163  #cp %source0 $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/  #cp %source0 $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/
164  #/usr/share/rpm-gpg-keys/RPM-GPG-KEY-${REPO['reponame']}  #/usr/share/rpm-gpg-keys/RPM-GPG-KEY-${REPO['reponame']}
165    cp %SOURCE0  $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/
166    
167    
168  # if needing to migrate something :  # if needing to migrate something :
169  #mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate  #mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate
# Line 328  createrepo Line 349  createrepo
349    
350  #####################  #####################
351  #####################  #####################
352    #collaboraoffice.com
353    #####################
354    #####################
355    REPO['reponame']='collaboraoffice'
356    REPO['pkgname']=${REPO['reponame']}
357    REPO['fullreponame']='collaboraoffice.com_repos_CollaboraOnline_CODE-centos'
358    REPO['EnableGroups']='no'
359    REPO['Visible']='yes'
360    REPO['status']='enabled'
361    REPO['BaseURL']='https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos$releasever'
362    REPO['MirrorList']=''
363    REPO['GPGCheck']='yes'
364    REPO['GPGKey']='https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos7/repodata/repomd.xml.key'
365    REPO['Exclude']=''
366    REPO['IncludePkgs']=''
367    createrepo
368    
369    #####################
370    #####################
371    #docker-ce
372    #####################
373    #####################
374    REPO['reponame']='docker-ce'
375    REPO['pkgname']=${REPO['reponame']}
376    REPO['fullreponame']='docker-ce'
377    REPO['EnableGroups']='no'
378    REPO['Visible']='yes'
379    REPO['status']='enabled'
380    REPO['BaseURL']='https://download.docker.com/linux/centos/$releasever/$basearch/stable'
381    REPO['MirrorList']=''
382    REPO['GPGCheck']='yes'
383    REPO['GPGKey']='https://download.docker.com/linux/centos/gpg'
384    REPO['Exclude']=''
385    REPO['IncludePkgs']=''
386    createrepo
387    
388    
389    #####################
390    #####################
391  #egroupware  #egroupware
392  #####################  #####################
393  #####################  #####################
# Line 569  REPO['status']='disabled' Line 629  REPO['status']='disabled'
629  REPO['BaseURL']='http://download.libreswan.org/binaries/rhel/$releasever/$basearch/'  REPO['BaseURL']='http://download.libreswan.org/binaries/rhel/$releasever/$basearch/'
630  REPO['MirrorList']=''  REPO['MirrorList']=''
631  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
632  REPO['GPGKey']='http://download.libreswan.org/binaries/RPM-GPG-KEY-libreswan'  REPO['GPGKey']='http://download.libreswan.org/RPM-GPG-KEY-libreswan'
633  REPO['Exclude']=''  REPO['Exclude']=''
634  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
635    REPO['Priority']='10'
636  createrepo  createrepo
637    
638    
639  #####################  #####################
640  #####################  #####################
641    # Mongodb
642    #####################
643    #####################
644    for nodever  in "4.0" "4.1" "4.2" "4.3" "4.4" "5.0" "6.0" "7.0"; do
645    REPO['reponame']="mongodb$nodever"
646    REPO['pkgname']='mongodb'
647    REPO['fullreponame']="Mongodb $nodever"
648    REPO['EnableGroups']='no'
649    REPO['Visible']='yes'
650    REPO['status']='disabled'
651    REPO['BaseURL']="https://repo.mongodb.org/yum/redhat/\$releasever/mongodb-org/$nodever/\$basearch/"
652    REPO['MirrorList']=''
653    REPO['GPGCheck']='yes'
654    REPO['GPGKey']="https://www.mongodb.org/static/pgp/server-$nodever.asc"
655    REPO['Exclude']=''
656    REPO['IncludePkgs']=''
657    createrepo
658    done
659    
660    #####################
661    #####################
662    # Nginx
663    #####################
664    #####################
665    REPO['reponame']='nginx'
666    REPO['pkgname']='nginx'
667    REPO['fullreponame']='nginx stable repo'
668    REPO['EnableGroups']='no'
669    REPO['Visible']='yes'
670    REPO['status']='enabled'
671    REPO['BaseURL']='http://nginx.org/packages/centos/$releasever/$basearch/'
672    REPO['MirrorList']=''
673    REPO['GPGCheck']='yes'
674    REPO['GPGKey']='https://nginx.org/keys/nginx_signing.key'
675    REPO['Exclude']=''
676    REPO['IncludePkgs']=''
677    createrepo
678    
679    REPO['reponame']='nginx-mainline'
680    REPO['pkgname']='nginx'
681    REPO['fullreponame']='nginx mainline repo'
682    REPO['EnableGroups']='no'
683    REPO['Visible']='yes'
684    REPO['status']='disabled'
685    REPO['BaseURL']='http://nginx.org/packages/mainline/centos/$releasever/$basearch/'
686    REPO['MirrorList']=''
687    REPO['GPGCheck']='yes'
688    REPO['GPGKey']='https://nginx.org/keys/nginx_signing.key'
689    REPO['Exclude']=''
690    REPO['IncludePkgs']=''
691    createrepo
692    
693    
694    
695    
696    #####################
697    #####################
698  # NodeJS 4  # NodeJS 4
699  #####################  #####################
700  #####################  #####################
# Line 660  createrepo Line 778  createrepo
778    
779  #####################  #####################
780  #####################  #####################
781    # Onlyoffice
782    #####################
783    #####################
784    REPO['reponame']='onlyoffice'
785    REPO['pkgname']=${REPO['reponame']}
786    REPO['fullreponame']='Onlyoffice document server - community edition'
787    REPO['EnableGroups']='no'
788    REPO['Visible']='yes'
789    REPO['status']='enabled'
790    REPO['BaseURL']='https://download.onlyoffice.com/repo/centos/main/noarch/'
791    REPO['MirrorList']=''
792    REPO['GPGCheck']='no'
793    REPO['GPGKey']='https://raw.githubusercontent.com/ONLYOFFICE/repo/master/centos/RPM-GPG-KEY-ONLYOFFICE'
794    REPO['Exclude']=''
795    REPO['IncludePkgs']=''
796    createrepo
797    
798    #####################
799    #####################
800  # Openfusion  # Openfusion
801  #####################  #####################
802  #####################  #####################
# Line 689  REPO['fullreponame']="Postgresql $pgsqlv Line 826  REPO['fullreponame']="Postgresql $pgsqlv
826  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
827  REPO['Visible']='yes'  REPO['Visible']='yes'
828  REPO['status']='disabled'  REPO['status']='disabled'
829  REPO['BaseURL']='https://yum.postgresql.org/'.$pgsqlver.'/redhat/rhel-$releasever-$basearch/'  REPO['BaseURL']='https://yum.postgresql.org/'$pgsqlver'/redhat/rhel-$releasever-$basearch/'
830  REPO['MirrorList']=''  REPO['MirrorList']=''
831  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
832  ext=$pgsqlver;  ext=$pgsqlver;
833  [[ "$pgsqlver" == "9.6" ]] && ext="96";  [[ "$pgsqlver" == "9.6" ]] && ext="96";
834  REPO['GPGKey']='https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-'.$ext  REPO['GPGKey']='https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-'$ext
835  REPO['Exclude']=''  REPO['Exclude']=''
836  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
837  createrepo  createrepo
# Line 706  REPO['fullreponame']="Postgresql $pgsqlv Line 843  REPO['fullreponame']="Postgresql $pgsqlv
843  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
844  REPO['Visible']='yes'  REPO['Visible']='yes'
845  REPO['status']='disabled'  REPO['status']='disabled'
846  REPO['BaseURL']='https://download.postgresql.org/pub/repos/yum/non-free/'.$pgsqlver.'/redhat/rhel-$releasever-$basearch/'  REPO['BaseURL']='https://download.postgresql.org/pub/repos/yum/non-free/'$pgsqlver'/redhat/rhel-$releasever-$basearch/'
847  REPO['MirrorList']=''  REPO['MirrorList']=''
848  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
849  ext=$pgsqlver;  ext=$pgsqlver;
850  [[ "$pgsqlver" == "9.6" ]] && ext="96";  [[ "$pgsqlver" == "9.6" ]] && ext="96";
851  REPO['GPGKey']='https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-'.$ext  REPO['GPGKey']='https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-'$ext
852  REPO['Exclude']=''  REPO['Exclude']=''
853  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
854  createrepo  createrepo
# Line 722  REPO['fullreponame']="Postgresql $pgsqlv Line 859  REPO['fullreponame']="Postgresql $pgsqlv
859  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
860  REPO['Visible']='yes'  REPO['Visible']='yes'
861  REPO['status']='disabled'  REPO['status']='disabled'
862  REPO['BaseURL']='https://download.postgresql.org/pub/repos/yum/common/'.$pgsqlver.'/redhat/rhel-$releasever-$basearch/'  REPO['BaseURL']='https://download.postgresql.org/pub/repos/yum/common/'$pgsqlver'/redhat/rhel-$releasever-$basearch/'
863  REPO['MirrorList']=''  REPO['MirrorList']=''
864  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
865  ext=$pgsqlver;  ext=$pgsqlver;
866  [[ "$pgsqlver" == "9.6" ]] && ext="96";  [[ "$pgsqlver" == "9.6" ]] && ext="96";
867  REPO['GPGKey']='https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-'.$ext  REPO['GPGKey']='https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-'$ext
868  REPO['Exclude']=''  REPO['Exclude']=''
869  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
870  createrepo  createrepo
# Line 1301  cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smi Line 1438  cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smi
1438              $repo->delete('IncludePkgs');              $repo->delete('IncludePkgs');
1439          }          }
1440    
1441        }
1442    
1443    }
1444    
1445    
1446      }  EOF
1447    
1448    
1449    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/30mongodbDeleteOldRepos
1450    {
1451        for my $dbVer (qw( 0.9 1.0 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7)) {
1452            $dataBase = "mongodb$dbVer";
1453            my $repo = $DB->get($dataBase);
1454            $repo->delete if $repo;
1455        }
1456  }  }
1457    
1458  EOF  EOF
# Line 1320  cat %{name}-%{version}-filelist|grep ast Line 1468  cat %{name}-%{version}-filelist|grep ast
1468  cat %{name}-%{version}-filelist| grep atomic                    > %{name}-%{version}-filelist-atomic  cat %{name}-%{version}-filelist| grep atomic                    > %{name}-%{version}-filelist-atomic
1469  cat %{name}-%{version}-filelist| grep bareos                    > %{name}-%{version}-filelist-bareos  cat %{name}-%{version}-filelist| grep bareos                    > %{name}-%{version}-filelist-bareos
1470  cat %{name}-%{version}-filelist| grep centos-sclo               > %{name}-%{version}-filelist-centos-sclo  cat %{name}-%{version}-filelist| grep centos-sclo               > %{name}-%{version}-filelist-centos-sclo
1471    cat %{name}-%{version}-filelist| grep collaboraoffice           > %{name}-%{version}-filelist-collaboraoffice
1472    cat %{name}-%{version}-filelist| grep docker-ce                 > %{name}-%{version}-filelist-docker-ce
1473  cat %{name}-%{version}-filelist| grep egroupware                > %{name}-%{version}-filelist-egroupware  cat %{name}-%{version}-filelist| grep egroupware                > %{name}-%{version}-filelist-egroupware
1474  cat %{name}-%{version}-filelist| grep elastic                   > %{name}-%{version}-filelist-elastic  cat %{name}-%{version}-filelist| grep elastic                   > %{name}-%{version}-filelist-elastic
1475  cat %{name}-%{version}-filelist| grep elrepo                    > %{name}-%{version}-filelist-elrepo  cat %{name}-%{version}-filelist| grep elrepo                    > %{name}-%{version}-filelist-elrepo
# Line 1330  cat %{name}-%{version}-filelist| grep fw Line 1480  cat %{name}-%{version}-filelist| grep fw
1480  cat %{name}-%{version}-filelist| grep fusioninventory-agent     > %{name}-%{version}-filelist-fusioninventory-agent  cat %{name}-%{version}-filelist| grep fusioninventory-agent     > %{name}-%{version}-filelist-fusioninventory-agent
1481  cat %{name}-%{version}-filelist| grep lemonldap                 > %{name}-%{version}-filelist-lemonldap  cat %{name}-%{version}-filelist| grep lemonldap                 > %{name}-%{version}-filelist-lemonldap
1482  cat %{name}-%{version}-filelist| grep libreswan                 > %{name}-%{version}-filelist-libreswan  cat %{name}-%{version}-filelist| grep libreswan                 > %{name}-%{version}-filelist-libreswan
1483    cat %{name}-%{version}-filelist| grep mongodb                   > %{name}-%{version}-filelist-mongodb
1484    cat %{name}-%{version}-filelist| grep nginx                     > %{name}-%{version}-filelist-nginx
1485    cat %{name}-%{version}-filelist| grep node                      > %{name}-%{version}-filelist-node
1486  if  ( "%{?dist}"  == "el7" ); then  if  ( "%{?dist}"  == "el7" ); then
1487  cat %{name}-%{version}-filelist| grep odoo                      > %{name}-%{version}-filelist-odoo  cat %{name}-%{version}-filelist| grep odoo                      > %{name}-%{version}-filelist-odoo
1488  fi  fi
1489  cat %{name}-%{version}-filelist| grep okay                      > %{name}-%{version}-filelist-okay  cat %{name}-%{version}-filelist| grep okay                      > %{name}-%{version}-filelist-okay
1490    cat %{name}-%{version}-filelist| grep -i onlyoffice             > %{name}-%{version}-filelist-onlyoffice
1491  cat %{name}-%{version}-filelist| grep openfusion                > %{name}-%{version}-filelist-openfusion  cat %{name}-%{version}-filelist| grep openfusion                > %{name}-%{version}-filelist-openfusion
 cat %{name}-%{version}-filelist| grep node                      > %{name}-%{version}-filelist-node  
1492  cat %{name}-%{version}-filelist| grep reetp                     > %{name}-%{version}-filelist-reetp  cat %{name}-%{version}-filelist| grep reetp                     > %{name}-%{version}-filelist-reetp
1493  cat %{name}-%{version}-filelist| grep remi-ocsinventory         > %{name}-%{version}-filelist-remi-ocsinventory  cat %{name}-%{version}-filelist| grep remi-ocsinventory         > %{name}-%{version}-filelist-remi-ocsinventory
1494  cat %{name}-%{version}-filelist| grep remi-roundcube            > %{name}-%{version}-filelist-remi-roundcube  cat %{name}-%{version}-filelist| grep remi-roundcube            > %{name}-%{version}-filelist-remi-roundcube
# Line 1405  CentOS Red-Hat software collection repos Line 1558  CentOS Red-Hat software collection repos
1558  %files centos-sclo -f  %{name}-%{version}-filelist-centos-sclo  %files centos-sclo -f  %{name}-%{version}-filelist-centos-sclo
1559  %defattr(-,root,root)  %defattr(-,root,root)
1560    
1561    %package collaboraoffice
1562    Summary: collaboraoffice repo
1563    %description collaboraoffice
1564    collaboraoffice repo
1565    %files collaboraoffice -f  %{name}-%{version}-filelist-collaboraoffice
1566    %defattr(-,root,root)
1567    
1568    %package docker-ce
1569    Summary: docker-ce
1570    %description docker-ce
1571    docker-ce repo
1572    %files docker-ce -f  %{name}-%{version}-filelist-docker-ce
1573    %defattr(-,root,root)
1574    
1575  %package egroupware  %package egroupware
1576  Summary: Repository for eGroupWare  Summary: Repository for eGroupWare
1577  %description egroupware  %description egroupware
# Line 1475  Libreswan Repository Line 1642  Libreswan Repository
1642  %files libreswan -f  %{name}-%{version}-filelist-libreswan  %files libreswan -f  %{name}-%{version}-filelist-libreswan
1643  %defattr(-,root,root)  %defattr(-,root,root)
1644    
1645    %package mongodb
1646    Summary: MongoDB Repositories
1647    %description mongodb
1648    MongoDB Repositories
1649    %files mongodb -f  %{name}-%{version}-filelist-mongodb
1650    %defattr(-,root,root)
1651    
1652    %package nginx
1653    Summary: nginx Repositories
1654    %description nginx
1655    Nginx Repositories
1656    %files nginx -f  %{name}-%{version}-filelist-nginx
1657    %defattr(-,root,root)
1658    
1659  %package node  %package node
1660  Summary: NodeJS Repositories  Summary: NodeJS Repositories
1661  %description node  %description node
# Line 1498  Extra OKay Packages for Enterprise Linux Line 1679  Extra OKay Packages for Enterprise Linux
1679  %files okay -f  %{name}-%{version}-filelist-okay  %files okay -f  %{name}-%{version}-filelist-okay
1680  %defattr(-,root,root)  %defattr(-,root,root)
1681    
1682    %package onlyoffice
1683    Summary: onlyoffice Repository
1684    %description onlyoffice
1685    onlyoffice Repository
1686    %files onlyoffice  -f %{name}-%{version}-filelist-onlyoffice
1687    %defattr(-,root,root)
1688    
1689  %package openfusion  %package openfusion
1690  Summary: Openfusion Repository  Summary: Openfusion Repository
1691  %description openfusion  %description openfusion


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