auto-import changelog data from libcap-1.10-6.src.rpm

Fri Nov 09 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)
This commit is contained in:
cvsdist 2004-09-09 07:21:31 +00:00
parent d92e238ef3
commit 2544c6565a
2 changed files with 47 additions and 12 deletions

View File

@ -0,0 +1,19 @@
--- libcap-1.10/libcap/include/sys/capability.h.foo Fri Nov 9 16:26:25 2001
+++ libcap-1.10/libcap/include/sys/capability.h Fri Nov 9 16:28:47 2001
@@ -21,6 +21,16 @@
*/
#include <sys/types.h>
+#include <stdint.h>
+
+/*
+ * Make sure we can be included from userland by preventing
+ * capability.h from including other kernel headers
+ */
+#define _LINUX_TYPES_H
+#define _LINUX_FS_H
+typedef uint32_t __u32;
+
#include <linux/capability.h>
/*

View File

@ -1,38 +1,46 @@
Name: libcap
Version: 1.10
Release: 5
Summary: Library for getting and setting POSIX.1e capabilities
Source: ftp://ftp.kernel.org/pub/linux/libraries/security/libcap/kernel-2.4/%{name}-%{version}.tar.bz2
Release: 6
Summary: Library for getting and setting POSIX.1e capabilities.
Source: ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/%{name}-%{version}.tar.bz2
License: BSD-like and LGPL
Patch: libcap-1.10-ia64.patch
Patch1: libcap-1.10-userland.patch
Patch2: libcap-1.10-shared.patch
Patch3: libcap-1.10-alpha.patch
Group: System Environment/Libraries
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
%{name} is a library for getting and setting POSIX.1e (formerly POSIX 6)
libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
draft 15 capabilities.
%package devel
Summary: Development files for %{name}
Summary: Development files for libcap
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Development files (Headers, libraries for static linking, etc) for %{name}.
Development files (Headers, libraries for static linking, etc) for libcap.
%{name} is a library for getting and setting POSIX.1e (formerly POSIX 6)
libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
draft 15 capabilities.
Install %{name}-devel if you want to develop or compile applications using
%{name}.
Install libcap-devel if you want to develop or compile applications using
libcap.
%{name} is a library for getting and setting POSIX.1e (formerly POSIX 6)
%{name}.
%prep
%setup
%ifarch ia64 s390 s390x
%patch -p1 -b .ia64
%endif
%ifarch alpha
%patch3 -p1 -b .alpha
%endif
%patch1 -p1 -b .userland
%patch2 -p1 -b .shared
perl -pi -e "s,^COPTFLAGS=.*,COPTFLAGS=$RPM_OPT_FLAGS,g" Make.Rules
perl -pi -e 's,^man_prefix=.*,man_prefix=\$\(prefix)/share,g' Make.Rules
@ -42,20 +50,23 @@ make prefix=/usr
%install
rm -rf $RPM_BUILD_ROOT
make install prefix=/usr FAKEROOT=$RPM_BUILD_ROOT
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}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/*.so.*
/lib/*.so.*
%{_sbindir}/*
%files devel
%defattr(-,root,root)
%{_prefix}/include/*
%{_libdir}/*.so
/lib/*.so
%{_mandir}/man2/*
%{_mandir}/man3/*
@ -63,6 +74,11 @@ make install prefix=/usr FAKEROOT=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}
%changelog
* 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)
* Mon Jul 16 2001 Trond Eivind Glomsrød <teg@redhat.com>
- Add post,postun scripts