-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add compatibility with RHEL7 (and YUM v3) (#45)
* Add compatibility with RHEL 7 (and YUM v3) Related: https://issues.redhat.com/browse/OSCI-5194
- Loading branch information
Showing
5 changed files
with
225 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,34 @@ | ||
%if 0%{?rhel} == 7 | ||
%define yumcmd yum | ||
%else | ||
%define yumcmd dnf | ||
%endif | ||
|
||
Name: mini-tps | ||
Version: 0.1 | ||
Release: 170%{?dist} | ||
Release: 171%{?dist} | ||
Summary: Mini TPS - Test Package Sanity | ||
|
||
License: GPLv2 | ||
URL: https://github.com/fedora-ci/mini-tps | ||
Source0: mini-tps.tar.gz | ||
Source0: mini-tps-0.1.tar.gz | ||
BuildArch: noarch | ||
# Don't add any Requires here because those would become protected, see mini-tps.conf | ||
|
||
%description | ||
Light version of TPS | ||
|
||
%prep | ||
%autosetup -n mini-tps | ||
%autosetup -n mini-tps-0.1 | ||
|
||
%build | ||
|
||
%install | ||
mkdir -p %{buildroot}%{_sbindir} # epel7 | ||
install -pD -m 0755 --target-directory=%{buildroot}%{_sbindir} mtps-* | ||
|
||
mkdir -p %{buildroot}%{_sysconfdir}/dnf/protected.d/ | ||
cat > %{buildroot}%{_sysconfdir}/dnf/protected.d/mini-tps.conf <<EOF | ||
mkdir -p %{buildroot}%{_sysconfdir}/%{yumcmd}/protected.d/ | ||
cat > %{buildroot}%{_sysconfdir}/%{yumcmd}/protected.d/mini-tps.conf <<EOF | ||
# Packages for which mini-tps won't run the 'remove' test (i.e. won't try to remove them). | ||
|
||
mini-tps | ||
|
@@ -31,7 +37,7 @@ yum | |
yum-utils | ||
EOF | ||
%if 0%{?rhel} > 7 | ||
cat >> %{buildroot}%{_sysconfdir}/dnf/protected.d/mini-tps.conf <<EOF | ||
cat >> %{buildroot}%{_sysconfdir}/%{yumcmd}/protected.d/mini-tps.conf <<EOF | ||
|
||
# https://bugzilla.redhat.com/show_bug.cgi?id=1641631 | ||
dnf-plugins-core | ||
|
@@ -58,12 +64,15 @@ install -pD -m 0755 profiles/fedora/prepare-system %{buildroot}%{_libexecdir}/mi | |
|
||
%files | ||
%{_sbindir}/mtps-* | ||
%config %{_sysconfdir}/dnf/protected.d/mini-tps.conf | ||
%config %{_sysconfdir}/%{yumcmd}/protected.d/mini-tps.conf | ||
%{_datarootdir}/mini-tps/* | ||
%{_libexecdir}/mini-tps/* | ||
|
||
|
||
%changelog | ||
* Fri Mar 22 2024 Jan Blazek <[email protected]> - 0.1-171 | ||
- Add compatibility with RHEL 7 | ||
|
||
* Thu Feb 22 2024 Jiri Popelka <[email protected]> - 0.1-170 | ||
- rhel-10.0-beta repo file | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,191 @@ | ||
[rhel] | ||
name=rhel | ||
baseurl=http://download.eng.rdu2.redhat.com/released/RHEL-7/7.9/Server/x86_64/os/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-opt] | ||
name=rhel-opt | ||
baseurl=http://download.eng.rdu2.redhat.com/released/RHEL-7/7.9/Server-optional/x86_64/os/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-debuginfo] | ||
name=rhel-debuginfo | ||
baseurl=http://download.eng.rdu2.redhat.com/released/RHEL-7/7.9/Server/x86_64/debug/tree/ | ||
enabled=0 | ||
gpgcheck=0 | ||
|
||
[rhel-opt-debuginfo] | ||
name=rhel-opt-debuginfo | ||
baseurl=http://download.eng.rdu2.redhat.com/released/RHEL-7/7.9/Server-optional/x86_64/debug/tree/ | ||
enabled=0 | ||
gpgcheck=0 | ||
|
||
[rhel-source] | ||
name=rhel-source | ||
baseurl=http://download.eng.rdu2.redhat.com/released/RHEL-7/7.9/Server/source/tree/ | ||
enabled=0 | ||
gpgcheck=0 | ||
|
||
[rhel-opt-source] | ||
name=rhel-opt-source | ||
baseurl=http://download.eng.rdu2.redhat.com/released/RHEL-7/7.9/Server-optional/source/tree/ | ||
enabled=0 | ||
gpgcheck=0 | ||
|
||
[rhel-SAP] | ||
name=rhel-SAP | ||
baseurl=http://download.eng.rdu2.redhat.com/released/RHEL-7/7.9/Server-SAP/x86_64/os/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-SAP-debuginfo] | ||
name=rhel-SAP-debuginfo | ||
baseurl=http://download.eng.rdu2.redhat.com/released/RHEL-7/7.9/Server-SAP/x86_64/debug/tree/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-SAPHANA] | ||
name=rhel-SAPHANA | ||
baseurl=http://download.eng.rdu2.redhat.com/released/RHEL-7/7.9/Server-SAPHANA/x86_64/os/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-SAPHANA-debuginfo] | ||
name=rhel-SAPHANA-debuginfo | ||
baseurl=http://download.eng.rdu2.redhat.com/released/RHEL-7/7.9/Server-SAPHANA/x86_64/debug/tree/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-HighAvailability] | ||
name=rhel-HighAvailability | ||
baseurl=http://download.eng.rdu2.redhat.com/released/RHEL-7/7.9/Server/x86_64/os/addons/HighAvailability/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-HighAvailability-debuginfo] | ||
name=rhel-HighAvailability | ||
baseurl=http://download.eng.rdu2.redhat.com/released/RHEL-7/7.9/Server/x86_64/debug/tree/addons/HighAvailability/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-ResilientStorage] | ||
name=rhel-ResilientStorage | ||
baseurl=http://download.eng.rdu2.redhat.com/released/RHEL-7/7.9/Server/x86_64/os/addons/ResilientStorage/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-ResilientStorage-debuginfo] | ||
name=rhel-ResilientStorage | ||
baseurl=http://download.eng.rdu2.redhat.com/released/RHEL-7/7.9/Server/x86_64/debug/tree/addons/ResilientStorage/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-RT] | ||
name=rhel-RT | ||
baseurl=http://download.eng.rdu2.redhat.com/released/RHEL-7/7.9/Server-RT/x86_64/os/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-RT-debuginfo] | ||
name=rhel-RT-debuginfo | ||
baseurl=http://download.eng.rdu2.redhat.com/released/RHEL-7/7.9/Server-RT/x86_64/debug/tree/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-updates] | ||
name=rhel-updates | ||
baseurl=http://download.eng.rdu2.redhat.com/rhel-7/rel-eng/updates/RHEL-7/latest-RHEL-7.9/compose/Server/x86_64/os/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-opt-updates] | ||
name=rhel-opt-updates | ||
baseurl=http://download.eng.rdu2.redhat.com/rhel-7/rel-eng/updates/RHEL-7/latest-RHEL-7.9/compose/Server-optional/x86_64/os/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-debuginfo-updates] | ||
name=rhel-debuginfo-updates | ||
baseurl=http://download.eng.rdu2.redhat.com/rhel-7/rel-eng/updates/RHEL-7/latest-RHEL-7.9/compose/Server/x86_64/debug/tree/ | ||
enabled=0 | ||
gpgcheck=0 | ||
|
||
[rhel-opt-debuginfo-updates] | ||
name=rhel-opt-debuginfo-updates | ||
baseurl=http://download.eng.rdu2.redhat.com/rhel-7/rel-eng/updates/RHEL-7/latest-RHEL-7.9/compose/Server-optional/x86_64/debug/tree/ | ||
enabled=0 | ||
gpgcheck=0 | ||
|
||
[rhel-source-updates] | ||
name=rhel-source-updates | ||
baseurl=http://download.eng.rdu2.redhat.com/rhel-7/rel-eng/updates/RHEL-7/latest-RHEL-7.9/compose/Server/source/tree/ | ||
enabled=0 | ||
gpgcheck=0 | ||
|
||
[rhel-opt-source-updates] | ||
name=rhel-opt-source-updates | ||
baseurl=http://download.eng.rdu2.redhat.com/rhel-7/rel-eng/updates/RHEL-7/latest-RHEL-7.9/compose/Server-optional/source/tree/ | ||
enabled=0 | ||
gpgcheck=0 | ||
|
||
[rhel-SAP-updates] | ||
name=rhel-SAP-updates | ||
baseurl=http://download.eng.rdu2.redhat.com/rhel-7/rel-eng/updates/RHEL-7/latest-RHEL-7.9/compose/Server-SAP/x86_64/os/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-SAP-debuginfo-updates] | ||
name=rhel-SAP-debuginfo-updates | ||
baseurl=http://download.eng.rdu2.redhat.com/rhel-7/rel-eng/updates/RHEL-7/latest-RHEL-7.9/compose/Server-SAP/x86_64/debug/tree/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-SAPHANA-updates] | ||
name=rhel-SAPHANA-updates | ||
baseurl=http://download.eng.rdu2.redhat.com/rhel-7/rel-eng/updates/RHEL-7/latest-RHEL-7.9/compose/Server-SAPHANA/x86_64/os/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-SAPHANA-debuginfo-updates] | ||
name=rhel-SAPHANA-debuginfo-updates | ||
baseurl=http://download.eng.rdu2.redhat.com/rhel-7/rel-eng/updates/RHEL-7/latest-RHEL-7.9/compose/Server-SAPHANA/x86_64/debug/tree/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-HighAvailability-updates] | ||
name=rhel-HighAvailability-updates | ||
baseurl=http://download.eng.rdu2.redhat.com/rhel-7/rel-eng/updates/RHEL-7/latest-RHEL-7.9/compose/Server/x86_64/os/addons/HighAvailability/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-HighAvailability-debuginfo-updates] | ||
name=rhel-HighAvailability-updates | ||
baseurl=http://download.eng.rdu2.redhat.com/rhel-7/rel-eng/updates/RHEL-7/latest-RHEL-7.9/compose/Server/x86_64/debug/tree/addons/HighAvailability/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-ResilientStorage-updates] | ||
name=rhel-ResilientStorage-updates | ||
baseurl=http://download.eng.rdu2.redhat.com/rhel-7/rel-eng/updates/RHEL-7/latest-RHEL-7.9/compose/Server/x86_64/os/addons/ResilientStorage/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-ResilientStorage-debuginfo-updates] | ||
name=rhel-ResilientStorage-updates | ||
baseurl=http://download.eng.rdu2.redhat.com/rhel-7/rel-eng/updates/RHEL-7/latest-RHEL-7.9/compose/Server/x86_64/debug/tree/addons/ResilientStorage/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-RT-updates] | ||
name=rhel-RT-updates | ||
baseurl=http://download.eng.rdu2.redhat.com/rhel-7/rel-eng/updates/RHEL-7/latest-RHEL-7.9/compose/Server-RT/x86_64/os/ | ||
enabled=1 | ||
gpgcheck=0 | ||
|
||
[rhel-RT-debuginfo-updates] | ||
name=rhel-RT-debuginfo-updates | ||
baseurl=http://download.eng.rdu2.redhat.com/rhel-7/rel-eng/updates/RHEL-7/latest-RHEL-7.9/compose/Server-RT/x86_64/debug/tree/ | ||
enabled=1 | ||
gpgcheck=0 |