update to 2.6 [release 2.6-1mamba;Wed Nov 16 2016]
This commit is contained in:
parent
70c76ee46d
commit
c16abb9ef8
@ -1,5 +1,6 @@
|
|||||||
|
%define majver %(echo %version | cut -d. -f1-2)
|
||||||
Name: libselinux
|
Name: libselinux
|
||||||
Version: 2.5
|
Version: 2.6
|
||||||
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
|
||||||
@ -7,7 +8,7 @@ Vendor: openmamba
|
|||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://userspace.selinuxproject.org/trac
|
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
|
Source1: selinux-config
|
||||||
Patch0: libselinux-2.2.1-pkgconfig.patch
|
Patch0: libselinux-2.2.1-pkgconfig.patch
|
||||||
License: Public Domain
|
License: Public Domain
|
||||||
@ -16,10 +17,11 @@ BuildRequires: glibc-devel
|
|||||||
BuildRequires: libpcre-devel
|
BuildRequires: libpcre-devel
|
||||||
%if "%{stage1}" != "1"
|
%if "%{stage1}" != "1"
|
||||||
BuildRequires: libpython-devel
|
BuildRequires: libpython-devel
|
||||||
|
BuildRequires: libsepol-devel
|
||||||
%endif
|
%endif
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: libsepol-devel
|
BuildRequires: libsepol-devel
|
||||||
Requires: libsepol >= 2.0.1
|
Requires: libsepol >= %{majver}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -56,10 +58,12 @@ This package contains the python interface library to libselinux.
|
|||||||
%debug_package
|
%debug_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q -n selinux-libselinux-%{version}
|
||||||
|
cd libselinux
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
cd libselinux
|
||||||
%if "%{_build}" != "%{_host}"
|
%if "%{_build}" != "%{_host}"
|
||||||
%make CC=%{_target_platform}-gcc TLSFLAGS=
|
%make CC=%{_target_platform}-gcc TLSFLAGS=
|
||||||
%else
|
%else
|
||||||
@ -67,11 +71,12 @@ This package contains the python interface library to libselinux.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{stage1}" != "1"
|
%if "%{stage1}" != "1"
|
||||||
%make pywrap
|
%make pywrap LIBDIR=%{_libdir}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||||
|
cd libselinux
|
||||||
%makeinstall \
|
%makeinstall \
|
||||||
LIBDIR=%{buildroot}%{_libdir} \
|
LIBDIR=%{buildroot}%{_libdir} \
|
||||||
SHLIBDIR=%{buildroot}/%{_lib} \
|
SHLIBDIR=%{buildroot}/%{_lib} \
|
||||||
@ -95,7 +100,7 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/selinux/config
|
|||||||
/%{_lib}/libselinux.so.*
|
/%{_lib}/libselinux.so.*
|
||||||
%{_libdir}/libselinux.so
|
%{_libdir}/libselinux.so
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
%doc ChangeLog LICENSE
|
%doc libselinux/ChangeLog libselinux/LICENSE
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -110,9 +115,13 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/selinux/config
|
|||||||
%files python
|
%files python
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{python_sitearch}/selinux/*
|
%{python_sitearch}/selinux/*
|
||||||
|
%{python_sitearch}/_selinux.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 16 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6-1mamba
|
||||||
|
- update to 2.6
|
||||||
|
|
||||||
* Sat Feb 27 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5-1mamba
|
* Sat Feb 27 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5-1mamba
|
||||||
- update to 2.5
|
- update to 2.5
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user