###############################################################################
name = ppl
-version = 0.11.2
-release = 2
+version = 1.0
+release = 1.1
maintainer = Michael Tremer <michael.tremer@ipfire.org>
groups = Development/Libraries
applications using the PPL through its C and C++ interfaces.
end
-source_dl =
-sources = %{thisapp}.tar.lzma
+source_dl = ftp://ftp.cs.unipr.it/pub/ppl/releases/%{version}/
+sources = %{thisapp}.tar.xz
build
requires
- autoconf
- automake
gcc-c++
- gmp-devel
- m4
+ gmp-devel >= 4.1.3
+ m4 >= 1.4.8
end
configure_options += \
--enable-interfaces="c cxx" \
--disable-debugging
- PARALLELISMFLAGS =
-
- prepare_cmds
- cd %{DIR_APP} && autoreconf -f
- end
-
test
make check
end
+
+ install_cmds
+ # Create compat symlink.
+ ln -s libppl.so.12 %{BUILDROOT}%{libdir}/libppl.so.9
+ end
end
packages
package %{name}
+ package %{name}-compat
+ summary = Compat symlink for ppl-0.11.
+ description
+ This package pretends to ship libppl.so.9 for
+ compatibility reasons.
+ end
+
+ # Provide the old version.
+ if "%{lib}" == "lib64"
+ provides += libppl.so.9()(64bit)
+ else
+ provides += libppl.so.9
+ end
+
+ files
+ %{libdir}/libppl.so.9
+ end
+ end
+
package %{name}-devel
template DEVEL
+
+ requires += gmp-devel >= 4.1.3
+ end
+
+ package %{name}-debuginfo
+ template DEBUGINFO
end
end