Initialize for libapparmor
This commit is contained in:
commit
86a9e7a196
5 changed files with 1473 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
apparmor-3.0.4.tar.gz
|
1
.libapparmor.metadata
Normal file
1
.libapparmor.metadata
Normal file
|
@ -0,0 +1 @@
|
||||||
|
3738eedafb4f7de3c017c95cab8aecd6cd50129a984c23e91738443c1da41532 apparmor-3.0.4.tar.gz
|
17
apparmor-3.0.4.tar.gz.asc
Normal file
17
apparmor-3.0.4.tar.gz.asc
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iQJOBAABCgA4FiEEPs3Lpfs00lSWHMU/ZonmTj02ZLsFAmIEYPoaHGFwcGFybW9y
|
||||||
|
QGxpc3RzLnVidW50dS5jb20ACgkQZonmTj02ZLsuXRAAwUfR2mTa8T1f9JKDV9oI
|
||||||
|
VyHMNPx4UQ8UGHPjdggPZpgU8tdLgIeTzrVB9IFmUNxREmeQURyr12lWJiL7rUjp
|
||||||
|
uICigANNZPtfYDB8PNF6OPbwZ61A44RZ26SZJauKQg/iP1c/m3NH24TReUqB2UgC
|
||||||
|
Zrjx4KBH30m0+wc2Ca5f017CRDRL6oPjbUnCdY6S8XdVzbbd4x/4K0yoaS8mNLde
|
||||||
|
GUbs4cMJnuMndVPhNVIiKvRt/qmYl2nB3HBzU9VXmq/GBR9wDpb1G6N3IuB7Oaak
|
||||||
|
WrB32ymgllwi5av3L1vXQhisZ1LAaH7GNElCX5c4rJa/6Bsfru5kTecEXSIJXf2H
|
||||||
|
P8XmwUkdrl7idfAbSg/jW1h02uD99WTymii2SCwYWhNX9s0BRuSMPASA9TgrYOZN
|
||||||
|
oTshsA8lYaAafdAU6OboaeS91WL65hTr3GUcGgYl+qYcYTdyU6IG4MooCwATM2st
|
||||||
|
SHt7HPOJLNntMt8CGcPx1Q9UA8ta3kNlcf6YSycWCqWvPEvCkpex23gVUVIXzVKr
|
||||||
|
bs2tvJO59BsCxiL6umsksv5otIXDrm4yay1QaYl+KUEOvU051SUyXey7pQ/qO0LY
|
||||||
|
leifVmldlLfPosAKiJqiQ3RAKp7Zr/YrvKLLxeLj5MrKUmSR2UQ5xC8aXfYYhDqh
|
||||||
|
+PPpcMO9Io9UyHHofXB7dlA=
|
||||||
|
=rXSS
|
||||||
|
-----END PGP SIGNATURE-----
|
1345
libapparmor.changes
Normal file
1345
libapparmor.changes
Normal file
File diff suppressed because it is too large
Load diff
109
libapparmor.spec
Normal file
109
libapparmor.spec
Normal file
|
@ -0,0 +1,109 @@
|
||||||
|
#
|
||||||
|
# spec file for package libapparmor
|
||||||
|
#
|
||||||
|
# Copyright (c) 2022-2023 ZhuningOS
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: libapparmor
|
||||||
|
Version: 3.0.4
|
||||||
|
Release: 150500.11.9.1
|
||||||
|
Summary: Utility library for AppArmor
|
||||||
|
License: LGPL-2.1-or-later
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
URL: https://launchpad.net/apparmor
|
||||||
|
Source0: apparmor-%{version}.tar.gz
|
||||||
|
Source1: apparmor-%{version}.tar.gz.asc
|
||||||
|
BuildRequires: bison
|
||||||
|
BuildRequires: dejagnu
|
||||||
|
BuildRequires: flex
|
||||||
|
BuildRequires: pkg-config
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
%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
|
||||||
|
Group: System/Libraries
|
||||||
|
%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
|
||||||
|
%setup -q -n apparmor-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%define _lto_cflags %{nil}
|
||||||
|
(
|
||||||
|
cd ./libraries/libapparmor
|
||||||
|
%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 )
|
||||||
|
|
||||||
|
# remove *.la and *.a files
|
||||||
|
rm -fv %{buildroot}%{_libdir}/libapparmor.la
|
||||||
|
rm -fv %{buildroot}%{_libdir}/libapparmor.a
|
||||||
|
|
||||||
|
%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
|
Loading…
Add table
Reference in a new issue