2004-09-09 07:21:23 +00:00
|
|
|
|
Name: libcap
|
|
|
|
|
Version: 1.10
|
2004-09-09 07:21:56 +00:00
|
|
|
|
Release: 12
|
2004-09-09 07:21:44 +00:00
|
|
|
|
Summary: Library for getting and setting POSIX.1e capabilities
|
2004-09-09 07:21:31 +00:00
|
|
|
|
Source: ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/%{name}-%{version}.tar.bz2
|
2004-09-09 07:21:23 +00:00
|
|
|
|
License: BSD-like and LGPL
|
|
|
|
|
Patch: libcap-1.10-ia64.patch
|
2004-09-09 07:21:31 +00:00
|
|
|
|
Patch1: libcap-1.10-userland.patch
|
2004-09-09 07:21:23 +00:00
|
|
|
|
Patch2: libcap-1.10-shared.patch
|
2004-09-09 07:21:31 +00:00
|
|
|
|
Patch3: libcap-1.10-alpha.patch
|
2004-09-09 07:21:23 +00:00
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
Prefix: %{_prefix}
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
|
|
%description
|
2004-09-09 07:21:44 +00:00
|
|
|
|
%{name} is a library for getting and setting POSIX.1e (formerly POSIX 6)
|
2004-09-09 07:21:23 +00:00
|
|
|
|
draft 15 capabilities.
|
|
|
|
|
|
|
|
|
|
%package devel
|
2004-09-09 07:21:44 +00:00
|
|
|
|
Summary: Development files for %{name}
|
2004-09-09 07:21:23 +00:00
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
2004-09-09 07:21:44 +00:00
|
|
|
|
Development files (Headers, libraries for static linking, etc) for %{name}.
|
2004-09-09 07:21:23 +00:00
|
|
|
|
|
2004-09-09 07:21:44 +00:00
|
|
|
|
%{name} is a library for getting and setting POSIX.1e (formerly POSIX 6)
|
2004-09-09 07:21:23 +00:00
|
|
|
|
draft 15 capabilities.
|
|
|
|
|
|
2004-09-09 07:21:44 +00:00
|
|
|
|
Install %{name}-devel if you want to develop or compile applications using
|
2004-09-09 07:21:31 +00:00
|
|
|
|
%{name}.
|
2004-09-09 07:21:44 +00:00
|
|
|
|
|
2004-09-09 07:21:23 +00:00
|
|
|
|
%prep
|
|
|
|
|
%setup
|
|
|
|
|
%patch -p1 -b .ia64
|
2004-09-09 07:21:31 +00:00
|
|
|
|
%ifarch alpha
|
|
|
|
|
%patch3 -p1 -b .alpha
|
|
|
|
|
%endif
|
|
|
|
|
%patch1 -p1 -b .userland
|
2004-09-09 07:21:23 +00:00
|
|
|
|
%patch2 -p1 -b .shared
|
2004-09-09 07:21:56 +00:00
|
|
|
|
perl -pi -e "s,^COPTFLAGS=.*,COPTFLAG=$RPM_OPT_FLAGS,g" Make.Rules
|
2004-09-09 07:21:23 +00:00
|
|
|
|
perl -pi -e 's,^man_prefix=.*,man_prefix=\$\(prefix)/share,g' Make.Rules
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
make prefix=/usr
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-09-09 07:21:31 +00:00
|
|
|
|
make install prefix=%{_prefix} FAKEROOT=$RPM_BUILD_ROOT
|
|
|
|
|
mkdir $RPM_BUILD_ROOT/lib
|
|
|
|
|
mv $RPM_BUILD_ROOT%{_libdir}/* $RPM_BUILD_ROOT/lib
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_libdir}
|
2004-09-09 07:21:23 +00:00
|
|
|
|
|
2004-09-09 07:21:27 +00:00
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
2004-09-09 07:21:23 +00:00
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
2004-09-09 07:21:31 +00:00
|
|
|
|
/lib/*.so.*
|
2004-09-09 07:21:23 +00:00
|
|
|
|
%{_sbindir}/*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_prefix}/include/*
|
2004-09-09 07:21:31 +00:00
|
|
|
|
/lib/*.so
|
2004-09-09 07:21:23 +00:00
|
|
|
|
%{_mandir}/man2/*
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}
|
|
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 07:21:56 +00:00
|
|
|
|
* Fri Jul 19 2002 Jakub Jelinek <jakub@redhat.com> 1.10-12
|
|
|
|
|
- CFLAGS was using COPTFLAG variable, not COPTFLAGS
|
|
|
|
|
- build with -fpic
|
|
|
|
|
- apply the IA-64 patch everywhere, use capget/capset from glibc,
|
|
|
|
|
not directly as _syscall (as it is broken on IA-32 with -fpic)
|
|
|
|
|
- reenable alpha
|
|
|
|
|
|
2004-09-09 07:21:53 +00:00
|
|
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
|
|
* Wed May 29 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-10
|
|
|
|
|
- Exclude alpha for now, apparent gcc bug.
|
|
|
|
|
|
2004-09-09 07:21:31 +00:00
|
|
|
|
* Fri Nov 9 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-6
|
|
|
|
|
- Fix sys/capabilities.h header (#55727)
|
|
|
|
|
- Move to /lib, some applications seem to be using this rather early
|
|
|
|
|
(#55733)
|
|
|
|
|
|
2004-09-09 07:21:27 +00:00
|
|
|
|
* Mon Jul 16 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- Add post,postun scripts
|
|
|
|
|
|
2004-09-09 07:21:23 +00:00
|
|
|
|
* Tue Jul 10 2001 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
- don't build libcap.so.1 with ld -shared, but gcc -shared
|
|
|
|
|
|
|
|
|
|
* Wed Jun 20 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- Rebuild - it was missing for alpha
|
|
|
|
|
|
|
|
|
|
* Wed Jun 06 2001 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
|
- add s390/s390x support
|
|
|
|
|
|
|
|
|
|
* Thu May 17 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-1
|
|
|
|
|
- initial RPM
|
|
|
|
|
- fix build on ia64
|