]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
mpc: Move mpc-compat package into own build file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 22 Feb 2015 14:52:35 +0000 (15:52 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 22 Feb 2015 14:52:35 +0000 (15:52 +0100)
Fixes #10742.

compat-libmpc/compat-libmpc.nm [new file with mode: 0644]
libmpc/libmpc.nm

diff --git a/compat-libmpc/compat-libmpc.nm b/compat-libmpc/compat-libmpc.nm
new file mode 100644 (file)
index 0000000..123cfec
--- /dev/null
@@ -0,0 +1,67 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = compat-libmpc
+version    = 0.9
+release    = 1
+
+thisapp    = mpc-%{version}
+
+groups     = System/Libraries
+url        = http://www.multiprecision.org/
+license    = LGPLv2.1+
+summary    = Mpc is a C library for the arithmetic of complex numbers.
+
+description
+       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/
+
+build
+       requires
+               gmp-devel >= 4.3.2
+               mpfr-devel >= 2.4.2
+       end
+
+       export EGREP = egrep
+
+       configure_options += \
+               --disable-static \
+               --enable-shared
+
+       test
+               make check
+       end
+
+       install
+               # Only install libraries.
+               mkdir -pv %{BUILDROOT}%{libdir}
+               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
+
+packages
+       package %{name}
+               provides
+                       mpc = %{thisver}
+               end
+
+               obsoletes
+                       mpc-compat
+               end
+
+               conflicts
+                       mpc <= %{thisver}
+               end
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end
index a1d1d5c87366204b70ab739651f50293f912855e..d5f68e6f6d8e59f8289cd3f54b7072371e2ad860 100644 (file)
@@ -5,11 +5,9 @@
 
 name       = libmpc
 version    = 1.0
-release    = 1
+release    = 2
 thisapp    = mpc-%{version}
 
-compat_version = 0.9
-
 groups     = System/Libraries
 url        = http://www.multiprecision.org/
 license    = LGPLv2.1+
@@ -22,7 +20,6 @@ description
 end
 
 source_dl  = http://www.multiprecision.org/mpc/download/
-sources   += mpc-%{compat_version}.tar.gz
 
 build
        requires
@@ -34,28 +31,10 @@ build
                --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
+               #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
 
 packages
@@ -65,14 +44,6 @@ 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