[packages/libsemanage] - updated to 2.8 - updated libexecdir patch
qboosh
qboosh at pld-linux.org
Sat Jun 9 09:02:20 CEST 2018
commit a90263ff102f62db7ee31fd48633dedb7ae31d77
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jun 9 09:03:33 2018 +0200
- updated to 2.8
- updated libexecdir patch
libsemanage-libexecdir.patch | 10 +++++-----
libsemanage.spec | 37 ++++++++++++++++++-------------------
2 files changed, 23 insertions(+), 24 deletions(-)
---
diff --git a/libsemanage.spec b/libsemanage.spec
index 3c6a03d..3d99c34 100644
--- a/libsemanage.spec
+++ b/libsemanage.spec
@@ -11,26 +11,26 @@
Summary: An interface for SELinux management
Summary(pl.UTF-8): Interfejs do zarządzania SELinuksem
Name: libsemanage
-Version: 2.7
-Release: 2
+Version: 2.8
+Release: 1
License: LGPL v2.1+
Group: Libraries
#Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases
-Source0: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/%{name}-%{version}.tar.gz
-# Source0-md5: a6b5c451fbe45ff9e3e0e65f2db0ae1d
+Source0: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/%{name}-%{version}.tar.gz
+# Source0-md5: 62ed7bb2ede677a735f2750751677a4f
Patch0: %{name}-libexecdir.patch
URL: https://github.com/SELinuxProject/selinux/wiki
BuildRequires: bison
BuildRequires: bzip2-devel
BuildRequires: flex
-BuildRequires: libselinux-devel >= 2.7
-BuildRequires: libsepol-devel >= 2.7
+BuildRequires: libselinux-devel >= 2.8
+BuildRequires: libsepol-devel >= 2.8
%{?with_python2:BuildRequires: python-devel >= 2}
%{?with_python3:BuildRequires: python3-devel >= 1:3.2}
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
-Requires: libselinux >= 2.7
-Requires: libsepol >= 2.7
+Requires: libselinux >= 2.8
+Requires: libsepol >= 2.8
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -68,7 +68,7 @@ Summary: Python 2 binding for semanage library
Summary(pl.UTF-8): Wiązania Pythona 2 do biblioteki semanage
Group: Libraries/Python
Requires: %{name} = %{version}-%{release}
-Requires: python-selinux >= 2.7
+Requires: python-selinux >= 2.8
%description -n python-semanage
Python 2 binding for semanage library.
@@ -81,7 +81,7 @@ Summary: Python 3 binding for semanage library
Summary(pl.UTF-8): Wiązania Pythona 3 do biblioteki semanage
Group: Libraries/Python
Requires: %{name} = %{version}-%{release}
-Requires: python3-selinux >= 2.7
+Requires: python3-selinux >= 2.8
%description -n python3-semanage
Python 3 binding for semanage library.
@@ -98,7 +98,7 @@ Wiązania Pythona 3 do biblioteki semanage.
CC="%{__cc}" \
CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -fno-strict-aliasing" \
LIBDIR=%{_libdir} \
- LIBEXECDIR=%{_libdir} \
+ LIBEXECDIR=%{_libexecdir} \
PYPREFIX=python2 \
PYTHON=%{__python}
@@ -107,7 +107,7 @@ Wiązania Pythona 3 do biblioteki semanage.
CC="%{__cc}" \
CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -fno-strict-aliasing" \
LIBDIR=%{_libdir} \
- LIBEXECDIR=%{_libdir} \
+ LIBEXECDIR=%{_libexecdir} \
PYPREFIX=python3 \
PYTHON=%{__python3}
%endif
@@ -116,11 +116,10 @@ Wiązania Pythona 3 do biblioteki semanage.
rm -rf $RPM_BUILD_ROOT
%{__make} install %{?with_python2:install-pywrap} \
- LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
- LIBEXECDIR=$RPM_BUILD_ROOT%{_libexecdir} \
- SHLIBDIR=$RPM_BUILD_ROOT/%{_lib} \
+ LIBDIR=%{_libdir} \
+ LIBEXECDIR=%{_libexecdir} \
PYPREFIX=python2 \
- PYSITEDIR=$RPM_BUILD_ROOT%{py_sitedir} \
+ PYSITEDIR=%{py_sitedir} \
PYTHON=%{__python} \
DESTDIR=$RPM_BUILD_ROOT
@@ -139,10 +138,10 @@ ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libsemanage.so.*) \
%if %{with python3}
%{__make} -C src install-pywrap \
- LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
- LIBEXECDIR=$RPM_BUILD_ROOT%{_libexecdir} \
+ LIBDIR=%{_libdir} \
+ LIBEXECDIR=%{_libexecdir} \
PYPREFIX=python3 \
- PYSITEDIR=$RPM_BUILD_ROOT%{py3_sitedir} \
+ PYSITEDIR=%{py3_sitedir} \
PYTHON=%{__python3} \
DESTDIR=$RPM_BUILD_ROOT
diff --git a/libsemanage-libexecdir.patch b/libsemanage-libexecdir.patch
index 6ce59b7..545096d 100644
--- a/libsemanage-libexecdir.patch
+++ b/libsemanage-libexecdir.patch
@@ -9,17 +9,17 @@
conf->policyvers = sepol_policy_kern_vers_max();
conf->target_platform = SEPOL_TARGET_SELINUX;
conf->expand_check = 1;
---- libsemanage-2.7/src/Makefile.orig 2017-08-04 15:31:00.000000000 +0200
-+++ libsemanage-2.7/src/Makefile 2017-11-16 15:56:27.007173590 +0100
+--- libsemanage-2.8/src/Makefile.orig 2018-05-24 20:21:09.000000000 +0200
++++ libsemanage-2.8/src/Makefile 2018-06-09 08:48:09.813027697 +0200
@@ -10,6 +10,7 @@
# Installation directories.
- PREFIX ?= $(DESTDIR)/usr
+ PREFIX ?= /usr
LIBDIR ?= $(PREFIX)/lib
+LIBEXECDIR ?= $(PREFIX)/libexec
- SHLIBDIR ?= $(DESTDIR)/lib
INCLUDEDIR ?= $(PREFIX)/include
PYINC ?= $(shell $(PKG_CONFIG) --cflags $(PYPREFIX))
-@@ -61,7 +62,7 @@
+ PYLIBS ?= $(shell $(PKG_CONFIG) --libs $(PYPREFIX))
+@@ -58,7 +59,7 @@
SWIG_CFLAGS += -Wno-error -Wno-unused-but-set-variable -Wno-unused-variable -Wno-shadow \
-Wno-unused-parameter
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libsemanage.git/commitdiff/a90263ff102f62db7ee31fd48633dedb7ae31d77
More information about the pld-cvs-commit
mailing list