forked from pool/libcap
Accepting request 84056 from home:a_jaeger:branches:openSUSE:Factory
Update license. OBS-URL: https://build.opensuse.org/request/show/84056 OBS-URL: https://build.opensuse.org/package/show/Base:System/libcap?expand=0&rev=14
This commit is contained in:
24
libcap.spec
24
libcap.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package libcap (Version 2.16)
|
||||
# spec file for package libcap
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -15,19 +15,17 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: libcap
|
||||
License: BSD3c
|
||||
License: BSD3c;GPLv2
|
||||
Group: System/Libraries
|
||||
AutoReqProv: on
|
||||
Summary: Library for Capabilities (linux-privs) Support
|
||||
Version: 2.19
|
||||
Release: 6
|
||||
Version: 2.22
|
||||
Release: 1
|
||||
Source: ftp://ftp.de.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-%{version}.tar.bz2
|
||||
Source2: baselibs.conf
|
||||
#URL: http://www.kernel.org/
|
||||
Url: https://sites.google.com/site/fullycapable/
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: libattr-devel
|
||||
%if 0%{?suse_version} > 1030
|
||||
@@ -46,7 +44,7 @@ done automatically by the kernel.
|
||||
|
||||
|
||||
%package -n libcap2
|
||||
License: BSD3c
|
||||
License: BSD3c;GPLv2
|
||||
Summary: Library for Capabilities (linux-privs) Support
|
||||
Group: System/Libraries
|
||||
|
||||
@@ -61,7 +59,7 @@ done automatically by the kernel.
|
||||
|
||||
|
||||
%package devel
|
||||
License: BSD3c
|
||||
License: BSD3c;GPLv2
|
||||
Summary: Development files for libcap
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: glibc-devel libcap2 = %{version}
|
||||
@@ -79,7 +77,7 @@ using libcap.
|
||||
|
||||
|
||||
%package progs
|
||||
License: BSD3c
|
||||
License: BSD3c;GPLv2
|
||||
Summary: Libcap utility programs
|
||||
Group: System/Filesystems
|
||||
|
||||
@@ -97,8 +95,8 @@ libcap.
|
||||
lib=%{_lib} make %{?_smp_mflags} DEBUG="-g $RPM_OPT_FLAGS"
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=$RPM_BUILD_ROOT/%{_lib} MANDIR=$RPM_BUILD_ROOT%{_mandir}
|
||||
# remove unneeded fi
|
||||
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
|
||||
|
Reference in New Issue
Block a user