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

index 6348b9f2747fd6cb4f2e3a152a6d34ddc4de9d39..1a59cff0dccedf74e7b164a8be6b92ba10675ad3 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = gmp
 version    = 5.0.2
-release    = 1
+release    = 2
 
 compat_version = 4.3.2
 
@@ -51,14 +51,13 @@ build
        end
 
        configure_options += \
-               --prefix=/usr \
                --enable-cxx \
                --enable-mpbsd \
                --disable-static
 
        prepare_cmds
                for version in %{build_versions}; do
-                       mkdir build-${version}
+                       mkdir -p build-${version}
 
                        cd build-${version}
                        ln -svf ../configure .
@@ -151,8 +150,8 @@ build
 
                # Install compat version of library.
                cd %{DIR_SRC}/%{name}-%{compat_version}
-               install -m 644 .libs/libgmp.so.3.5.2 %{BUILDROOT}/usr/lib/
-               ln -svf libgmp.so.3.5.2 %{BUILDROOT}/usr/lib/libgmp.so.3
+               install -m 644 .libs/libgmp.so.3.5.2 %{BUILDROOT}%{libdir}
+               ln -svf libgmp.so.3.5.2 %{BUILDROOT}%{libdir}/libgmp.so.3
        end
 end
 
@@ -167,7 +166,7 @@ packages
                summary = Compatibility version of %{thisapp} (%{compat_version}).
 
                files
-                       /usr/lib/libgmp.so.3*
+                       %{libdir}/libgmp.so.3*
                end
        end