/[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.27 by jpp, Sat Oct 28 03:25:39 2023 UTC Revision 1.28 by jpp, Tue Feb 20 21:19:30 2024 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 43  %define release 44
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 14  BuildRequires: e-smith-devtools Line 14  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  Source0: https://raw.githubusercontent.com/ONLYOFFICE/repo/master/centos/RPM-GPG-KEY-ONLYOFFICE
17    Source1: https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-RHEL7
18    
19  %description  %description
20  Provides configuration for external yum repository comaptible with Koozali SME Server.  Provides configuration for external yum repository comaptible with Koozali SME Server.
21    
22  %changelog  %changelog
23    * Tue Feb 20 2024 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-44.sme
24    - update pgsql gpg keys and add new versions [SME: 12473]
25    
26  * Fri Oct 27 2023 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-43.sme  * Fri Oct 27 2023 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-43.sme
27  - add new elastic repos [SME: 12422]  - add new elastic repos [SME: 12422]
28  - add wandisco distribution of git [SME: 12345]  - add wandisco distribution of git [SME: 12345]
# Line 172  mkdir -p $RPM_BUILD_ROOT/usr/share/rpm-g Line 176  mkdir -p $RPM_BUILD_ROOT/usr/share/rpm-g
176  #cp %source0 $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/  #cp %source0 $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/
177  #/usr/share/rpm-gpg-keys/RPM-GPG-KEY-${REPO['reponame']}  #/usr/share/rpm-gpg-keys/RPM-GPG-KEY-${REPO['reponame']}
178  cp %SOURCE0  $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/  cp %SOURCE0  $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/
179    cp %SOURCE1  $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/PGDG-RPM-GPG-KEY-RHEL7-pgsql
180    
181  # if needing to migrate something :  # if needing to migrate something :
182  #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 905  createrepo Line 909  createrepo
909  # Postgresql  # Postgresql
910  #####################  #####################
911  #####################  #####################
912  for pgsqlver  in  "9.6" "10" "11" "12" "13"; do  for pgsqlver  in   "12" "13" "14" "15" "16"; do
913  REPO['reponame']="pgsql$pgsqlver"  REPO['reponame']="pgsql$pgsqlver"
914  REPO['pkgname']='pgsql'  REPO['pkgname']='pgsql'
915  REPO['fullreponame']="Postgresql $pgsqlver"  REPO['fullreponame']="Postgresql $pgsqlver"
# Line 915  REPO['status']='disabled' Line 919  REPO['status']='disabled'
919  REPO['BaseURL']='https://yum.postgresql.org/'$pgsqlver'/redhat/rhel-$releasever-$basearch/'  REPO['BaseURL']='https://yum.postgresql.org/'$pgsqlver'/redhat/rhel-$releasever-$basearch/'
920  REPO['MirrorList']=''  REPO['MirrorList']=''
921  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
922  ext=$pgsqlver;  REPO['GPGKey']='https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-RHEL7'
923  [[ "$pgsqlver" == "9.6" ]] && ext="96";  #https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-RHEL
924  REPO['GPGKey']='https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-'$ext  #https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-AARCH64-RHEL
925  REPO['Exclude']=''  REPO['Exclude']=''
926  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
927  REPO['Priority']=''  REPO['Priority']=''
# Line 933  REPO['status']='disabled' Line 937  REPO['status']='disabled'
937  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/'
938  REPO['MirrorList']=''  REPO['MirrorList']=''
939  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
940  ext=$pgsqlver;  REPO['GPGKey']='https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-RHEL7-nonfree'
941  [[ "$pgsqlver" == "9.6" ]] && ext="96";  #https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-RHEL-nonfree
 REPO['GPGKey']='https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-'$ext  
942  REPO['Exclude']=''  REPO['Exclude']=''
943  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
944  REPO['Priority']=''  REPO['Priority']=''
# Line 950  REPO['status']='disabled' Line 953  REPO['status']='disabled'
953  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/'
954  REPO['MirrorList']=''  REPO['MirrorList']=''
955  REPO['GPGCheck']='yes'  REPO['GPGCheck']='yes'
956  ext=$pgsqlver;  REPO['GPGKey']='https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-RHEL7'
957  [[ "$pgsqlver" == "9.6" ]] && ext="96";  #https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-RHEL
958  REPO['GPGKey']='https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-'$ext  #https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-AARCH64-RHEL
959  REPO['Exclude']=''  REPO['Exclude']=''
960  REPO['IncludePkgs']=''  REPO['IncludePkgs']=''
961  REPO['Priority']=''  REPO['Priority']=''
# Line 1590  cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smi Line 1593  cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smi
1593    
1594  EOF  EOF
1595    
1596    cat << 'EOF'  >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/30pgsql
1597    {
1598        # delete old repos
1599        for my $dbVer (qw( 9.6 10 11)) {
1600            $dataBase = "pgsql$dbVer";
1601            my $repo = $DB->get($dataBase);
1602            $repo->delete if $repo;
1603            $dataBase = "pgsql$dbVer-common";
1604            my $repo = $DB->get($dataBase);
1605            $repo->delete if $repo;
1606            $dataBase = "pgsql$dbVer-nonfree";
1607            my $repo = $DB->get($dataBase);
1608            $repo->delete if $repo;
1609        }
1610        # update keys
1611        #old was https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-**
1612        #new is https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-RHEL7
1613        for my $dbVer (qw( 12 13)) {
1614           for my $case (qw(nonfree common)) {
1615               $dataBase = "pgsql$dbVer-$case";
1616               my $repo = $DB->get($dataBase) or next;
1617               my $gpgurl = $repo->prop('GPGKey');
1618               $repo->setprop('GPGKey','https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-RHEL7') if (index($gpgurl, "keys") == -1)      
1619           }
1620           $dataBase = "pgsql$dbVer";
1621           my $repo = $DB->get($dataBase) or next;
1622           my $gpgurl = $repo->prop('GPGKey');
1623           $repo->setprop('GPGKey','https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-RHEL7') if (index($gpgurl, "keys") == -1)
1624        }
1625    }
1626    
1627    EOF
1628    
1629    
1630    


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