From c16abb9ef848036d69a967e9b34ee4d6487892eb Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:44:55 +0100 Subject: [PATCH] update to 2.6 [release 2.6-1mamba;Wed Nov 16 2016] --- libselinux.spec | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/libselinux.spec b/libselinux.spec index 876761e..2a6b701 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -1,5 +1,6 @@ +%define majver %(echo %version | cut -d. -f1-2) Name: libselinux -Version: 2.5 +Version: 2.6 Release: 1mamba Summary: A security enhancement to Linux that allows users and administrators more control over resources access Group: System/Libraries @@ -7,7 +8,7 @@ Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://userspace.selinuxproject.org/trac -Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20160223/libselinux-%{version}.tar.gz +Source: https://github.com/SELinuxProject/selinux/archive/libselinux-%{version}.tar.gz Source1: selinux-config Patch0: libselinux-2.2.1-pkgconfig.patch License: Public Domain @@ -16,10 +17,11 @@ BuildRequires: glibc-devel BuildRequires: libpcre-devel %if "%{stage1}" != "1" BuildRequires: libpython-devel +BuildRequires: libsepol-devel %endif ## AUTOBUILDREQ-END BuildRequires: libsepol-devel -Requires: libsepol >= 2.0.1 +Requires: libsepol >= %{majver} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description @@ -56,10 +58,12 @@ This package contains the python interface library to libselinux. %debug_package %prep -%setup -q +%setup -q -n selinux-libselinux-%{version} +cd libselinux %patch0 -p1 %build +cd libselinux %if "%{_build}" != "%{_host}" %make CC=%{_target_platform}-gcc TLSFLAGS= %else @@ -67,11 +71,12 @@ This package contains the python interface library to libselinux. %endif %if "%{stage1}" != "1" -%make pywrap +%make pywrap LIBDIR=%{_libdir} %endif %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} +cd libselinux %makeinstall \ LIBDIR=%{buildroot}%{_libdir} \ SHLIBDIR=%{buildroot}/%{_lib} \ @@ -95,7 +100,7 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/selinux/config /%{_lib}/libselinux.so.* %{_libdir}/libselinux.so %{_mandir}/man8/* -%doc ChangeLog LICENSE +%doc libselinux/ChangeLog libselinux/LICENSE %files devel %defattr(-,root,root) @@ -110,9 +115,13 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/selinux/config %files python %defattr(-,root,root) %{python_sitearch}/selinux/* +%{python_sitearch}/_selinux.so %endif %changelog +* Wed Nov 16 2016 Silvan Calarco 2.6-1mamba +- update to 2.6 + * Sat Feb 27 2016 Silvan Calarco 2.5-1mamba - update to 2.5