1 |
%define name smeserver-extrarepositories |
%define name smeserver-extrarepositories |
2 |
%define version 0.1 |
%define version 0.1 |
3 |
%define release 37 |
%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} |
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 |
38 |
|
- add docker-ce repo [SME: 11894] |
39 |
|
|
40 |
* Wed Mar 09 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-37.sme |
* Wed Mar 09 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-37.sme |
41 |
- add collaboraoffice repo [SME: 11888] |
- add collaboraoffice repo [SME: 11888] |
42 |
|
|
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 |
369 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
370 |
createrepo |
createrepo |
371 |
|
|
372 |
|
##################### |
373 |
|
##################### |
374 |
|
#docker-ce |
375 |
|
##################### |
376 |
|
##################### |
377 |
|
REPO['reponame']='docker-ce' |
378 |
|
REPO['pkgname']=${REPO['reponame']} |
379 |
|
REPO['fullreponame']='docker-ce' |
380 |
|
REPO['EnableGroups']='no' |
381 |
|
REPO['Visible']='yes' |
382 |
|
REPO['status']='enabled' |
383 |
|
REPO['BaseURL']='https://download.docker.com/linux/centos/$releasever/$basearch/stable' |
384 |
|
REPO['MirrorList']='' |
385 |
|
REPO['GPGCheck']='yes' |
386 |
|
REPO['GPGKey']='https://download.docker.com/linux/centos/gpg' |
387 |
|
REPO['Exclude']='' |
388 |
|
REPO['IncludePkgs']='' |
389 |
|
createrepo |
390 |
|
|
391 |
|
|
392 |
##################### |
##################### |
393 |
##################### |
##################### |
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 |
##################### |
##################### |
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 |
##################### |
##################### |
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 |
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 |
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 |
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 |
1472 |
cat %{name}-%{version}-filelist| grep bareos > %{name}-%{version}-filelist-bareos |
cat %{name}-%{version}-filelist| grep bareos > %{name}-%{version}-filelist-bareos |
1473 |
cat %{name}-%{version}-filelist| grep centos-sclo > %{name}-%{version}-filelist-centos-sclo |
cat %{name}-%{version}-filelist| grep centos-sclo > %{name}-%{version}-filelist-centos-sclo |
1474 |
cat %{name}-%{version}-filelist| grep collaboraoffice > %{name}-%{version}-filelist-collaboraoffice |
cat %{name}-%{version}-filelist| grep collaboraoffice > %{name}-%{version}-filelist-collaboraoffice |
1475 |
|
cat %{name}-%{version}-filelist| grep docker-ce > %{name}-%{version}-filelist-docker-ce |
1476 |
cat %{name}-%{version}-filelist| grep egroupware > %{name}-%{version}-filelist-egroupware |
cat %{name}-%{version}-filelist| grep egroupware > %{name}-%{version}-filelist-egroupware |
1477 |
cat %{name}-%{version}-filelist| grep elastic > %{name}-%{version}-filelist-elastic |
cat %{name}-%{version}-filelist| grep elastic > %{name}-%{version}-filelist-elastic |
1478 |
cat %{name}-%{version}-filelist| grep elrepo > %{name}-%{version}-filelist-elrepo |
cat %{name}-%{version}-filelist| grep elrepo > %{name}-%{version}-filelist-elrepo |
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 |
1568 |
%files collaboraoffice -f %{name}-%{version}-filelist-collaboraoffice |
%files collaboraoffice -f %{name}-%{version}-filelist-collaboraoffice |
1569 |
%defattr(-,root,root) |
%defattr(-,root,root) |
1570 |
|
|
1571 |
|
%package docker-ce |
1572 |
|
Summary: docker-ce |
1573 |
|
%description docker-ce |
1574 |
|
docker-ce repo |
1575 |
|
%files docker-ce -f %{name}-%{version}-filelist-docker-ce |
1576 |
|
%defattr(-,root,root) |
1577 |
|
|
1578 |
%package egroupware |
%package egroupware |
1579 |
Summary: Repository for eGroupWare |
Summary: Repository for eGroupWare |
1580 |
%description egroupware |
%description egroupware |
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 |
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 |