]> git.pld-linux.org Git - packages/libcap.git/commitdiff
- link patch (link *.so using gcc not ld to avoid binary compatibility problems) RA-1_0 STABLE libcap-1_92-4
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 22 Oct 2002 21:49:52 +0000 (21:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- release 4

Changed files:
    libcap-link.patch -> 1.1
    libcap.spec -> 1.29

libcap-link.patch [new file with mode: 0644]
libcap.spec

diff --git a/libcap-link.patch b/libcap-link.patch
new file mode 100644 (file)
index 0000000..4dc623e
--- /dev/null
@@ -0,0 +1,11 @@
+--- libcap-1.92/libcap/Makefile.orig   Fri Apr 23 08:15:10 1999
++++ libcap-1.92/libcap/Makefile        Tue Oct 22 23:33:28 2002
+@@ -34,7 +34,7 @@
+ #     @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 -Wl,$(MAJLIBNAME) -Wl,-x -shared -o $@ $(OBJS)
+       ln -sf $(MINLIBNAME) $(MAJLIBNAME)
+       ln -sf $(MAJLIBNAME) $(LIBNAME)
index 502652a121a8ed46684102c6ee90b4855a7d8075..f0c0f41d3e4b8f38abf8099c67ffeba9f602c025 100644 (file)
@@ -2,11 +2,12 @@ Summary:      POSIX.1e capability suite
 Summary(pl):   Wsparcie dla standardu "capability" POSIX.1e
 Name:          libcap
 Version:       1.92
-Release:       3
+Release:       4
 License:       GPL/BSD
 Group:         Applications/System
 Source0:       ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.2/%{name}-%{version}.tar.gz
 Patch0:                %{name}-1.92-make.patch
+Patch1:                %{name}-link.patch
 Icon:          libcap.gif
 URL:           http://linux.kernel.org/pub/linux/libs/security/linux-privs/
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -35,7 +36,8 @@ Pliki nag
 
 %prep
 %setup -q
-%patch -p1
+%patch0 -p1
+%patch1 -p1
 
 %build
 %{__make} "COPTFLAGS=%{rpmcflags}"
@@ -47,12 +49,12 @@ rm -rf $RPM_BUILD_ROOT
        FAKEROOT=$RPM_BUILD_ROOT \
        MANDIR=$RPM_BUILD_ROOT%{_mandir}
 
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_sbindir}/*
This page took 0.111233 seconds and 4 git commands to generate.