forked from pool/libcap-ng
Accepting request 38397 from security
Copy from security/libcap-ng based on submit request 38397 from user prusnak OBS-URL: https://build.opensuse.org/request/show/38397 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcap-ng?expand=0&rev=1
This commit is contained in:
commit
c84cdcddf4
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
libcap-ng-0.6.3.tar.bz2
Normal file
3
libcap-ng-0.6.3.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8a121e611f9471721938809a1bab3965a2c9d9b0c552b67687ad69b9e8250b98
|
||||
size 271667
|
21
libcap-ng.changes
Normal file
21
libcap-ng.changes
Normal file
@ -0,0 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 12 10:01:51 UTC 2010 - pascal.bleser@opensuse.org
|
||||
|
||||
- update to 0.6.3:
|
||||
* in netcap and pscap use the effective uid
|
||||
* in capng_change_id, only retain setpcap if clearing the bounding set
|
||||
|
||||
- add rpmlintrc to disable false positive warnings
|
||||
|
||||
- symlink license files on openSUSE
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 10 16:02:51 UTC 2010 - prusnak@suse.cz
|
||||
|
||||
- fixed Requires of python subpackage
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 26 12:14:04 UTC 2010 - prusnak@suse.cz
|
||||
|
||||
- imported package from Fedora (version 0.6.2)
|
||||
|
2
libcap-ng.rpmlintrc
Normal file
2
libcap-ng.rpmlintrc
Normal file
@ -0,0 +1,2 @@
|
||||
addFilter("libcap-ng-utils.*: W: shlib-policy-missing-lib")
|
||||
addFilter("libcap-ng-utils.*: W: shlib-policy-nonversioned-dir .*")
|
151
libcap-ng.spec
Normal file
151
libcap-ng.spec
Normal file
@ -0,0 +1,151 @@
|
||||
#
|
||||
# spec file for package libcap-ng (Version 0.6.3)
|
||||
#
|
||||
# Copyright (c) 2010 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
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||
|
||||
Summary: An alternate POSIX capabilities library
|
||||
|
||||
Name: libcap-ng
|
||||
Version: 0.6.3
|
||||
Release: 1
|
||||
%define soname 0
|
||||
License: LGPLv2+
|
||||
Group: System Environment/Libraries
|
||||
Url: http://people.redhat.com/sgrubb/libcap-ng
|
||||
# http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-%{version}.tar.gz
|
||||
Source0: libcap-ng-%{version}.tar.bz2
|
||||
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
|
||||
|
||||
%package -n %{name}%{soname}
|
||||
|
||||
Summary: An alternate POSIX capabilities library
|
||||
License: LGPLv2+
|
||||
Group: System Environment/Libraries
|
||||
|
||||
%description -n %{name}%{soname}
|
||||
Libcap-ng is a library that makes using posix capabilities easier
|
||||
|
||||
%package devel
|
||||
Summary: Header files for libcap-ng library
|
||||
License: LGPLv2+
|
||||
Group: Development/Libraries
|
||||
Requires: kernel-headers >= 2.6.11
|
||||
Requires: %{name}%{soname} = %{version}
|
||||
Requires: pkgconfig
|
||||
|
||||
%description devel
|
||||
The libcap-ng-devel package contains the files needed for developing
|
||||
applications that need to use the libcap-ng library.
|
||||
|
||||
%package -n python-capng
|
||||
Summary: Python bindings for libcap-ng library
|
||||
License: LGPLv2+
|
||||
Group: Development/Libraries
|
||||
BuildRequires: python-devel swig
|
||||
Requires: %{name}%{soname} = %{version}
|
||||
|
||||
%description -n python-capng
|
||||
The libcap-ng-python package contains the bindings so that libcap-ng
|
||||
and can be used by python applications.
|
||||
|
||||
%package utils
|
||||
Summary: Utilities for analysing and setting file capabilities
|
||||
License: GPLv2+
|
||||
Group: Development/Libraries
|
||||
|
||||
%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.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure --libdir=/%{_lib}
|
||||
%__make %{?_smp_mflags} %{?jobs:-j%{jobs}}
|
||||
|
||||
%install
|
||||
%__make DESTDIR="${RPM_BUILD_ROOT}" 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
|
||||
|
||||
# Move the pkgconfig file
|
||||
mv $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT%{_libdir}
|
||||
|
||||
# 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
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -n %{name}%{soname} -p /sbin/ldconfig
|
||||
|
||||
%postun -n %{name}%{soname} -p /sbin/ldconfig
|
||||
|
||||
%files -n %{name}%{soname}
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING.LIB
|
||||
%attr(0755,root,root) /%{_lib}/libcap-ng.so.%{soname}
|
||||
%attr(0755,root,root) /%{_lib}/libcap-ng.so.%{soname}.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%attr(0644,root,root) %{_mandir}/man3/*.3%{ext_man}
|
||||
%attr(0644,root,root) %{_includedir}/cap-ng.h
|
||||
%attr(0755,root,root) %{_libdir}/libcap-ng.so
|
||||
%attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4
|
||||
%{_libdir}/pkgconfig/libcap-ng.pc
|
||||
|
||||
%files -n python-capng
|
||||
%defattr(-,root,root,-)
|
||||
%attr(755,root,root) %{python_sitearch}/_capng.so
|
||||
%{python_sitearch}/capng.py*
|
||||
|
||||
%files utils
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
%attr(0755,root,root) %{_bindir}/captest
|
||||
%attr(0755,root,root) %{_bindir}/filecap
|
||||
%attr(0755,root,root) %{_bindir}/netcap
|
||||
%attr(0755,root,root) %{_bindir}/pscap
|
||||
%attr(0644,root,root) %{_mandir}/man8/*.8%{ext_man}
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user