Hello community, here is the log from the commit of package libselinux for openSUSE:Factory checked in at 2018-12-10 12:22:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libselinux (Old) and /work/SRC/openSUSE:Factory/.libselinux.new.19453 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libselinux" Mon Dec 10 12:22:27 2018 rev:50 rq:655712 version:2.8 Changes: -------- --- /work/SRC/openSUSE:Factory/libselinux/libselinux.changes 2017-12-06 08:46:39.879177594 +0100 +++ /work/SRC/openSUSE:Factory/.libselinux.new.19453/libselinux.changes 2018-12-10 12:22:34.298872238 +0100 @@ -1,0 +2,26 @@ +Thu Nov 29 19:10:14 UTC 2018 - Jan Engelhardt <[email protected]> + +- Replace old $RPM_* shell vars. + +------------------------------------------------------------------- +Wed Nov 21 10:38:23 UTC 2018 - [email protected] + +- Merged libselinux-bindings back into main spec file + +------------------------------------------------------------------- +Wed Oct 17 11:48:30 UTC 2018 - [email protected] + +- Update to version 2.8 (bsc#1111732). + For changes please see + https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/RELEASE-20180524.txt + +------------------------------------------------------------------- +Mon May 14 22:45:54 UTC 2018 - [email protected] + +- Update to version 2.7. + * %files needed to be heavily modified + * Based expressly on python3, not just python + For changes please see + https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/RELEASE-20170804.txt + +------------------------------------------------------------------- Old: ---- libselinux-2.6.tar.gz libselinux-bindings.changes libselinux-bindings.spec New: ---- libselinux-2.8.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libselinux.spec ++++++ --- /var/tmp/diff_new_pack.gKacSR/_old 2018-12-10 12:22:35.410871130 +0100 +++ /var/tmp/diff_new_pack.gKacSR/_new 2018-12-10 12:22:35.414871126 +0100 @@ -16,26 +16,33 @@ # -%define libsepol_ver 2.6 +%define libsepol_ver 2.8 +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: libselinux -Version: 2.6 +Version: 2.8 Release: 0 Summary: SELinux runtime library and utilities -License: GPL-2.0 and SUSE-Public-Domain +License: GPL-2.0-only AND SUSE-Public-Domain Group: Development/Libraries/C and C++ Url: https://github.com/SELinuxProject/selinux/wiki/Releases - -Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014/%{name}-%{version}.tar.gz +Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/libselinux-%{version}.tar.gz Source1: selinux-ready Source2: baselibs.conf +Patch3: python3.patch # PATCH-FIX-UPSTREAM Include <sys/uio.h> for readv prototype Patch4: readv-proto.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: libsepol-devel >= %{libsepol_ver} +BuildRequires: libsepol-devel-static >= %{libsepol_ver} BuildRequires: pcre-devel BuildRequires: pkg-config +BuildRequires: python-rpm-macros +BuildRequires: python3 +BuildRequires: python3-devel +BuildRequires: ruby-devel +BuildRequires: swig %description libselinux provides an interface to get and set process and file @@ -43,6 +50,7 @@ %package -n libselinux1 Summary: SELinux runtime library +License: GPL-2.0-only AND SUSE-Public-Domain Group: System/Libraries %description -n libselinux1 @@ -56,6 +64,7 @@ %package -n selinux-tools Summary: SELinux command-line utilities +License: GPL-2.0-only AND SUSE-Public-Domain Group: System/Base %description -n selinux-tools @@ -69,6 +78,7 @@ %package devel Summary: Development files for the SELinux runtime library +License: GPL-2.0-only AND SUSE-Public-Domain Group: Development/Libraries/C and C++ Requires: glibc-devel Requires: libselinux1 = %{version} @@ -83,6 +93,7 @@ %package devel-static Summary: Static archives for the SELinux runtime +License: GPL-2.0-only AND SUSE-Public-Domain Group: Development/Libraries/C and C++ Requires: libselinux-devel = %{version} Requires: pkgconfig(libpcre) @@ -96,34 +107,49 @@ necessary to develop your own software using libselinux. %prep -%setup -q +%setup -q -n libselinux-%{version} +%patch3 -p1 %patch4 -p1 %build -make %{?_smp_mflags} LIBDIR="%{_libdir}" CC="%{__cc}" CFLAGS="$RPM_OPT_FLAGS" +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags}" CC="%{__cc}" +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags}" -C src V=1 +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags}" -C src swigify V=1 +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags}" -C src pywrap V=1 +make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags}" -C src rubywrap V=1 %install -mkdir -p $RPM_BUILD_ROOT/%{_lib} -mkdir -p $RPM_BUILD_ROOT%{_libdir} -mkdir -p $RPM_BUILD_ROOT%{_includedir} -mkdir -p $RPM_BUILD_ROOT%{_sbindir} -make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" BINDIR="$RPM_BUILD_ROOT%{_sbindir}" install -rm -f $RPM_BUILD_ROOT%{_sbindir}/compute_* -rm -f $RPM_BUILD_ROOT%{_sbindir}/deftype -rm -f $RPM_BUILD_ROOT%{_sbindir}/execcon -rm -f $RPM_BUILD_ROOT%{_sbindir}/getenforcemode -rm -f $RPM_BUILD_ROOT%{_sbindir}/getfilecon -rm -f $RPM_BUILD_ROOT%{_sbindir}/getpidcon -rm -f $RPM_BUILD_ROOT%{_sbindir}/mkdircon -rm -f $RPM_BUILD_ROOT%{_sbindir}/policyvers -rm -f $RPM_BUILD_ROOT%{_sbindir}/setfilecon -rm -f $RPM_BUILD_ROOT%{_sbindir}/selinuxconfig -rm -f $RPM_BUILD_ROOT%{_sbindir}/selinuxdisable -rm -f $RPM_BUILD_ROOT%{_sbindir}/getseuser -rm -f $RPM_BUILD_ROOT%{_sbindir}/selinux_check_securetty_context -mv $RPM_BUILD_ROOT%{_sbindir}/getdefaultcon $RPM_BUILD_ROOT%{_sbindir}/selinuxdefcon -mv $RPM_BUILD_ROOT%{_sbindir}/getconlist $RPM_BUILD_ROOT%{_sbindir}/selinuxconlist -install -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/selinux-ready +mkdir -p %{buildroot}/%{_lib} +mkdir -p %{buildroot}/%{_libdir} +mkdir -p %{buildroot}/%{_includedir} +mkdir -p %{buildroot}/%{_sbindir} +%make_install LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" BINDIR="%{_sbindir}" +rm -f %{buildroot}/%{_sbindir}/compute_* +rm -f %{buildroot}/%{_sbindir}/deftype +rm -f %{buildroot}/%{_sbindir}/execcon +rm -f %{buildroot}/%{_sbindir}/getenforcemode +rm -f %{buildroot}/%{_sbindir}/getfilecon +rm -f %{buildroot}/%{_sbindir}/getpidcon +rm -f %{buildroot}/%{_sbindir}/mkdircon +rm -f %{buildroot}/%{_sbindir}/policyvers +rm -f %{buildroot}/%{_sbindir}/setfilecon +rm -f %{buildroot}/%{_sbindir}/selinuxconfig +rm -f %{buildroot}/%{_sbindir}/selinuxdisable +rm -f %{buildroot}/%{_sbindir}/getseuser +rm -f %{buildroot}/%{_sbindir}/selinux_check_securetty_context +mv %{buildroot}/%{_sbindir}/getdefaultcon %{buildroot}/%{_sbindir}/selinuxdefcon +mv %{buildroot}/%{_sbindir}/getconlist %{buildroot}/%{_sbindir}/selinuxconlist +install -m 0755 %{SOURCE1} %{buildroot}/%{_sbindir}/selinux-ready + +%make_install LIBDIR="%{_libdir}" \ + SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ + -C src V=1 +make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" \ + SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ + -C src install-pywrap V=1 +make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" \ + SHLIBDIR="/%{_lib}" LIBSEPOLA=%{_libdir}/libsepol.a \ + -C src install-rubywrap V=1 # Remove duplicate files %fdupes -s %{buildroot}%{_mandir} @@ -139,6 +165,7 @@ %{_sbindir}/matchpathcon %{_sbindir}/selabel_digest %{_sbindir}/selabel_lookup +%{_sbindir}/selinux_check_access %{_sbindir}/selabel_lookup_best_match %{_sbindir}/selabel_partial_match %{_sbindir}/selinuxconlist @@ -146,7 +173,7 @@ %{_sbindir}/selinuxenabled %{_sbindir}/setenforce %{_sbindir}/togglesebool -%{_sbindir}/selinux_restorecon +#%#{_sbindir}/selinux_restorecon %{_sbindir}/selinux-ready %{_sbindir}/selinuxexeccon %{_sbindir}/sefcontext_compile @@ -168,4 +195,45 @@ %defattr(-,root,root,-) %{_libdir}/libselinux.a +%package -n python3-selinux +Summary: Python bindings for the SELinux runtime library +License: SUSE-Public-Domain +Group: Development/Libraries/Python +%define oldpython python +%ifpython2 +Obsoletes: %{oldpython}-selinux < %{version} +Provides: %{oldpython}-selinux = %{version} +%endif +Requires: libselinux1 = %{version} +Requires: python3 + +%description -n python3-selinux +libselinux provides an interface to get and set process and file +security contexts and to obtain security policy decisions. + +This subpackage contains Python extensions to use SELinux from that +language. + +%package -n ruby-selinux +Summary: Ruby bindings for the SELinux runtime library +License: SUSE-Public-Domain +Group: Development/Languages/Ruby +Requires: libselinux1 = %{version} +Requires: ruby + +%description -n ruby-selinux +libselinux provides an interface to get and set process and file +security contexts and to obtain security policy decisions. + +This subpackage contains Ruby extensions to use SELinux from that +language. + +%files -n python3-selinux +%defattr(-,root,root,-) +%{python3_sitearch}/*selinux* + +%files -n ruby-selinux +%defattr(-,root,root,-) +%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/selinux.so + %changelog ++++++ libselinux-2.6.tar.gz -> libselinux-2.8.tar.gz ++++++ ++++ 5158 lines of diff (skipped) ++++++ python3.patch ++++++ --- /var/tmp/diff_new_pack.gKacSR/_old 2018-12-10 12:22:35.554870986 +0100 +++ /var/tmp/diff_new_pack.gKacSR/_new 2018-12-10 12:22:35.554870986 +0100 @@ -1,13 +1,13 @@ -Index: libselinux-2.6/src/Makefile +Index: libselinux-2.7/src/Makefile =================================================================== ---- libselinux-2.6.orig/src/Makefile 2016-10-14 17:31:26.000000000 +0200 -+++ libselinux-2.6/src/Makefile 2018-03-22 11:33:36.527385495 +0100 +--- libselinux-2.7.orig/src/Makefile ++++ libselinux-2.7/src/Makefile @@ -1,7 +1,7 @@ # Support building the Python bindings multiple times, against various Python # runtimes (e.g. Python 2 vs Python 3) by optionally prefixing the build # targets with "PYPREFIX": -PYTHON ?= python +PYTHON ?= python3 - PYPREFIX ?= $(notdir $(PYTHON)) + PYPREFIX ?= $(shell $(PYTHON) -c 'import sys;print("python-%d.%d" % sys.version_info[:2])') RUBY ?= ruby RUBYPREFIX ?= $(notdir $(RUBY))
