forked from pool/libcap-ng
Accepting request 49864 from security
Copy from security/libcap-ng based on submit request 49864 from user coolo OBS-URL: https://build.opensuse.org/request/show/49864 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcap-ng?expand=0&rev=4
This commit is contained in:
parent
c84cdcddf4
commit
bf4ddf655b
1
baselibs.conf
Normal file
1
baselibs.conf
Normal file
@ -0,0 +1 @@
|
||||
libcap-ng0
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8a121e611f9471721938809a1bab3965a2c9d9b0c552b67687ad69b9e8250b98
|
||||
size 271667
|
3
libcap-ng-0.6.4.tar.bz2
Normal file
3
libcap-ng-0.6.4.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7a830e9e5117febb00de2b6bf6fb9eb88f61dba8df3f761239423a2fad561f16
|
||||
size 274844
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 6 17:55:55 UTC 2010 - pascal.bleser@opensuse.org
|
||||
|
||||
- update to 0.6.4:
|
||||
* the library now uses kernel thread ID for capget/set calls
|
||||
* a display problem of filesystem based capabilities was fixed
|
||||
* netcap now prints device name for packet socket apps
|
||||
|
||||
- add baselibs.conf to build libcap-ng0-32bit
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 12 10:01:51 UTC 2010 - pascal.bleser@opensuse.org
|
||||
|
||||
|
@ -1,2 +1,4 @@
|
||||
addFilter("libcap-ng-utils.*: W: shlib-policy-missing-lib")
|
||||
addFilter("libcap-ng-utils.*: W: shlib-policy-nonversioned-dir .*")
|
||||
addFilter("python-capng..*: W: files-duplicate /usr/lib.*/python.*/site-packages/.*")
|
||||
addFilter("libcap-ng-devel..*: W: no-dependency-on libcap-ng/libcap-ng-libs/liblibcap-ng")
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package libcap-ng (Version 0.6.3)
|
||||
# spec file for package libcap-ng (Version 0.6.4)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@ -22,7 +22,7 @@
|
||||
Summary: An alternate POSIX capabilities library
|
||||
|
||||
Name: libcap-ng
|
||||
Version: 0.6.3
|
||||
Version: 0.6.4
|
||||
Release: 1
|
||||
%define soname 0
|
||||
License: LGPLv2+
|
||||
@ -34,10 +34,6 @@ Source99: libcap-ng.rpmlintrc
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: kernel-headers >= 2.6.11
|
||||
BuildRequires: libattr-devel
|
||||
%if 0%{?suse_version} >= 1030
|
||||
BuildRequires: licenses
|
||||
Requires: licenses
|
||||
%endif
|
||||
|
||||
%description
|
||||
Libcap-ng is a library that makes using posix capabilities easier
|
||||
@ -88,33 +84,30 @@ lets you set the file system based capabilities.
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure --libdir=/%{_lib}
|
||||
%configure --libdir="/%{_lib}"
|
||||
%__make %{?_smp_mflags} %{?jobs:-j%{jobs}}
|
||||
|
||||
%install
|
||||
%__make DESTDIR="${RPM_BUILD_ROOT}" install
|
||||
%__make DESTDIR="%{buildroot}" install
|
||||
|
||||
# Move the symlink
|
||||
rm -f $RPM_BUILD_ROOT/%{_lib}/%{name}.so
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
||||
VLIBNAME=$(ls $RPM_BUILD_ROOT/%{_lib}/%{name}.so.*.*.*)
|
||||
LIBNAME=$(basename $VLIBNAME)
|
||||
ln -s ../../%{_lib}/$LIBNAME $RPM_BUILD_ROOT%{_libdir}/%{name}.so
|
||||
%__rm -f "%{buildroot}/%{_lib}/%{name}.so"
|
||||
%__mkdir_p "%{buildroot}%{_libdir}"
|
||||
VLIBNAME=$(/bin/ls -1 "%{buildroot}/%{_lib}/%{name}.so".*.*.*)
|
||||
[ -n "$VLIBNAME" ] || { echo "ERROR: failed to find %{buildroot}/%{_lib}/%{name}.so.*.*.*" >&2; exit 1; }
|
||||
LIBNAME=$(basename "$VLIBNAME")
|
||||
%__ln_s "../../%{_lib}/$LIBNAME" "%{buildroot}%{_libdir}/%{name}.so"
|
||||
|
||||
# Move the pkgconfig file
|
||||
mv $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT%{_libdir}
|
||||
%__install -d "%{buildroot}%{_libdir}"
|
||||
%__mv "%{buildroot}/%{_lib}/pkgconfig" "%{buildroot}%{_libdir}/pkgconfig"
|
||||
|
||||
# Remove a couple things so they don't get picked up
|
||||
rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.{a,la}
|
||||
rm -f $RPM_BUILD_ROOT%{python_sitearch}/_capng.{a,la}
|
||||
|
||||
for f in COPYING COPYING.LIB; do
|
||||
h=/usr/share/doc/licenses/md5/$(md5sum "$f"|cut -f1 -d" ")
|
||||
test -e "$h" && %__ln_s -f "$h" .
|
||||
done
|
||||
%__rm -f "%{buildroot}/%{_lib}/libcap-ng".{a,la}
|
||||
%__rm -f "%{buildroot}%{python_sitearch}/_capng".{a,la}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%post -n %{name}%{soname} -p /sbin/ldconfig
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user