]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blobdiff - libcap-ng/libcap-ng.nm
libcap-ng: Move libraries to /lib.
[people/pmueller/ipfire-3.x.git] / libcap-ng / libcap-ng.nm
index 36b5a787a5c4020a5af2f1f8af91efb9f1d65983..e2971c3dac49ca1ffbb6b1be20d9215d4aaa90d0 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = libcap-ng
 version    = 0.6.5
-release    = 1
+release    = 2
 
 groups     = System/Libraries
 url        = http://people.redhat.com/sgrubb/libcap-ng
@@ -13,11 +13,11 @@ license    = LGPLv2+
 summary    = An alternate posix capabilities library.
 
 description
-       Libcap-ng is a library that makes using posix capabilities \
+       Libcap-ng is a library that makes using posix capabilities
        easier.
 end
 
-source_dl  =
+source_dl  = http://people.redhat.com/sgrubb/libcap-ng/
 
 build
        requires
@@ -25,6 +25,15 @@ build
                python
        end
 
+       install_cmds
+               # Move libraries to lib
+               mkdir -pv %{BUILDROOT}/lib
+               mv -vf %{BUILDROOT}/usr/lib/libcap-ng.so.* %{BUILDROOT}/lib/
+
+               # Recreate symlink
+               ln -svf ../../lib/libcap-ng.so.0 %{BUILDROOT}/usr/lib/libcap-ng.so
+       end
+
        # XXX Testsuite is broken by the package developers
        #def test
        #       make check