fix: apparmor (#982)

Correct versioning
This commit is contained in:
madomado
2024-03-11 06:42:18 +08:00
committed by GitHub
parent 014fecee89
commit 2913badea4
2 changed files with 5 additions and 6 deletions
+3 -5
View File
@@ -3,7 +3,7 @@
%bcond_with tests
Name: apparmor
Version: 4.0.0
Version: 4.0.0~alpha3
Release: 1%{?dist}
Summary: AppArmor userspace components
@@ -11,10 +11,9 @@ Summary: AppArmor userspace components
License: GPL-2.0
URL: https://launchpad.net/apparmor
Source0: %{url}/%{baseversion}/%{version}-alpha2/+download/%{name}-%{version}~alpha2.tar.gz
Source0: %{url}/%{baseversion}/%(echo %version | sed 's/~/-/')/+download/%{name}-%{version}.tar.gz
Source1: apparmor.preset
Patch01: 0001-fix-avahi-daemon-authselect-denial-in-fedora.patch
Patch02: 0001-All-current-versions-of-RHEL-and-Fedora-that-are-not.patch
BuildRequires: gcc
BuildRequires: automake
@@ -138,7 +137,7 @@ confinement policies when running virtual hosts in the webserver by using the
changehat abilities exposed through libapparmor.
%prep
%autosetup -p1 -n %{name}-%{version}~alpha2
%autosetup -p1 -n %{name}-%{version}
%build
export PYTHON=%{__python3}
@@ -270,7 +269,6 @@ make -C utils check
%{_bindir}/aa-features-abi
%{_sbindir}/aa-load
%{_sbindir}/aa-teardown
%{_sbindir}/rcapparmor
%{_unitdir}/apparmor.service
%{_presetdir}/70-apparmor.preset
%{_prefix}/lib/apparmor
+2 -1
View File
@@ -1,3 +1,4 @@
let html = get("https://launchpad.net/apparmor");
let v = find("Latest version is ([\\d.]+)", html, 1);
let v = find("Latest version is ([\\d.\\w\\-]+)", html, 1);
v.replace('-', '~');
rpm.version(v);