Hello community,

here is the log from the commit of package libcap for openSUSE:Factory checked 
in at 2016-09-05 21:10:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libcap (Old)
 and      /work/SRC/openSUSE:Factory/.libcap.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libcap"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libcap/libcap.changes    2014-06-24 
15:15:43.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libcap.new/libcap.changes       2016-09-05 
21:10:56.000000000 +0200
@@ -1,0 +2,30 @@
+Mon Aug 29 21:10:05 UTC 2016 - [email protected]
+
+- Update to versison 2.25:
+  + Recover gperf detection in make rules.
+  + Man page typo fix.
+  + Tweak make rules to make packaging more straightforward.
+  + Fix error explanation in setcap.
+  + Drop need to link with libattr. It turns out libcap wasn't
+    actually using any code from that library, so linking to it was
+    superfluous.
+- Drop libcap-nolibattr.patch: fixed upstream.
+- No longer add %{buildroot} to all variables for make install the
+  Makefile learned about the meaning of DESTDIR.
+
+-------------------------------------------------------------------
+Sat Jan 31 11:22:58 UTC 2015 - [email protected]
+
+- Update to version 2.24
+  * Fix compilation problems (note to self, make distclean && make,
+    before release)
+  * Some make rule changes to make uploading a release to kernel.org
+    easier for me.
+  * Tidied up some documented links.
+- Update libcap-nolibattr.patch
+- Add pkg-config build requirement; libcap now provides a pkgconfig
+  file
+- Clean up specfile
+- Move libraries and binaries to /usr because of #UsrMove
+
+-------------------------------------------------------------------

Old:
----
  libcap-2.22.tar.bz2
  libcap-nolibattr.patch

New:
----
  libcap-2.25.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libcap.spec ++++++
--- /var/tmp/diff_new_pack.ckXVQV/_old  2016-09-05 21:10:57.000000000 +0200
+++ /var/tmp/diff_new_pack.ckXVQV/_new  2016-09-05 21:10:57.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libcap
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,17 +20,13 @@
 Summary:        Library for Capabilities (linux-privs) Support
 License:        BSD-3-Clause and GPL-2.0
 Group:          System/Libraries
-Version:        2.22
+Version:        2.25
 Release:        0
-Source:         
ftp://ftp.de.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-%{version}.tar.bz2
+Source:         
https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-%{version}.tar.xz
 Source2:        baselibs.conf
 Url:            https://sites.google.com/site/fullycapable/
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-Patch0:         libcap-nolibattr.patch
-%if 0%{?suse_version} > 1030
 BuildRequires:  fdupes
-%endif
-%define debug_package_requires libcap2 = %{version}-%{release}
+BuildRequires:  pkg-config
 
 %description
 Capabilities are a measure to limit the omnipotence of the superuser.
@@ -40,8 +36,6 @@
 capabilities within setuid binaries. If you use patches, this can be
 done automatically by the kernel.
 
-
-
 %package -n libcap2
 Summary:        Library for Capabilities (linux-privs) Support
 Group:          System/Libraries
@@ -72,8 +66,6 @@
 Install libcap-devel if you want to develop or compile applications
 using libcap.
 
-
-
 %package progs
 Summary:        Libcap utility programs
 Group:          System/Filesystems
@@ -82,26 +74,24 @@
 This package contains utility programs handling capabilities via
 libcap.
 
-
-
 %prep
 %setup -q
-%patch0 -p1
 %build
-# lib=%{_lib} make %{?_smp_mflags} COPTFLAG="$RPM_OPT_FLAGS"
-lib=%{_lib} make %{?_smp_mflags} DEBUG="-g $RPM_OPT_FLAGS"
+make prefix=%{_prefix} lib=%{_lib} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \
+     INCDIR=%{_includedir} MANDIR=%{_mandir} DEBUG="-g %{optflags}"
 
 %install
-make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=$RPM_BUILD_ROOT/%{_lib} 
MANDIR=$RPM_BUILD_ROOT%{_mandir} RAISE_SETFCAP=no
-# remove unneeded files
-rm -f $RPM_BUILD_ROOT/%{_lib}/*.*a
-# move *.so file to libdir and relink
-rm -f $RPM_BUILD_ROOT/%{_lib}/*.so
-mkdir -p $RPM_BUILD_ROOT%{_libdir}
-ln -s /%{_lib}/libcap.so.2 $RPM_BUILD_ROOT%{_libdir}/libcap.so
-%if 0%{?suse_version} > 1030
+make install RAISE_SETFCAP=no \
+             DESTDIR=%{buildroot} \
+             LIBDIR=/%{_libdir} \
+             SBINDIR=/%{_sbindir} \
+             INCDIR=/%{_includedir} \
+             MANDIR=/%{_mandir}/ \
+             PKGCONFIGDIR=%{_libdir}/pkgconfig/
+find %{buildroot} -type f -name '*.la' -print -delete
+# do not provide static libs
+rm %{buildroot}%{_libdir}/libcap.a
 %fdupes -s $RPM_BUILD_ROOT
-%endif
 
 %post -n libcap2 -p /sbin/ldconfig
 
@@ -109,19 +99,21 @@
 
 %files -n libcap2
 %defattr(-,root,root)
-%attr(755,root,root) /%{_lib}/libcap.so.*
+%doc License
+%{_libdir}/libcap.so.*
 
 %files progs
 %defattr(-,root,root)
 %{_mandir}/man1/*
 %{_mandir}/man8/*
-/sbin/*
+%{_sbindir}/*
 
 %files devel
 %defattr(-,root,root)
 %doc License README CHANGELOG
 %{_includedir}/sys/capability.h
 %{_libdir}/*.so
+%{_libdir}/pkgconfig/%{name}.pc
 %{_mandir}/man3/*
 
 %changelog


Reply via email to