2017-01-30 23:53:15 +01:00
|
|
|
#
|
|
|
|
# spec file for package libapparmor
|
|
|
|
#
|
2024-01-29 22:22:57 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
|
|
|
# Copyright (c) 2011-2024 Christian Boltz
|
2017-01-30 23:53:15 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-10 20:56:55 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-01-30 23:53:15 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-05-23 16:51:56 +02:00
|
|
|
%define tarversion v4.0.1
|
|
|
|
|
2017-01-30 23:53:15 +01:00
|
|
|
Name: libapparmor
|
2024-05-23 16:51:56 +02:00
|
|
|
Version: 4.0.1
|
2017-01-30 23:53:15 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Utility library for AppArmor
|
2018-03-03 11:25:05 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2017-01-30 23:53:15 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2024-05-23 16:51:56 +02:00
|
|
|
URL: https://gitlab.com/apparmor/apparmor/
|
|
|
|
Source0: https://gitlab.com/apparmor/apparmor/-/archive/%{tarversion}/apparmor-%{tarversion}.tar.gz
|
|
|
|
# from https://gitlab.com/apparmor/apparmor/-/wikis/%{version}_Signatures
|
|
|
|
Source1: apparmor-%{tarversion}.tar.gz.asc
|
|
|
|
Source2: apparmor.keyring
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: autoconf-archive
|
|
|
|
BuildRequires: automake
|
2017-01-30 23:53:15 +01:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: dejagnu
|
|
|
|
BuildRequires: flex
|
2024-05-23 16:51:56 +02:00
|
|
|
BuildRequires: libtool
|
2017-01-30 23:53:15 +01:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2020-10-17 18:56:14 +02:00
|
|
|
|
2017-01-30 23:53:15 +01:00
|
|
|
%description
|
|
|
|
This package provides the libapparmor library, which contains the
|
|
|
|
change_hat(2) symbol, used for sub-process confinement by AppArmor, as
|
|
|
|
well as functions to parse AppArmor log messages.
|
|
|
|
|
|
|
|
%package -n libapparmor1
|
|
|
|
Summary: Utility library for AppArmor
|
2017-02-11 13:19:17 +01:00
|
|
|
Group: System/Libraries
|
2017-01-30 23:53:15 +01:00
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libapparmor-64bit < 2.9
|
|
|
|
Provides: libapparmor-64bit = %{version}
|
|
|
|
%endif
|
|
|
|
Provides: libapparmor = %{version}
|
|
|
|
Obsoletes: libapparmor < 2.9
|
|
|
|
|
|
|
|
%description -n libapparmor1
|
|
|
|
This package provides the libapparmor library, which contains the
|
|
|
|
change_hat(2) symbol, used for sub-process confinement by AppArmor, as
|
|
|
|
well as functions to parse AppArmor log messages.
|
|
|
|
|
|
|
|
%package -n libapparmor-devel
|
|
|
|
Summary: Development headers and libraries for libapparmor
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libapparmor1 = %{version}
|
|
|
|
Provides: libapparmor:/usr/include/sys/apparmor.h
|
|
|
|
|
|
|
|
%description -n libapparmor-devel
|
|
|
|
These libraries are needed for developing software that makes use of the
|
|
|
|
AppArmor API.
|
|
|
|
|
|
|
|
%prep
|
2024-05-23 16:51:56 +02:00
|
|
|
%setup -q -n apparmor-%{tarversion}
|
2017-01-30 23:53:15 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
(
|
|
|
|
cd ./libraries/libapparmor
|
2024-05-23 16:51:56 +02:00
|
|
|
sh ./autogen.sh &&
|
2017-01-30 23:53:15 +01:00
|
|
|
%configure \
|
|
|
|
--without-perl \
|
|
|
|
--without-python \
|
|
|
|
--without-ruby \
|
|
|
|
|
|
|
|
make
|
|
|
|
)
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check -C libraries/libapparmor
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall -C libraries/libapparmor
|
|
|
|
# create symlink for old change_hat(2) manpage
|
|
|
|
( cd %{buildroot}/%{_mandir}/man2/ && ln -s aa_change_hat.2 change_hat.2 )
|
|
|
|
|
2017-12-26 15:30:01 +01:00
|
|
|
# remove *.la and *.a files
|
2017-01-30 23:53:15 +01:00
|
|
|
rm -fv %{buildroot}%{_libdir}/libapparmor.la
|
2017-12-26 15:30:01 +01:00
|
|
|
rm -fv %{buildroot}%{_libdir}/libapparmor.a
|
2017-01-30 23:53:15 +01:00
|
|
|
|
|
|
|
%post -n libapparmor1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libapparmor1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libapparmor1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libapparmor.so.*
|
|
|
|
|
|
|
|
%files -n libapparmor-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libapparmor.so
|
|
|
|
%{_libdir}/pkgconfig/libapparmor.pc
|
|
|
|
%doc %{_mandir}/man2/aa_change_hat.2.gz
|
|
|
|
%doc %{_mandir}/man2/aa_change_profile.2.gz
|
|
|
|
%doc %{_mandir}/man2/aa_stack_profile.2.gz
|
|
|
|
%doc %{_mandir}/man2/change_hat.2.gz
|
|
|
|
%doc %{_mandir}/man2/aa_find_mountpoint.2.gz
|
|
|
|
%doc %{_mandir}/man2/aa_getcon.2.gz
|
|
|
|
%doc %{_mandir}/man2/aa_query_label.2.gz
|
|
|
|
%doc %{_mandir}/man3/aa_features.3.gz
|
|
|
|
%doc %{_mandir}/man3/aa_kernel_interface.3.gz
|
|
|
|
%doc %{_mandir}/man3/aa_policy_cache.3.gz
|
|
|
|
%doc %{_mandir}/man3/aa_splitcon.3.gz
|
|
|
|
%dir %{_includedir}/aalogparse
|
|
|
|
%{_includedir}/sys/apparmor.h
|
|
|
|
%{_includedir}/sys/apparmor_private.h
|
|
|
|
%{_includedir}/aalogparse/*
|
|
|
|
|
|
|
|
%changelog
|