Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:Staging:B
libcap
libcap.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libcap.spec of Package libcap
# # spec file for package libcap # # Copyright (c) 2018 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 # 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/ # Name: libcap Summary: Library for Capabilities (linux-privs) Support License: BSD-3-Clause and GPL-2.0 Group: Development/Libraries/C and C++ Version: 2.25 Release: 0 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/ BuildRequires: fdupes BuildRequires: pam-devel BuildRequires: pkg-config %description Capabilities are a measure to limit the omnipotence of the superuser. Currently a program started by root or setuid root has the power to do anything. Capabilities (Linux-Privs) provide a more fine-grained access control. Without kernel patches, you can use this library to drop 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 %description -n libcap2 Capabilities are a measure to limit the omnipotence of the superuser. Currently a program started by root or setuid root has the power to do anything. Capabilities (Linux-Privs) provide a more fine-grained access control. Without kernel patches, you can use this library to drop capabilities within setuid binaries. If you use patches, this can be done automatically by the kernel. %package devel Summary: Development files for libcap Group: Development/Libraries/C and C++ Requires: glibc-devel Requires: libcap2 = %{version} %description devel Development files (Headers, libraries for static linking, etc) for libcap. libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities. Install libcap-devel if you want to develop or compile applications using libcap. %package progs Summary: Libcap utility programs Group: System/Filesystems %description progs This package contains utility programs handling capabilities via libcap. %package -n pam_cap Summary: PAM Module for Capabilities Support Group: System/Libraries %description -n pam_cap A PAM module for per-session capabilities manipulation. %prep %setup -q %build make prefix=%{_prefix} lib=%{_lib} LIBDIR=%{_libdir} SBINDIR=%{_sbindir} \ INCDIR=%{_includedir} MANDIR=%{_mandir} DEBUG="-g %{optflags}" %install 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 mkdir -p %{buildroot}/%{_lib}/security mv %{buildroot}%{_libdir}/security/pam_cap.so %{buildroot}/%{_lib}/security/pam_cap.so install -D pam_cap/capability.conf %{buildroot}%{_sysconfdir}/security/capability.conf %fdupes -s $RPM_BUILD_ROOT %post -n libcap2 -p /sbin/ldconfig %postun -n libcap2 -p /sbin/ldconfig %files -n libcap2 %defattr(-,root,root) %license License %{_libdir}/libcap.so.* %files progs %defattr(-,root,root) %{_mandir}/man1/* %{_mandir}/man8/* %{_sbindir}/* %files devel %defattr(-,root,root) %license License %doc README CHANGELOG %{_includedir}/sys/capability.h %{_libdir}/*.so %{_libdir}/pkgconfig/%{name}.pc %{_mandir}/man3/* %files -n pam_cap %defattr(-,root,root) %config(noreplace) %attr(0600,root,root) %{_sysconfdir}/security/capability.conf /%{_lib}/security/pam_cap.so %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor