1 |
%define name smeserver-extrarepositories |
%define name smeserver-extrarepositories |
2 |
%define version 0.1 |
%define version 0.1 |
3 |
%define release 39 |
%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 |
* Sat May 28 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-39.sme |
35 |
- fix typo in pgsql url |
- fix typo in pgsql url |
36 |
|
|
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 |
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 |
##################### |
##################### |
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 |
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 |
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 |