From 3b8486c2fdfa87a48ddda12370750bdd87c05eaf Mon Sep 17 00:00:00 2001 From: cvsdist Date: Sep 09 2004 07:21:23 +0000 Subject: auto-import changelog data from libcap-1.10-4.src.rpm Tue Jul 10 2001 Jakub Jelinek - don't build libcap.so.1 with ld -shared, but gcc -shared Wed Jun 20 2001 Trond Eivind Glomsr�d - Rebuild - it was missing for alpha Wed Jun 06 2001 Florian La Roche - add s390/s390x support Thu May 17 2001 Bernhard Rosenkraenzer 1.10-1 - initial RPM - fix build on ia64 --- diff --git a/.cvsignore b/.cvsignore index e69de29..df92f3f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libcap-1.10.tar.bz2 diff --git a/libcap-1.10-ia64.patch b/libcap-1.10-ia64.patch new file mode 100644 index 0000000..16702bc --- /dev/null +++ b/libcap-1.10-ia64.patch @@ -0,0 +1,32 @@ +--- libcap-1.10/libcap/cap_sys.c.ia64 Mon May 21 16:23:27 2001 ++++ libcap-1.10/libcap/cap_sys.c Mon May 21 16:24:09 2001 +@@ -11,14 +11,6 @@ + #define __LIBRARY__ + #include + +-_syscall2(int, capget, +- cap_user_header_t, header, +- cap_user_data_t, data) +- +-_syscall2(int, capset, +- cap_user_header_t, header, +- const cap_user_data_t, data) +- + /* + * $Log: cap_sys.c,v $ + * Revision 1.1.1.1 1999/04/17 22:16:31 morgan +--- libcap-1.10/Make.Rules.ia64 Mon May 21 16:22:08 2001 ++++ libcap-1.10/Make.Rules Mon May 21 16:22:32 2001 +@@ -44,10 +44,10 @@ + CC=gcc + COPTFLAGS=-O2 + DEBUG=-g #-DDEBUG +-WARNINGS=-ansi -D_POSIX_SOURCE -Wall -Wwrite-strings \ ++WARNINGS=-D_POSIX_SOURCE -Wall -Wwrite-strings \ + -Wpointer-arith -Wcast-qual -Wcast-align \ + -Wtraditional -Wstrict-prototypes -Wmissing-prototypes \ +- -Wnested-externs -Winline -Wshadow -pedantic ++ -Wnested-externs -Winline -Wshadow + LD=ld + LDFLAGS=-s #-g + diff --git a/libcap-1.10-shared.patch b/libcap-1.10-shared.patch new file mode 100644 index 0000000..b261ed5 --- /dev/null +++ b/libcap-1.10-shared.patch @@ -0,0 +1,11 @@ +--- libcap-1.10/libcap/Makefile.jj Sat Apr 17 18:16:31 1999 ++++ libcap-1.10/libcap/Makefile Tue Jul 10 01:47:29 2001 +@@ -56,7 +56,7 @@ cap_names.sed: Makefile /usr/include/lin + # @sed -ne '/^#define[ \t]CAP[_A-Z]\+[ \t]\+[0-9]\+/{s/^#define CAP_\([^ \t]*\)[ \t]*\([^ \t]*\)/ \{ \2, \"\1\" \},/;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;p;}' < /usr/include/linux/capability.h | fgrep -v 0x > cap_names.sed + + $(MINLIBNAME): $(OBJS) +- $(LD) -soname $(MAJLIBNAME) -x -shared -o $@ $(OBJS) ++ $(CC) -Wl,-soname,$(MAJLIBNAME) -Wl,-x -shared -o $@ $(OBJS) + ln -sf $(MINLIBNAME) $(MAJLIBNAME) + ln -sf $(MAJLIBNAME) $(LIBNAME) + diff --git a/libcap.spec b/libcap.spec new file mode 100644 index 0000000..eeec104 --- /dev/null +++ b/libcap.spec @@ -0,0 +1,74 @@ +Name: libcap +Version: 1.10 +Release: 4 +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 +License: BSD-like and LGPL +Patch: libcap-1.10-ia64.patch +Patch2: libcap-1.10-shared.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) +draft 15 capabilities. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Development files (Headers, libraries for static linking, etc) for %{name}. + +%{name} 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}. + +%prep +%setup +%ifarch ia64 s390 s390x +%patch -p1 -b .ia64 +%endif +%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 + +%build +make prefix=/usr + +%install +rm -rf $RPM_BUILD_ROOT +make install prefix=/usr FAKEROOT=$RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%{_libdir}/*.so.* +%{_sbindir}/* + +%files devel +%defattr(-,root,root) +%{_prefix}/include/* +%{_libdir}/*.so +%{_mandir}/man2/* +%{_mandir}/man3/* + +%clean +rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version} + +%changelog +* Tue Jul 10 2001 Jakub Jelinek +- don't build libcap.so.1 with ld -shared, but gcc -shared + +* Wed Jun 20 2001 Trond Eivind Glomsr�d +- Rebuild - it was missing for alpha + +* Wed Jun 06 2001 Florian La Roche +- add s390/s390x support + +* Thu May 17 2001 Bernhard Rosenkraenzer 1.10-1 +- initial RPM +- fix build on ia64 diff --git a/sources b/sources index e69de29..c1a4b3a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4426a413128142cab89eb2e6f13d8571 libcap-1.10.tar.bz2