update to 2.8 [release 2.8-1mamba;Tue Sep 11 2018]

This commit is contained in:
Silvan Calarco 2024-01-06 05:44:56 +01:00
parent c16abb9ef8
commit a662ed7a49

View File

@ -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 <silvan.calarco@mambasoft.it> 2.8-1mamba
- update to 2.8
* Wed Nov 16 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6-1mamba
- update to 2.6