2024-01-05 20:29:55 +01:00
|
|
|
Name: apparmor
|
2024-08-18 22:45:59 +02:00
|
|
|
Version: 4.0.3
|
2024-01-05 20:29:57 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 20:29:55 +01:00
|
|
|
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
|
2024-02-08 11:37:33 +01:00
|
|
|
BuildRequires: libpython311-devel
|
2024-01-05 20:29:55 +01:00
|
|
|
BuildRequires: libruby-devel
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 20:29:56 +01:00
|
|
|
BuildRequires: perl >= 2:5.36.0
|
2024-01-05 20:29:55 +01:00
|
|
|
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}.
|
|
|
|
|
2024-01-05 20:29:55 +01:00
|
|
|
%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}.
|
2024-01-05 20:29:55 +01:00
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-v%{version}
|
|
|
|
#-D -T
|
|
|
|
#:<< __EOF
|
|
|
|
cd libraries/libapparmor
|
|
|
|
autoreconf -fi
|
|
|
|
|
|
|
|
%build
|
|
|
|
#:<< __EOF
|
|
|
|
cd libraries/libapparmor
|
2024-01-05 20:29:55 +01:00
|
|
|
|
2024-01-05 20:29:55 +01:00
|
|
|
%configure \
|
|
|
|
--with-perl \
|
|
|
|
--with-python \
|
|
|
|
--with-ruby
|
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
make -C binutils
|
|
|
|
make -C parser
|
|
|
|
make -C profiles
|
|
|
|
make -C utils
|
2024-01-05 20:29:55 +01:00
|
|
|
make -C changehat/pam_apparmor SECDIR=%{_libdir}/security
|
2024-01-05 20:29:55 +01:00
|
|
|
make -C changehat/mod_apparmor
|
|
|
|
make -C utils/vim
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
install -d -m0755 %{buildroot}%{ruby_sitearch}
|
|
|
|
%makeinstall -C libraries/libapparmor
|
2024-01-05 20:29:55 +01:00
|
|
|
%makeinstall -C changehat/pam_apparmor \
|
|
|
|
SECDIR=%{buildroot}%{_libdir}/security
|
2024-01-05 20:29:55 +01:00
|
|
|
%makeinstall -C changehat/mod_apparmor
|
2024-01-05 20:29:55 +01:00
|
|
|
%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
|
2024-01-05 20:29:55 +01:00
|
|
|
%makeinstall -C profiles
|
2024-01-05 20:29:55 +01:00
|
|
|
%makeinstall -C utils SBINDIR=%{buildroot}%{_sbindir} \
|
|
|
|
BINDIR=%{buildroot}%{_bindir} \
|
|
|
|
VIM_INSTALL_PATH=%{buildroot}%{_datadir}/vim/vimfiles/syntax
|
2024-01-05 20:29:55 +01:00
|
|
|
|
|
|
|
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
|
2024-01-05 20:29:55 +01:00
|
|
|
#%{_sbindir}/rcapparmor
|
2024-01-05 20:29:55 +01:00
|
|
|
%{_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*
|
|
|
|
|
|
|
|
%files -n lib%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libapparmor.so.*
|
2024-01-05 20:29:55 +01:00
|
|
|
%{_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)
|
2024-01-05 20:29:55 +01:00
|
|
|
%{perl_vendorarch}/*
|
2024-01-05 20:29:55 +01:00
|
|
|
|
|
|
|
%files -n python-%{name}-py3
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 20:29:55 +01:00
|
|
|
%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/*
|
|
|
|
|
|
|
|
%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
|
2024-08-18 22:45:59 +02:00
|
|
|
* Sun Aug 18 2024 Automatic Build System <autodist@openmamba.org> 4.0.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-07-31 16:39:34 +02:00
|
|
|
* Wed Jul 31 2024 Automatic Build System <autodist@openmamba.org> 4.0.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-06-06 00:29:57 +02:00
|
|
|
* Tue Jun 04 2024 Automatic Build System <autodist@openmamba.org> 4.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-02-08 11:37:33 +01:00
|
|
|
* Wed Feb 07 2024 Automatic Build System <autodist@openmamba.org> 3.1.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:29:58 +01:00
|
|
|
* Thu Jun 22 2023 Automatic Build System <autodist@mambasoft.it> 3.1.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:29:58 +01:00
|
|
|
* Sat Jun 10 2023 Automatic Build System <autodist@mambasoft.it> 3.1.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:29:57 +01:00
|
|
|
* Thu May 25 2023 Automatic Build System <autodist@mambasoft.it> 3.1.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:29:56 +01:00
|
|
|
* Sun Apr 16 2023 Sdk Build System <sdk@mambasoft.it> 3.1.3-2mamba
|
|
|
|
- rebuilt with perl 5.36.0
|
|
|
|
|
2024-01-05 20:29:56 +01:00
|
|
|
* Tue Feb 28 2023 Automatic Build System <autodist@mambasoft.it> 3.1.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:29:55 +01:00
|
|
|
* Sun Nov 13 2022 Automatic Build System <autodist@mambasoft.it> 3.1.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:29:55 +01:00
|
|
|
* Thu Nov 03 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.1-3mamba
|
|
|
|
- added subpackages for python and perl bindings
|
|
|
|
|
|
|
|
* Wed Nov 02 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.1-2mamba
|
|
|
|
- fix installation path of pam module
|
|
|
|
|
2024-01-05 20:29:55 +01:00
|
|
|
* Fri Sep 30 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.1-1mamba
|
|
|
|
- package created using the webbuild interface
|