forked from pool/libselinux
Accepting request 408218 from security:SELinux
1 OBS-URL: https://build.opensuse.org/request/show/408218 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=84
This commit is contained in:
committed by
Git OBS Bridge
parent
9a44e1df85
commit
9503bfe5fe
@@ -16,10 +16,10 @@
|
||||
#
|
||||
|
||||
|
||||
%define libsepol_ver 2.3
|
||||
%define libsepol_ver 2.5
|
||||
|
||||
Name: libselinux-bindings
|
||||
Version: 2.3
|
||||
Version: 2.5
|
||||
Release: 0
|
||||
Url: http://userspace.selinuxproject.org/
|
||||
Summary: SELinux library and simple utilities
|
||||
@@ -27,10 +27,12 @@ License: GPL-2.0 and SUSE-Public-Domain
|
||||
Group: System/Libraries
|
||||
|
||||
# embedded is the MD5
|
||||
Source: http://userspace.selinuxproject.org/releases/20140506/libselinux-%{version}.tar.gz
|
||||
Source: http://userspace.selinuxproject.org/releases/20160223/libselinux-%{version}.tar.gz
|
||||
Source1: selinux-ready
|
||||
Source2: baselibs.conf
|
||||
Patch1: libselinux-2.2-ruby.patch
|
||||
# PATCH-FIX-UPSTREAM swig-3.10 use importlib which not search the directory __init__.py is in but standard path
|
||||
Patch2: python-selinux-swig-3.10.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: libsepol-devel-static >= %{libsepol_ver}
|
||||
BuildRequires: pcre-devel
|
||||
@@ -106,6 +108,7 @@ decisions. Required for any applications that use the SELinux API.
|
||||
%prep
|
||||
%setup -q -n libselinux-%{version}
|
||||
%patch1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src
|
||||
@@ -122,6 +125,7 @@ rm -rf $RPM_BUILD_ROOT/%{_lib} $RPM_BUILD_ROOT%{_libdir}/libselinux.* $RPM_BUILD
|
||||
%files -n python-selinux
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{py_sitedir}/selinux
|
||||
%{py_sitedir}/_selinux.so
|
||||
%{py_sitedir}/selinux/*
|
||||
|
||||
%files -n ruby-selinux
|
||||
|
Reference in New Issue
Block a user