]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
libnfsidmap: Make package work on x86_64.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 Dec 2011 17:12:24 +0000 (18:12 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 Dec 2011 17:12:24 +0000 (18:12 +0100)
libnfsidmap/libnfsidmap.nm

index f4ee0e184e88d65084d1cbef658a600367c2a1c5..5b0b0909ec2288118310cb0c7041057d665a635e 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = libnfsidmap
 version    = 0.21
-release    = 1
+release    = 2
 
 groups     = System/Libraries
 url        = http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/
@@ -24,30 +24,29 @@ build
                gcc-c++
        end
 
-       configure_options += --libdir=/lib
+       configure_options += --libdir=/%{lib}
 
        install_cmds
-               mkdir -pv %{BUILDROOT}/usr/lib
+               mkdir -pv %{BUILDROOT}%{libdir}
 
-               mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib/
+               mv -v %{BUILDROOT}/%{lib}/pkgconfig %{BUILDROOT}%{libdir}
 
-               rm -vf %{BUILDROOT}/lib/libnfsidmap.so
-               ln -svf ../../lib/libnfsidmap.so.0 \
-                       %{BUILDROOT}/usr/lib/libnfsidmap.so
+               rm -vf %{BUILDROOT}/%{lib}/libnfsidmap.so
+               ln -svf ../../%{lib}/libnfsidmap.so.0 \
+                       %{BUILDROOT}%{libdir}/libnfsidmap.so
 
-               rm -vf %{BUILDROOT}/lib/libnfsidmap_nsswitch.so
-               ln -svf ../../lib/libnfsidmap_nsswitch.so.0 \
-                       %{BUILDROOT}/usr/lib/libnfsidmap_nsswitch.so
+               rm -vf %{BUILDROOT}/%{lib}/libnfsidmap_nsswitch.so
+               ln -svf ../../%{lib}/libnfsidmap_nsswitch.so.0 \
+                       %{BUILDROOT}%{libdir}/libnfsidmap_nsswitch.so
 
-               rm -vf %{BUILDROOT}/lib/libnfsidmap_static.so
-               ln -svf ../../lib/libnfsidmap_static.so.0 \
-                       %{BUILDROOT}/usr/lib/libnfsidmap_static.so
+               rm -vf %{BUILDROOT}/%{lib}/libnfsidmap_static.so
+               ln -svf ../../%{lib}/libnfsidmap_static.so.0 \
+                       %{BUILDROOT}%{libdir}/libnfsidmap_static.so
        end
 end
 
 packages
        package %{name}
-       end
 
        package %{name}-devel
                template DEVEL