]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/commitdiff
libmpc: Update to 1.0 (0.9 is compat package).
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 26 Jul 2012 18:47:00 +0000 (20:47 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 26 Jul 2012 18:47:00 +0000 (20:47 +0200)
libmpc/libmpc.nm

index 9f519696d7d883f1b1f3b39876817e66587efdd9..a1d1d5c87366204b70ab739651f50293f912855e 100644 (file)
@@ -4,35 +4,57 @@
 ###############################################################################
 
 name       = libmpc
-version    = 0.9
-release    = 2
+version    = 1.0
+release    = 1
+thisapp    = mpc-%{version}
+
+compat_version = 0.9
 
 groups     = System/Libraries
 url        = http://www.multiprecision.org/
 license    = LGPLv2.1+
 summary    = Mpc is a C library for the arithmetic of complex numbers.
 
-thisapp    = mpc-%{version}
-
 description
-       Mpc is a C library for the arithmetic of complex numbers with \
-       arbitrarily high precision and correct rounding of the result. \
+       Mpc is a C library for the arithmetic of complex numbers with
+       arbitrarily high precision and correct rounding of the result.
        It is built upon and follows the same principles as Mpfr.
 end
 
 source_dl  = http://www.multiprecision.org/mpc/download/
+sources   += mpc-%{compat_version}.tar.gz
 
 build
        requires
-               gmp-devel>=4.3.2
-               mpfr-devel>=2.4.2
+               gmp-devel >= 4.3.2
+               mpfr-devel >= 2.4.2
        end
 
-       # http://lists.gforge.inria.fr/pipermail/mpc-discuss/2011-February/000805.html
-       export EGREP=egrep
+       configure_options += \
+               --enable-shared \
+               --disable-static
+
+       build_cmds
+               cd %{DIR_SRC}/mpc-%{compat_version}
+               EGREP=egrep ./configure \
+                       %{configure_options}
+
+               make %{PARALLELISMFLAGS}
+       end
 
        test
+               export LD_LIBRARY_PATH=$(pwd)/src/.libs
                make check
+
+               cd %{DIR_SRC}/mpc-%{compat_version}
+               export LD_LIBRARY_PATH=$(pwd)/src/.libs
+               make check
+       end
+
+       install_cmds
+               cd %{DIR_SRC}/mpc-%{compat_version}
+               install -m 644 src/.libs/libmpc.so.2.0.0 %{BUILDROOT}%{libdir}
+               ln -svf libmpc.so.2.0.0 %{BUILDROOT}%{libdir}/libmpc.so.2
        end
 end
 
@@ -43,6 +65,14 @@ packages
                template DEVEL
        end
 
+       package %{name}-compat
+               summary = Compat libraries of %{thisapp}.
+
+               files
+                       %{libdir}/libmpc.so.2*
+               end
+       end
+
        package %{name}-debuginfo
                template DEBUGINFO
        end