package created using the webbuild interface [release 3.1.1-1mamba;Fri Sep 30 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 20:29:55 +01:00
parent 514f010ff1
commit ea812bc256
2 changed files with 163 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# apparmor
Mandatory Access Control (MAC) using Linux Security Module (LSM).

161
apparmor.spec Normal file
View File

@ -0,0 +1,161 @@
Name: apparmor
Version: 3.1.1
Release: 1mamba
Summary: Mandatory Access Control (MAC) using Linux Security Module (LSM)
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://gitlab.com/apparmor/apparmor
Source: https://gitlab.com/apparmor/apparmor/-/archive/v%{version}/apparmor-v%{version}.tar.bz2
License: GPL, LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpam-devel
BuildRequires: libperl
BuildRequires: libpython3-devel
BuildRequires: libruby-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
Mandatory Access Control (MAC) using Linux Security Module (LSM).
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n %{name}-v%{version}
#-D -T
#:<< __EOF
cd libraries/libapparmor
autoreconf -fi
%build
#:<< __EOF
cd libraries/libapparmor
%configure \
--with-perl \
--with-python \
--with-ruby
%make
cd ../..
make -C binutils
make -C parser
make -C profiles
make -C utils
make -C changehat/pam_apparmor
make -C changehat/mod_apparmor
make -C utils/vim
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m0755 %{buildroot}%{ruby_sitearch}
%makeinstall -C libraries/libapparmor
%makeinstall -C changehat/pam_apparmor
%makeinstall -C changehat/mod_apparmor
%makeinstall -C binutils SBINDIR=%{buildroot}%{_sbindir} USR_SBINDIR=%{buildroot}%{_bindir}
%makeinstall install-systemd -C parser SBINDIR=%{buildroot}%{_sbindir} USR_SBINDIR=%{buildroot}%{_bindir} APPARMOR_BIN_PREFIX=%{buildroot}%{_prefix}/lib/apparmor
%makeinstall -C profiles
%makeinstall -C utils SBINDIR=%{buildroot}%{_sbindir} BINDIR=%{buildroot}%{_bindir} VIM_INSTALL_PATH=%{buildroot}%{_datadir}/vim/vimfiles/syntax
rm -f %{buildroot}%{perl_archlib}/perllocal.pod
%find_lang %{name} --all-name || touch %{name}.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%preun
%systemd_preun %{name}
:
%post
%systemd_post %{name}
:
%postun
%systemd_postun %{name}
:
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%dir %{_sysconfdir}/apparmor
%config(noreplace) %{_sysconfdir}/apparmor/*.conf
%{_sysconfdir}/apparmor/severity.db
%dir %{_prefix}/lib/apparmor
%{_prefix}/lib/apparmor/*
%dir %{_sysconfdir}/apparmor.d
%{_sysconfdir}/apparmor.d/*
%{_sbindir}/apparmor_parser
%{_sbindir}/rcapparmor
%{_bindir}/aa-*
%{_sbindir}/aa-*
%{_sbindir}/apparmor_status
%{_unitdir}/apparmor.service
%dir %{_datadir}/apparmor
%{_datadir}/apparmor/*
%{_datadir}/vim/vimfiles/syntax/apparmor.vim
%{_mandir}/man1/aa-*.1*
%{_mandir}/man2/aa_*.2*
%{_mandir}/man5/apparmor*.5*
%{_mandir}/man5/logprof.conf.5*
%{_mandir}/man7/apparmor*.7*
%{_mandir}/man8/aa-*.8*
%{_mandir}/man8/apparmor_*.8*
%{_mandir}/man8/mod_apparmor.8*
%doc LICENSE
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libapparmor.so.*
/lib/security/pam_apparmor.so
%{perl_vendorarch}/*
%dir %{python3_sitelib}/apparmor-%{version}-py*.egg-info
%{python3_sitelib}/apparmor-%{version}-py*.egg-info/*
%dir %{python3_sitearch}/LibAppArmor-%{version}-py*.egg-info
%{python3_sitearch}/LibAppArmor-%{version}-py*.egg-info/*
%dir %{python3_sitearch}/LibAppArmor
%{python3_sitearch}/LibAppArmor/*
%dir %{python3_sitelib}/apparmor
%{python3_sitelib}/apparmor/*
%{ruby_sitearch}/LibAppArmor.so
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/aalogparse/aalogparse.h
%{_includedir}/sys/apparmor.h
%{_includedir}/sys/apparmor_private.h
%{_libdir}/apache/mod_apparmor.so
%{_libdir}/libapparmor.a
%{_libdir}/libapparmor.so
%{_libdir}/pkgconfig/libapparmor.pc
%{_mandir}/man3/aa_*.3*
%doc README.md
%changelog
* Fri Sep 30 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.1-1mamba
- package created using the webbuild interface