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

index 8c25d7c52a51be582259daeed35e95ca99734d7f..b30a0d6ff775ca6f7e20f28e236bfa6d90790b97 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = ccache
 version    = 3.1.6
-release    = 1
+release    = 3
 
 groups     = Development/Compilers
 url        = http://ccache.samba.org/
@@ -48,14 +48,14 @@ build
        install_cmds
                CCACHE_PLATFORM_TARGET=$(echo %{DISTRO_MACHINE} | sed -e "s/-gnu//g")
 
-               mkdir -pv %{BUILDROOT}/usr/lib/ccache
+               mkdir -pv %{BUILDROOT}%{libdir}/ccache
                for i in gcc g++ cc c++; do \
-                       ln -svf ../../bin/ccache %{BUILDROOT}/usr/lib/ccache/${i}; \
-                       ln -svf ../../bin/ccache %{BUILDROOT}/usr/lib/ccache/${CCACHE_PLATFORM_TARGET}-${i}; \
+                       ln -svf ../../bin/ccache %{BUILDROOT}%{libdir}/ccache/${i}; \
+                       ln -svf ../../bin/ccache %{BUILDROOT}%{libdir}/ccache/${CCACHE_PLATFORM_TARGET}-${i}; \
                done
 
                mkdir -pv %{BUILDROOT}/etc/profile.d
-               sed -e "s|@LIBDIR@|/usr/lib|g" -e "s|@CACHEDIR@|%{CCACHE_CACHE}|g" \
+               sed -e "s|@LIBDIR@|%{libdir}|g" -e "s|@CACHEDIR@|%{CCACHE_CACHE}|g" \
                        < %{DIR_SOURCE}/ccache.sh > %{BUILDROOT}/etc/profile.d/ccache.sh
 
                mkdir -pv -m770 %{BUILDROOT}/%{CCACHE_CACHE}