auto-import changelog data from libcap-1.10-4.src.rpm
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 Glomsrd <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
This commit is contained in:
parent
557a3299ed
commit
3b8486c2fd
@ -0,0 +1 @@
|
|||||||
|
libcap-1.10.tar.bz2
|
32
libcap-1.10-ia64.patch
Normal file
32
libcap-1.10-ia64.patch
Normal file
@ -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 <linux/unistd.h>
|
||||||
|
|
||||||
|
-_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
|
||||||
|
|
11
libcap-1.10-shared.patch
Normal file
11
libcap-1.10-shared.patch
Normal file
@ -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)
|
||||||
|
|
74
libcap.spec
Normal file
74
libcap.spec
Normal file
@ -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 <jakub@redhat.com>
|
||||||
|
- don't build libcap.so.1 with ld -shared, but gcc -shared
|
||||||
|
|
||||||
|
* Wed Jun 20 2001 Trond Eivind Glomsrø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
|
Loading…
Reference in New Issue
Block a user