Skip to content

Commit

Permalink
fix: apparmor (#1175)
Browse files Browse the repository at this point in the history
* chore(rebuild): apparmor

Signed-off-by: madomado <[email protected]>

* ??

Signed-off-by: madomado <[email protected]>

* Update apparmor.spec

Signed-off-by: madomado <[email protected]>

* fix versioning

Signed-off-by: madomado <[email protected]>

* Update apparmor.spec

Signed-off-by: madomado <[email protected]>

* Update apparmor.spec

Signed-off-by: madomado <[email protected]>

---------

Signed-off-by: madomado <[email protected]>
  • Loading branch information
madonuko authored May 4, 2024
1 parent e75fdbc commit a2e1dbe
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions anda/lib/apparmor/apparmor.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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}
Expand All @@ -149,7 +152,7 @@ pushd libraries/libapparmor
%configure \
--with-python \

%make_build
%make_build VERSION=%normver
popd

%make_build -C binutils
Expand Down

0 comments on commit a2e1dbe

Please sign in to comment.