From 6c6adb4e70aa2c7b281210b821869fba57e26996 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Fri, 8 Dec 2023 08:17:54 +0100 Subject: [PATCH] Move Requires: to mini-tps.conf If the only purpose of those Requires: is to have those packages protected then it's much cleaner to have them directly in the mini-tps.conf --- mini-tps.spec | 43 +++++++++++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/mini-tps.spec b/mini-tps.spec index 82d61e9..d2b0a9a 100644 --- a/mini-tps.spec +++ b/mini-tps.spec @@ -5,32 +5,42 @@ Summary: Mini TPS - Test Package Sanity License: GPLv2 URL: https://github.com/fedora-ci/mini-tps -Source0: %{name}.tar.gz -# 'remove' test won't be run for these packages -Requires: yum yum-utils openssh-server +Source0: mini-tps.tar.gz BuildArch: noarch - -%if 0%{?rhel} > 7 -# bug: https://bugzilla.redhat.com/show_bug.cgi?id=1641631 -Requires: rpm-plugin-selinux -Requires: dnf-plugins-core -Requires: libselinux-utils -%endif +# Don't add any Requires here because those would become protected, see mini-tps.conf %description Light version of TPS %prep -%autosetup -n %{name} +%autosetup -n mini-tps %build %install mkdir -p %{buildroot}%{_sbindir} # epel7 install -pD -m 0755 --target-directory=%{buildroot}%{_sbindir} mtps-* + mkdir -p %{buildroot}%{_sysconfdir}/dnf/protected.d/ -# Make mini-tps (and all packages mini-tps requires) protected (from removal) -echo mini-tps > %{buildroot}%{_sysconfdir}/dnf/protected.d/mini-tps.conf +cat > %{buildroot}%{_sysconfdir}/dnf/protected.d/mini-tps.conf < 7 +cat >> %{buildroot}%{_sysconfdir}/dnf/protected.d/mini-tps.conf < - 0.1-163 -- remove the Requires: python-gobject-base +- Remove the Requires: python-gobject-base +- Move Requires: to mini-tps.conf * Fri Nov 24 2023 Jiri Popelka - 0.1-162 - URL update -- move mtps-* executables from /usr/local/bin/ to /usr/sbin/ -- use install instead of mkdir & cp +- Move mtps-* executables from /usr/local/bin/ to /usr/sbin/ +- Use install instead of mkdir & cp - mtps-mutils Requires: python-gobject-base * Mon Jul 31 2023 Andrei Stepanov - 0.1-161