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) %define majver %(echo %version | cut -d. -f1-2)
Name: libselinux Name: libselinux
Version: 2.6 Version: 2.8
Release: 1mamba Release: 1mamba
Summary: A security enhancement to Linux that allows users and administrators more control over resources access Summary: A security enhancement to Linux that allows users and administrators more control over resources access
Group: System/Libraries Group: System/Libraries
@ -22,6 +22,7 @@ BuildRequires: libsepol-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: libsepol-devel BuildRequires: libsepol-devel
Requires: libsepol >= %{majver} Requires: libsepol >= %{majver}
Requires: libselinux-tools = %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
@ -55,31 +56,45 @@ An interface for security-aware applications.
This package contains the python interface library to libselinux. This package contains the python interface library to libselinux.
%endif %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 %debug_package
%prep %prep
%setup -q -n selinux-libselinux-%{version} %setup -q -n selinux-libselinux-%{version}
cd libselinux #cd libselinux
%patch0 -p1 #%patch0 -p1
%build %build
cd libselinux cd libselinux
%if "%{_build}" != "%{_host}" %if "%{_build}" != "%{_host}"
%make CC=%{_target_platform}-gcc TLSFLAGS= %make CC=%{_target_platform}-gcc TLSFLAGS= \
LIBDIR=%{_libdir} \
SHLIBDIR=%{_libdir}
%else %else
%make CC=%{_target_platform}-gcc %make CC=%{_target_platform}-gcc \
LIBDIR=%{_libdir} \
SHLIBDIR=%{_libdir}
%endif %endif
%if "%{stage1}" != "1" %if "%{stage1}" != "1"
%make pywrap LIBDIR=%{_libdir} %make pywrap LIBDIR=%{_libdir} \
LIBDIR=%{_libdir} \
SHLIBDIR=%{_libdir}
%endif %endif
%install %install
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
cd libselinux cd libselinux
%makeinstall \ %makeinstall \
LIBDIR=%{buildroot}%{_libdir} \ LIBDIR=%{_libdir} \
SHLIBDIR=%{buildroot}/%{_lib} \ SHLIBDIR=%{_libdir} \
%if "%{stage1}" != "1" %if "%{stage1}" != "1"
install-pywrap install-pywrap
%endif %endif
@ -94,23 +109,25 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/selinux/config
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/selinux/config %{_libdir}/libselinux.so.*
%{_sbindir}/* %doc libselinux/LICENSE
#/sbin/matchpathcon
/%{_lib}/libselinux.so.*
%{_libdir}/libselinux.so
%{_mandir}/man8/*
%doc libselinux/ChangeLog libselinux/LICENSE
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_includedir}/selinux/ %dir %{_includedir}/selinux/
%{_includedir}/selinux/*.h %{_includedir}/selinux/*.h
%{_libdir}/libselinux.a %{_libdir}/libselinux.a
%{_libdir}/libselinux.so
%{_mandir}/man3/* %{_mandir}/man3/*
%{_mandir}/man5/* %{_mandir}/man5/*
%{_libdir}/pkgconfig/libselinux.pc %{_libdir}/pkgconfig/libselinux.pc
%files tools
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/selinux/config
%{_sbindir}/*
%{_mandir}/man8/*
%if "%{stage1}" != "1" %if "%{stage1}" != "1"
%files python %files python
%defattr(-,root,root) %defattr(-,root,root)
@ -119,6 +136,9 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/selinux/config
%endif %endif
%changelog %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 * Wed Nov 16 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6-1mamba
- update to 2.6 - update to 2.6