From 39c582e8eacc38d8180301ee5d6c44c51223eb484b7ad1895e4ae1f1c72069a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 19 Feb 2018 08:04:27 +0000 Subject: [PATCH] Accepting request 577735 from home:jengelh:branches:security - Remove ineffective --with-pic. Fix SRPM group. Redo descriptions. - Rename %soname to %sover to better reflect its use. OBS-URL: https://build.opensuse.org/request/show/577735 OBS-URL: https://build.opensuse.org/package/show/security/libcap-ng?expand=0&rev=32 --- libcap-ng-python.changes | 6 ++++++ libcap-ng-python.spec | 15 ++++++++------- libcap-ng.changes | 6 ++++++ libcap-ng.spec | 38 ++++++++++++++++++++------------------ 4 files changed, 40 insertions(+), 25 deletions(-) diff --git a/libcap-ng-python.changes b/libcap-ng-python.changes index 448f8f8..3c8ed56 100644 --- a/libcap-ng-python.changes +++ b/libcap-ng-python.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Feb 18 12:13:56 UTC 2018 - jengelh@inai.de + +- Remove ineffective --with-pic. Fix SRPM group. Redo descriptions. +- Rename %soname to %sover to better reflect its use. + ------------------------------------------------------------------- Sun Feb 18 09:22:44 UTC 2018 - avindra@opensuse.org diff --git a/libcap-ng-python.spec b/libcap-ng-python.spec index 013ac6a..af11b08 100644 --- a/libcap-ng-python.spec +++ b/libcap-ng-python.spec @@ -16,13 +16,13 @@ # -%define soname 0 +%define sover 0 Name: libcap-ng-python Version: 0.7.9 Release: 0 -Summary: An alternate POSIX capabilities library +Summary: An alternate Linux/POSIX capabilities library License: LGPL-2.1+ -Group: System/Libraries +Group: Development/Libraries/C and C++ Url: https://people.redhat.com/sgrubb/libcap-ng Source0: https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-%{version}.tar.gz Source1: baselibs.conf @@ -32,7 +32,9 @@ BuildRequires: pkgconfig BuildRequires: python-base %description -Libcap-ng is a library that makes using posix capabilities easier +libcap-ng is a library providing an alternate mechanism to libcap to +inspect and set Linux process and file capabilities (modeled upon a +withdrawn POSIX.1e draft). %package -n python-capng Summary: Python bindings for libcap-ng library @@ -40,11 +42,11 @@ Group: Development/Libraries/Python BuildRequires: libcap-ng-devel = %{version} BuildRequires: python-devel BuildRequires: swig -Requires: libcap-ng%{soname} = %{version} +Requires: libcap-ng%{sover} = %{version} %description -n python-capng The libcap-ng-python package contains the bindings so that libcap-ng -and can be used by python applications. +and can be used by Python applications. %prep %setup -q -n libcap-ng-%{version} @@ -52,7 +54,6 @@ and can be used by python applications. %build %configure \ --disable-static \ - --with-pic \ --with-python \ --without-python3 make %{?_smp_mflags} diff --git a/libcap-ng.changes b/libcap-ng.changes index e377a4e..aaf9e88 100644 --- a/libcap-ng.changes +++ b/libcap-ng.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Feb 18 12:13:56 UTC 2018 - jengelh@inai.de + +- Remove ineffective --with-pic. Fix SRPM group. Redo descriptions. +- Rename %soname to %sover to better reflect its use. + ------------------------------------------------------------------- Sun Feb 18 09:23:18 UTC 2018 - avindra@opensuse.org diff --git a/libcap-ng.spec b/libcap-ng.spec index 13db3ad..43211a8 100644 --- a/libcap-ng.spec +++ b/libcap-ng.spec @@ -16,13 +16,13 @@ # -%define soname 0 +%define sover 0 Name: libcap-ng Version: 0.7.9 Release: 0 -Summary: An alternate POSIX capabilities library +Summary: An alternate Linux/POSIX capabilities library License: LGPL-2.1+ -Group: System/Libraries +Group: Development/Libraries/C and C++ Url: https://people.redhat.com/sgrubb/libcap-ng Source0: https://people.redhat.com/sgrubb/%{name}/%{name}-%{version}.tar.gz Source1: baselibs.conf @@ -31,21 +31,24 @@ BuildRequires: kernel-headers >= 2.6.11 BuildRequires: pkgconfig %description -Libcap-ng is a library that makes using posix capabilities easier +libcap-ng is a library providing an alternate mechanism to libcap to +make use of Linux process and file capabilities. -%package -n %{name}%{soname} -Summary: An alternate POSIX capabilities library +%package -n %{name}%{sover} +Summary: An alternate Linux/POSIX capabilities library License: LGPL-2.1+ Group: System/Libraries -%description -n %{name}%{soname} -Libcap-ng is a library that makes using posix capabilities easier +%description -n %{name}%{sover} +libcap-ng is a library providing an alternate mechanism to libcap to +inspect and set Linux process and file capabilities (modeled upon a +withdrawn POSIX.1e draft). %package devel -Summary: Header files for libcap-ng library +Summary: Header files for the libcap-ng library License: LGPL-2.1+ Group: Development/Libraries/C and C++ -Requires: %{name}%{soname} = %{version} +Requires: %{name}%{sover} = %{version} Requires: kernel-headers >= 2.6.11 Requires: pkgconfig @@ -60,8 +63,8 @@ Group: System/Base %description utils The libcap-ng-utils package contains applications to analyse the -posix capabilities of all the program running on a system. It also -lets you set the file system based capabilities. +Linux process capabilities of programs running on a system. It also +lets you set the filesystem-based capabilities. %prep %setup -q @@ -69,7 +72,6 @@ lets you set the file system based capabilities. %build %configure \ --disable-static \ - --with-pic \ --without-python make %{?_smp_mflags} @@ -77,13 +79,13 @@ make %{?_smp_mflags} %make_install find %{buildroot} -type f -name "*.la" -delete -print -%post -n %{name}%{soname} -p /sbin/ldconfig -%postun -n %{name}%{soname} -p /sbin/ldconfig +%post -n %{name}%{sover} -p /sbin/ldconfig +%postun -n %{name}%{sover} -p /sbin/ldconfig -%files -n %{name}%{soname} +%files -n %{name}%{sover} %doc COPYING.LIB -%{_libdir}/%{name}.so.%{soname} -%{_libdir}/%{name}.so.%{soname}.* +%{_libdir}/%{name}.so.%{sover} +%{_libdir}/%{name}.so.%{sover}.* %files devel %{_mandir}/man3/*.3%{ext_man}