From a2e1dbe16912c3b86a8c52ffbd3a7d7b64fa02de Mon Sep 17 00:00:00 2001 From: madomado Date: Sun, 5 May 2024 03:29:10 +0800 Subject: [PATCH] fix: apparmor (#1175) * chore(rebuild): apparmor Signed-off-by: madomado * ?? Signed-off-by: madomado * Update apparmor.spec Signed-off-by: madomado * fix versioning Signed-off-by: madomado * Update apparmor.spec Signed-off-by: madomado * Update apparmor.spec Signed-off-by: madomado --------- Signed-off-by: madomado --- anda/lib/apparmor/apparmor.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/anda/lib/apparmor/apparmor.spec b/anda/lib/apparmor/apparmor.spec index 112275b0d4..0f2fb2c1be 100644 --- a/anda/lib/apparmor/apparmor.spec +++ b/anda/lib/apparmor/apparmor.spec @@ -4,14 +4,15 @@ Name: apparmor Version: 4.0.0~alpha3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: AppArmor userspace components %define baseversion %(echo %{version} | cut -d. -f-2) +%global normver %(echo %version | sed 's/~/-/') License: GPL-2.0 URL: https://launchpad.net/apparmor -Source0: %{url}/%{baseversion}/%(echo %version | sed 's/~/-/')/+download/%{name}-%{version}.tar.gz +Source0: %{url}/%{baseversion}/%normver/+download/%{name}-%{version}.tar.gz Source1: apparmor.preset Patch01: 0001-fix-avahi-daemon-authselect-denial-in-fedora.patch @@ -138,6 +139,8 @@ changehat abilities exposed through libapparmor. %prep %autosetup -p1 -n %{name}-%{version} +sed -i 's/@VERSION@/%normver/g' libraries/libapparmor/swig/python/setup.py.in +sed -i 's/${VERSION}/%normver/g' utils/Makefile %build export PYTHON=%{__python3} @@ -149,7 +152,7 @@ pushd libraries/libapparmor %configure \ --with-python \ -%make_build +%make_build VERSION=%normver popd %make_build -C binutils