diff --git a/apparmor.spec b/apparmor.spec index f192de7..dce8f2f 100644 --- a/apparmor.spec +++ b/apparmor.spec @@ -1,6 +1,6 @@ Name: apparmor Version: 3.1.1 -Release: 1mamba +Release: 3mamba Summary: Mandatory Access Control (MAC) using Linux Security Module (LSM) Group: System/Kernel and Hardware Vendor: openmamba @@ -38,6 +38,29 @@ Requires: pkg-config %description -n lib%{name}-devel This package contains libraries and header files for developing applications that use %{name}. +%package -n ruby-%{name} +Group: System/Libraries/Ruby +Summary: Ruby binding to %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n ruby-%{name} +This package contains the ruby binding to %{name}. + +%package -n perl-%{name} +Group: System/Libraries/Perl +Summary: Perl binding to %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n perl-%{name} +This package contains the perl binding to %{name}. + +%package -n python-%{name}-py3 +Group: System/Libraries/Python +Summary: Python binding to %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n python-%{name}-py3 +This package contains the python binding to %{name}. %debug_package @@ -51,6 +74,7 @@ autoreconf -fi %build #:<< __EOF cd libraries/libapparmor + %configure \ --with-perl \ --with-python \ @@ -64,7 +88,7 @@ make -C binutils make -C parser make -C profiles make -C utils -make -C changehat/pam_apparmor +make -C changehat/pam_apparmor SECDIR=%{_libdir}/security make -C changehat/mod_apparmor make -C utils/vim @@ -72,12 +96,18 @@ make -C utils/vim [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d -m0755 %{buildroot}%{ruby_sitearch} %makeinstall -C libraries/libapparmor -%makeinstall -C changehat/pam_apparmor +%makeinstall -C changehat/pam_apparmor \ + SECDIR=%{buildroot}%{_libdir}/security %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 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 +%makeinstall -C utils SBINDIR=%{buildroot}%{_sbindir} \ + BINDIR=%{buildroot}%{_bindir} \ + VIM_INSTALL_PATH=%{buildroot}%{_datadir}/vim/vimfiles/syntax rm -f %{buildroot}%{perl_archlib}/perllocal.pod @@ -127,13 +157,23 @@ rm -f %{buildroot}%{perl_archlib}/perllocal.pod %{_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 +%{_libdir}/security/pam_apparmor.so +%doc LICENSE + +%files -n ruby-%{name} +%defattr(-,root,root) +%{ruby_sitearch}/LibAppArmor.so + +%files -n perl-%{name} +%defattr(-,root,root) %{perl_vendorarch}/* + +%files -n python-%{name}-py3 +%defattr(-,root,root) %dir %{python3_sitelib}/apparmor-%{version}-py*.egg-info %{python3_sitelib}/apparmor-%{version}-py*.egg-info/* %dir %{python3_sitearch}/LibAppArmor-%{version}-py*.egg-info @@ -142,7 +182,6 @@ rm -f %{buildroot}%{perl_archlib}/perllocal.pod %{python3_sitearch}/LibAppArmor/* %dir %{python3_sitelib}/apparmor %{python3_sitelib}/apparmor/* -%{ruby_sitearch}/LibAppArmor.so %files -n lib%{name}-devel %defattr(-,root,root) @@ -157,5 +196,11 @@ rm -f %{buildroot}%{perl_archlib}/perllocal.pod %doc README.md %changelog +* Thu Nov 03 2022 Silvan Calarco 3.1.1-3mamba +- added subpackages for python and perl bindings + +* Wed Nov 02 2022 Silvan Calarco 3.1.1-2mamba +- fix installation path of pam module + * Fri Sep 30 2022 Silvan Calarco 3.1.1-1mamba - package created using the webbuild interface