]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
nss-myhostname: Make package work on x86_64.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 7 Jan 2012 15:01:43 +0000 (16:01 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 7 Jan 2012 15:01:43 +0000 (16:01 +0100)
nss-myhostname/nss-myhostname.nm

index 52d64ce130fd90340587258aa2eaeb6caf09725f..e3fc8bffd15f838fe30c6c72f76a94f6c242fd3e 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = nss-myhostname
 version    = 0.3
-release    = 1
+release    = 2
 
 groups     = System/Libraries
 url        = http://0pointer.de/lennart/projects/nss-myhostname/
@@ -32,12 +32,12 @@ source_dl  =
 
 build
        configure_options += \
-               --libdir=/lib
+               --libdir=/%{lib}
 
        install_cmds
-               mkdir -pv %{BUILDROOT}/usr/lib
-               ln -svf ../../lib/libnss_myhostname.so.2 \
-                       %{BUILDROOT}/usr/lib/libnss_myhostname.so
+               mkdir -pv %{BUILDROOT}%{libdir}
+               ln -svf ../../%{lib}/libnss_myhostname.so.2 \
+                       %{BUILDROOT}%{libdir}/libnss_myhostname.so
 
                rm -rf %{BUILDROOT}/usr/share/doc/nss-myhostname
        end