diff --git a/kpatch.spec b/kpatch.spec index c23762b..ef86c40 100644 --- a/kpatch.spec +++ b/kpatch.spec @@ -18,10 +18,10 @@ Patch2: 0003-do-not-rm-selinux-rpm-owned-directory.patch Patch3: 0004-kpatch-List-CVEs-for-loaded-livepatch-modules.patch # Upstream backports (inactive -- for future reference) -#Patch100: 0100-xxx.patch +# %%Patch100: 0100-xxx.patch # kpatch-dnf backports (inactive -- for future reference) -#Patch200: 0200-foo-bar-etcetera.patch +# %%Patch200: 0200-foo-bar-etcetera.patch BuildRequires: make @@ -42,7 +42,7 @@ Summary: kpatch-patch manager plugin for DNF Version: %{version}_%{kpatch_dnf_ver} BuildRequires: python3-devel python3-dnf Requires: python3-dnf python3-hawkey -Provides: kpatch-dnf +Provides: kpatch-dnf = %{version}-%{release} %description -n kpatch-dnf kpatch-dnf is a DNF plugin that manages subscription to kpatch-patch updates. @@ -56,14 +56,14 @@ kpatch-patch packages updates. %patch -P 2 -p1 %patch -P 3 -p1 # Use this to apply upstream patches to kpatch -#%patch -P 100 -p1 +# %%patch -P 100 -p1 -%setup -D -T -a 1 +%setup -D -T -a 1 -q # Use this to apply patches to kpatch-dnf (inactive) -#cd kpatch-dnf-%{kpatch_dnf_ver} -#%patch200 -p1 -#cd .. +# cd kpatch-dnf-%%{kpatch_dnf_ver} +# %%patch200 -p1 +# cd .. %build make -C man @@ -79,6 +79,9 @@ rm -f %{buildroot}/usr/share/man/man1/kpatch-build.1.gz make install PREFIX=/usr DESTDIR=%{buildroot} PYTHONSITES=%{python3_sitelib} -C kpatch-dnf-%{kpatch_dnf_ver} +%check +# No check available + %files %{_sbindir}/kpatch %{_usr}/lib/systemd/system/kpatch.service