From a662ed7a4920134a81b341d8c19a420140cd2920 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:44:56 +0100 Subject: [PATCH] update to 2.8 [release 2.8-1mamba;Tue Sep 11 2018] --- libselinux.spec | 50 ++++++++++++++++++++++++++++++++++--------------- 1 file changed, 35 insertions(+), 15 deletions(-) diff --git a/libselinux.spec b/libselinux.spec index 2a6b701..5710118 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -1,6 +1,6 @@ %define majver %(echo %version | cut -d. -f1-2) Name: libselinux -Version: 2.6 +Version: 2.8 Release: 1mamba Summary: A security enhancement to Linux that allows users and administrators more control over resources access Group: System/Libraries @@ -22,6 +22,7 @@ BuildRequires: libsepol-devel ## AUTOBUILDREQ-END BuildRequires: libsepol-devel Requires: libsepol >= %{majver} +Requires: libselinux-tools = %{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description @@ -55,31 +56,45 @@ An interface for security-aware applications. This package contains the python interface library to libselinux. %endif +%package tools +Group: Development/Libraries +Summary: Security Enhanced Linux utility programs +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains the Security Enhanced Linux utility programs. + %debug_package %prep %setup -q -n selinux-libselinux-%{version} -cd libselinux -%patch0 -p1 +#cd libselinux +#%patch0 -p1 %build cd libselinux %if "%{_build}" != "%{_host}" -%make CC=%{_target_platform}-gcc TLSFLAGS= +%make CC=%{_target_platform}-gcc TLSFLAGS= \ + LIBDIR=%{_libdir} \ + SHLIBDIR=%{_libdir} %else -%make CC=%{_target_platform}-gcc +%make CC=%{_target_platform}-gcc \ + LIBDIR=%{_libdir} \ + SHLIBDIR=%{_libdir} %endif %if "%{stage1}" != "1" -%make pywrap LIBDIR=%{_libdir} +%make pywrap LIBDIR=%{_libdir} \ + LIBDIR=%{_libdir} \ + SHLIBDIR=%{_libdir} %endif %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} cd libselinux %makeinstall \ - LIBDIR=%{buildroot}%{_libdir} \ - SHLIBDIR=%{buildroot}/%{_lib} \ + LIBDIR=%{_libdir} \ + SHLIBDIR=%{_libdir} \ %if "%{stage1}" != "1" install-pywrap %endif @@ -94,23 +109,25 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/selinux/config %files %defattr(-,root,root) -%config(noreplace) %{_sysconfdir}/selinux/config -%{_sbindir}/* -#/sbin/matchpathcon -/%{_lib}/libselinux.so.* -%{_libdir}/libselinux.so -%{_mandir}/man8/* -%doc libselinux/ChangeLog libselinux/LICENSE +%{_libdir}/libselinux.so.* +%doc libselinux/LICENSE %files devel %defattr(-,root,root) %dir %{_includedir}/selinux/ %{_includedir}/selinux/*.h %{_libdir}/libselinux.a +%{_libdir}/libselinux.so %{_mandir}/man3/* %{_mandir}/man5/* %{_libdir}/pkgconfig/libselinux.pc +%files tools +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/selinux/config +%{_sbindir}/* +%{_mandir}/man8/* + %if "%{stage1}" != "1" %files python %defattr(-,root,root) @@ -119,6 +136,9 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/selinux/config %endif %changelog +* Tue Sep 11 2018 Silvan Calarco 2.8-1mamba +- update to 2.8 + * Wed Nov 16 2016 Silvan Calarco 2.6-1mamba - update to 2.6