/[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.19 by jpp, Thu Mar 10 16:53:26 2022 UTC Revision 1.24 by jcrisp, Mon Sep 4 14:55:43 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 38  %define release 42
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    * Mon Sep 04 2023 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-42.sme
23    - Fix the error in the spec file [SME: 12389]
24    
25    * Wed Jul 26 2023 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-41.sme
26    - fix issues with libreswan repo [SME: 12389]
27    - Remove old mongodb repos prior to 4.0
28    
29    * Wed Jun 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-40.sme
30    - add mongodb repos [SME: 11905]
31    - add onlyoffice repo [SME: 12078]
32    - add nginx repo [SME: 12079]
33    
34    * Sat May 28 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-39.sme
35    - fix typo in pgsql url
36    
37  * Thu Mar 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-38.sme  * Thu Mar 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-38.sme
38  - add docker-ce repo [SME: 11894]  - add docker-ce repo [SME: 11894]
39    
# Line 149  mkdir -p $RPM_BUILD_ROOT/usr/share/rpm-g Line 165  mkdir -p $RPM_BUILD_ROOT/usr/share/rpm-g
165  # if needing to add a gpg key  # if needing to add a gpg key
166  #cp %source0 $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/  #cp %source0 $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/
167  #/usr/share/rpm-gpg-keys/RPM-GPG-KEY-${REPO['reponame']}  #/usr/share/rpm-gpg-keys/RPM-GPG-KEY-${REPO['reponame']}
168    cp %SOURCE0  $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/
169    
170    
171  # if needing to migrate something :  # if needing to migrate something :
172  #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 614  REPO['status']='disabled' Line 632  REPO['status']='disabled'
632  REPO['BaseURL']='http://download.libreswan.org/binaries/rhel/$releasever/$basearch/'  REPO['BaseURL']='http://download.libreswan.org/binaries/rhel/$releasever/$basearch/'
633  REPO['MirrorList']=''  REPO['MirrorList']=''
634  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
635  REPO['GPGKey']='http://download.libreswan.org/binaries/RPM-GPG-KEY-libreswan'  REPO['GPGKey']='http://download.libreswan.org/RPM-GPG-KEY-libreswan'
636  REPO['Exclude']=''  REPO['Exclude']=''
637  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
638    REPO['Priority']='10'
639  createrepo  createrepo
640    
641    
642  #####################  #####################
643  #####################  #####################
644    # Mongodb
645    #####################
646    #####################
647    for nodever  in "4.0" "4.1" "4.2" "4.3" "4.4" "5.0" "6.0" "7.0"; do
648    REPO['reponame']="mongodb$nodever"
649    REPO['pkgname']='mongodb'
650    REPO['fullreponame']="Mongodb $nodever"
651    REPO['EnableGroups']='no'
652    REPO['Visible']='yes'
653    REPO['status']='disabled'
654    REPO['BaseURL']="https://repo.mongodb.org/yum/redhat/\$releasever/mongodb-org/$nodever/\$basearch/"
655    REPO['MirrorList']=''
656    REPO['GPGCheck']='yes'
657    REPO['GPGKey']="https://www.mongodb.org/static/pgp/server-$nodever.asc"
658    REPO['Exclude']=''
659    REPO['IncludePkgs']=''
660    createrepo
661    done
662    
663    #####################
664    #####################
665    # Nginx
666    #####################
667    #####################
668    REPO['reponame']='nginx'
669    REPO['pkgname']='nginx'
670    REPO['fullreponame']='nginx stable repo'
671    REPO['EnableGroups']='no'
672    REPO['Visible']='yes'
673    REPO['status']='enabled'
674    REPO['BaseURL']='http://nginx.org/packages/centos/$releasever/$basearch/'
675    REPO['MirrorList']=''
676    REPO['GPGCheck']='yes'
677    REPO['GPGKey']='https://nginx.org/keys/nginx_signing.key'
678    REPO['Exclude']=''
679    REPO['IncludePkgs']=''
680    createrepo
681    
682    REPO['reponame']='nginx-mainline'
683    REPO['pkgname']='nginx'
684    REPO['fullreponame']='nginx mainline repo'
685    REPO['EnableGroups']='no'
686    REPO['Visible']='yes'
687    REPO['status']='disabled'
688    REPO['BaseURL']='http://nginx.org/packages/mainline/centos/$releasever/$basearch/'
689    REPO['MirrorList']=''
690    REPO['GPGCheck']='yes'
691    REPO['GPGKey']='https://nginx.org/keys/nginx_signing.key'
692    REPO['Exclude']=''
693    REPO['IncludePkgs']=''
694    createrepo
695    
696    
697    
698    
699    #####################
700    #####################
701  # NodeJS 4  # NodeJS 4
702  #####################  #####################
703  #####################  #####################
# Line 705  createrepo Line 781  createrepo
781    
782  #####################  #####################
783  #####################  #####################
784    # Onlyoffice
785    #####################
786    #####################
787    REPO['reponame']='onlyoffice'
788    REPO['pkgname']=${REPO['reponame']}
789    REPO['fullreponame']='Onlyoffice document server - community edition'
790    REPO['EnableGroups']='no'
791    REPO['Visible']='yes'
792    REPO['status']='enabled'
793    REPO['BaseURL']='https://download.onlyoffice.com/repo/centos/main/noarch/'
794    REPO['MirrorList']=''
795    REPO['GPGCheck']='no'
796    REPO['GPGKey']='https://raw.githubusercontent.com/ONLYOFFICE/repo/master/centos/RPM-GPG-KEY-ONLYOFFICE'
797    REPO['Exclude']=''
798    REPO['IncludePkgs']=''
799    createrepo
800    
801    #####################
802    #####################
803  # Openfusion  # Openfusion
804  #####################  #####################
805  #####################  #####################
# Line 734  REPO['fullreponame']="Postgresql $pgsqlv Line 829  REPO['fullreponame']="Postgresql $pgsqlv
829  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
830  REPO['Visible']='yes'  REPO['Visible']='yes'
831  REPO['status']='disabled'  REPO['status']='disabled'
832  REPO['BaseURL']='https://yum.postgresql.org/'.$pgsqlver.'/redhat/rhel-$releasever-$basearch/'  REPO['BaseURL']='https://yum.postgresql.org/'$pgsqlver'/redhat/rhel-$releasever-$basearch/'
833  REPO['MirrorList']=''  REPO['MirrorList']=''
834  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
835  ext=$pgsqlver;  ext=$pgsqlver;
836  [[ "$pgsqlver" == "9.6" ]] && ext="96";  [[ "$pgsqlver" == "9.6" ]] && ext="96";
837  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
838  REPO['Exclude']=''  REPO['Exclude']=''
839  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
840  createrepo  createrepo
# Line 751  REPO['fullreponame']="Postgresql $pgsqlv Line 846  REPO['fullreponame']="Postgresql $pgsqlv
846  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
847  REPO['Visible']='yes'  REPO['Visible']='yes'
848  REPO['status']='disabled'  REPO['status']='disabled'
849  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/'
850  REPO['MirrorList']=''  REPO['MirrorList']=''
851  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
852  ext=$pgsqlver;  ext=$pgsqlver;
853  [[ "$pgsqlver" == "9.6" ]] && ext="96";  [[ "$pgsqlver" == "9.6" ]] && ext="96";
854  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
855  REPO['Exclude']=''  REPO['Exclude']=''
856  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
857  createrepo  createrepo
# Line 767  REPO['fullreponame']="Postgresql $pgsqlv Line 862  REPO['fullreponame']="Postgresql $pgsqlv
862  REPO['EnableGroups']='no'  REPO['EnableGroups']='no'
863  REPO['Visible']='yes'  REPO['Visible']='yes'
864  REPO['status']='disabled'  REPO['status']='disabled'
865  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/'
866  REPO['MirrorList']=''  REPO['MirrorList']=''
867  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
868  ext=$pgsqlver;  ext=$pgsqlver;
869  [[ "$pgsqlver" == "9.6" ]] && ext="96";  [[ "$pgsqlver" == "9.6" ]] && ext="96";
870  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
871  REPO['Exclude']=''  REPO['Exclude']=''
872  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
873  createrepo  createrepo
# Line 1346  cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smi Line 1441  cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smi
1441              $repo->delete('IncludePkgs');              $repo->delete('IncludePkgs');
1442          }          }
1443    
1444        }
1445    
1446    }
1447    
1448    
1449    EOF
1450    
     }  
1451    
1452    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/30mongodbDeleteOldRepos
1453    {
1454        for my $dbVer (qw( 0.9 1.0 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7)) {
1455            $dataBase = "mongodb$dbVer";
1456            my $repo = $DB->get($dataBase);
1457            $repo->delete if $repo;
1458        }
1459  }  }
1460    
1461  EOF  EOF
# Line 1377  cat %{name}-%{version}-filelist| grep fw Line 1483  cat %{name}-%{version}-filelist| grep fw
1483  cat %{name}-%{version}-filelist| grep fusioninventory-agent     > %{name}-%{version}-filelist-fusioninventory-agent  cat %{name}-%{version}-filelist| grep fusioninventory-agent     > %{name}-%{version}-filelist-fusioninventory-agent
1484  cat %{name}-%{version}-filelist| grep lemonldap                 > %{name}-%{version}-filelist-lemonldap  cat %{name}-%{version}-filelist| grep lemonldap                 > %{name}-%{version}-filelist-lemonldap
1485  cat %{name}-%{version}-filelist| grep libreswan                 > %{name}-%{version}-filelist-libreswan  cat %{name}-%{version}-filelist| grep libreswan                 > %{name}-%{version}-filelist-libreswan
1486    cat %{name}-%{version}-filelist| grep mongodb                   > %{name}-%{version}-filelist-mongodb
1487    cat %{name}-%{version}-filelist| grep nginx                     > %{name}-%{version}-filelist-nginx
1488    cat %{name}-%{version}-filelist| grep node                      > %{name}-%{version}-filelist-node
1489  if  ( "%{?dist}"  == "el7" ); then  if  ( "%{?dist}"  == "el7" ); then
1490  cat %{name}-%{version}-filelist| grep odoo                      > %{name}-%{version}-filelist-odoo  cat %{name}-%{version}-filelist| grep odoo                      > %{name}-%{version}-filelist-odoo
1491  fi  fi
1492  cat %{name}-%{version}-filelist| grep okay                      > %{name}-%{version}-filelist-okay  cat %{name}-%{version}-filelist| grep okay                      > %{name}-%{version}-filelist-okay
1493    cat %{name}-%{version}-filelist| grep -i onlyoffice             > %{name}-%{version}-filelist-onlyoffice
1494  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  
1495  cat %{name}-%{version}-filelist| grep reetp                     > %{name}-%{version}-filelist-reetp  cat %{name}-%{version}-filelist| grep reetp                     > %{name}-%{version}-filelist-reetp
1496  cat %{name}-%{version}-filelist| grep remi-ocsinventory         > %{name}-%{version}-filelist-remi-ocsinventory  cat %{name}-%{version}-filelist| grep remi-ocsinventory         > %{name}-%{version}-filelist-remi-ocsinventory
1497  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 1536  Libreswan Repository Line 1645  Libreswan Repository
1645  %files libreswan -f  %{name}-%{version}-filelist-libreswan  %files libreswan -f  %{name}-%{version}-filelist-libreswan
1646  %defattr(-,root,root)  %defattr(-,root,root)
1647    
1648    %package mongodb
1649    Summary: MongoDB Repositories
1650    %description mongodb
1651    MongoDB Repositories
1652    %files mongodb -f  %{name}-%{version}-filelist-mongodb
1653    %defattr(-,root,root)
1654    
1655    %package nginx
1656    Summary: nginx Repositories
1657    %description nginx
1658    Nginx Repositories
1659    %files nginx -f  %{name}-%{version}-filelist-nginx
1660    %defattr(-,root,root)
1661    
1662  %package node  %package node
1663  Summary: NodeJS Repositories  Summary: NodeJS Repositories
1664  %description node  %description node
# Line 1559  Extra OKay Packages for Enterprise Linux Line 1682  Extra OKay Packages for Enterprise Linux
1682  %files okay -f  %{name}-%{version}-filelist-okay  %files okay -f  %{name}-%{version}-filelist-okay
1683  %defattr(-,root,root)  %defattr(-,root,root)
1684    
1685    %package onlyoffice
1686    Summary: onlyoffice Repository
1687    %description onlyoffice
1688    onlyoffice Repository
1689    %files onlyoffice  -f %{name}-%{version}-filelist-onlyoffice
1690    %defattr(-,root,root)
1691    
1692  %package openfusion  %package openfusion
1693  Summary: Openfusion Repository  Summary: Openfusion Repository
1694  %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