2017-09-19 17:50:06 +02:00
|
|
|
#
|
|
|
|
# spec file for package ppl
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define so_name 14
|
|
|
|
Name: ppl-testsuite
|
|
|
|
Version: 1.2
|
|
|
|
Release: 0
|
|
|
|
Summary: The Parma Polyhedra Library
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Libraries/C and C++
|
2019-08-26 06:48:11 +02:00
|
|
|
URL: https://www.bugseng.com/parma-polyhedra-library
|
2017-09-19 17:50:06 +02:00
|
|
|
|
|
|
|
#Git-Web: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=summary
|
|
|
|
#Git-Clone: git://git.cs.unipr.it/ppl/ppl
|
|
|
|
Source: http://bugseng.com/products/ppl/download/ftp/releases/%version/ppl-%version.tar.xz
|
2019-08-26 06:48:11 +02:00
|
|
|
Source2: http://bugseng.com/products/ppl/download/ftp/releases/%version/ppl-%version.tar.xz.sign
|
2017-09-19 17:50:06 +02:00
|
|
|
Source3: ppl.keyring
|
|
|
|
Source4: GLS-0.12-1.1
|
|
|
|
BuildRequires: c++_compiler
|
|
|
|
BuildRequires: fdupes
|
2019-08-26 06:48:11 +02:00
|
|
|
BuildRequires: glpk-devel
|
2017-09-19 17:50:06 +02:00
|
|
|
BuildRequires: gmp-devel >= 4.1.3
|
|
|
|
BuildRequires: m4
|
|
|
|
BuildRequires: xz
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Parma Polyhedra Library (PPL) is a library for the manipulation of
|
|
|
|
(not necessarily closed) convex polyhedra and other numerical
|
|
|
|
abstractions. The applications of convex polyhedra include program
|
|
|
|
analysis, optimized compilation, integer and combinatorial optimization
|
|
|
|
and statistical data-editing. The Parma Polyhedra Library comes with
|
|
|
|
several user friendly interfaces, is fully dynamic (available virtual
|
|
|
|
memory is the only limitation to the dimension of anything), written in
|
|
|
|
accordance to all the applicable standards, exception-safe, rather
|
|
|
|
efficient, thoroughly documented, and free software. This package
|
|
|
|
provides all what is necessary to run applications using the PPL
|
|
|
|
through its C and C++ interfaces.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development tools for the Parma Polyhedra Library C and C++ interfaces
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: gmp-devel >= 4.1.3
|
|
|
|
Requires: libppl%{so_name} = %{version}
|
|
|
|
Requires: libppl_c4 = %{version}
|
|
|
|
Recommends: ppl-doc = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The header files, Autoconf macro, and ppl-config tool for developing
|
|
|
|
applications using the Parma Polyhedra Library through its C and C++
|
|
|
|
interfaces.
|
|
|
|
|
|
|
|
%package -n libppl%{so_name}
|
2019-08-26 06:48:11 +02:00
|
|
|
Summary: C++ interface of the Parma Polyhedra Library
|
2017-09-19 17:50:06 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libppl%{so_name}
|
|
|
|
Shared library for the Parma Polyhedra Library.
|
|
|
|
|
|
|
|
%package -n libppl_c4
|
2019-08-26 06:48:11 +02:00
|
|
|
Summary: C interface of the Parma Polyhedra Library
|
2017-09-19 17:50:06 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libppl_c4
|
|
|
|
Shared library for the Parma Polyhedra Library C bindings.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for the Parma Polyhedra Library
|
|
|
|
Group: Documentation/HTML
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains all the documentations required by programmers
|
|
|
|
using the Parma Polyhedra Library (PPL). Install this package if you
|
|
|
|
want to program with the PPL.
|
|
|
|
|
|
|
|
%prep
|
2019-08-26 07:08:01 +02:00
|
|
|
%autosetup -p1 -n ppl-%version
|
2017-09-19 17:50:06 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%if "%{name}" == "ppl-testsuite"
|
|
|
|
export CXXFLAGS="%{optflags} -g0"
|
|
|
|
%endif
|
|
|
|
%configure \
|
2019-08-26 06:48:11 +02:00
|
|
|
--disable-static \
|
|
|
|
--disable-rpath \
|
2017-09-19 17:50:06 +02:00
|
|
|
--disable-watchdog
|
|
|
|
#sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
#sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
make %{?_smp_mflags}
|
2019-08-26 06:48:11 +02:00
|
|
|
|
2017-09-19 17:50:06 +02:00
|
|
|
%if "%{name}" == "ppl-testsuite"
|
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
|
|
|
%install
|
2019-08-26 06:48:11 +02:00
|
|
|
|
2017-09-19 17:50:06 +02:00
|
|
|
%else
|
2019-08-26 06:48:11 +02:00
|
|
|
|
2017-09-19 17:50:06 +02:00
|
|
|
%install
|
2019-08-26 06:48:11 +02:00
|
|
|
%make_install INSTALL="install -p"
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2017-09-19 17:50:06 +02:00
|
|
|
# We don't build the binary, so delete its manpage
|
|
|
|
rm -f %{buildroot}%{_mandir}/man1/ppl_lpsol.1
|
|
|
|
# We don't build pwl
|
|
|
|
rm -Rf %{buildroot}%{_datadir}/doc/pwl
|
|
|
|
# The pdf is enough
|
|
|
|
rm -f %{buildroot}%{_datadir}/doc/%{name}/ppl-user-*.ps.gz
|
|
|
|
rm -f %{buildroot}%{_datadir}/doc/%{name}/ChangeLog
|
|
|
|
rm -f %{buildroot}%{_datadir}/doc/%{name}/README.configure
|
|
|
|
rm -f %{buildroot}%{_datadir}/doc/%{name}/TODO
|
|
|
|
rm -f %{buildroot}%{_datadir}/doc/%{name}/gpl.*
|
|
|
|
rm -f %{buildroot}%{_datadir}/doc/%{name}/fdl.ps.gz
|
|
|
|
rm -f %{buildroot}%{_datadir}/doc/%{name}/fdl.pdf
|
|
|
|
rm -Rf %{buildroot}%{_datadir}/doc/%{name}/ppl-user-prolog-interface-%{version}*
|
|
|
|
rm -Rf %{buildroot}%{_datadir}/doc/%{name}/ppl-user-ocaml-interface-%{version}*
|
|
|
|
rm -Rf %{buildroot}%{_datadir}/doc/%{name}/ppl-user-java-interface-%{version}*
|
|
|
|
cp -a %_sourcedir/GLS-* "%buildroot/%_datadir/doc/%name/"
|
|
|
|
# %%name == ppl
|
|
|
|
%endif
|
|
|
|
%fdupes -s %{buildroot}
|
|
|
|
|
2019-08-26 06:48:11 +02:00
|
|
|
%post -n libppl%{so_name} -p /sbin/ldconfig
|
2017-09-19 17:50:06 +02:00
|
|
|
%postun -n libppl%{so_name} -p /sbin/ldconfig
|
2019-08-26 06:48:11 +02:00
|
|
|
%post -n libppl_c4 -p /sbin/ldconfig
|
2017-09-19 17:50:06 +02:00
|
|
|
%postun -n libppl_c4 -p /sbin/ldconfig
|
2019-08-26 06:48:11 +02:00
|
|
|
|
2017-09-19 17:50:06 +02:00
|
|
|
%if "%{name}" == "ppl"
|
|
|
|
%files
|
|
|
|
%dir %{_datadir}/doc/%{name}
|
|
|
|
%doc %{_datadir}/doc/%{name}/BUGS
|
|
|
|
%doc %{_datadir}/doc/%{name}/COPYING
|
|
|
|
%doc %{_datadir}/doc/%{name}/CREDITS
|
|
|
|
%doc %{_datadir}/doc/%{name}/NEWS
|
|
|
|
%doc %{_datadir}/doc/%{name}/README
|
|
|
|
%{_bindir}/ppl_lcdd
|
2019-08-26 06:48:11 +02:00
|
|
|
%_bindir/ppl_lpsol
|
2017-09-19 17:50:06 +02:00
|
|
|
%{_bindir}/ppl_pips
|
|
|
|
%{_mandir}/man1/ppl_lcdd.1.gz
|
|
|
|
%{_mandir}/man1/ppl_pips.1.gz
|
|
|
|
|
|
|
|
%files -n libppl%{so_name}
|
|
|
|
%{_libdir}/libppl.so.*
|
|
|
|
|
|
|
|
%files -n libppl_c4
|
|
|
|
%{_libdir}/libppl_c.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/ppl.hh
|
|
|
|
%{_includedir}/ppl_c.h
|
|
|
|
%{_libdir}/libppl.so
|
|
|
|
%{_libdir}/libppl_c.so
|
|
|
|
%{_bindir}/ppl-config
|
|
|
|
%{_mandir}/man1/ppl-config.1.gz
|
|
|
|
%{_mandir}/man3/libppl.3.gz
|
|
|
|
%{_mandir}/man3/libppl_c.3.gz
|
|
|
|
%dir %{_datadir}/aclocal
|
|
|
|
%{_datadir}/aclocal/ppl.m4
|
|
|
|
%{_datadir}/aclocal/ppl_c.m4
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc %{_datadir}/doc/%{name}/GLS-*
|
|
|
|
%doc %{_datadir}/doc/%{name}/README.doc
|
|
|
|
%doc %{_datadir}/doc/%{name}/fdl.txt
|
|
|
|
%doc %{_datadir}/doc/%{name}/ppl-user-%{version}-html/
|
|
|
|
%doc %{_datadir}/doc/%{name}/ppl-user-c-interface-%{version}-html/
|
|
|
|
%doc %{_datadir}/doc/%{name}/ppl-user-%{version}.pdf
|
|
|
|
%doc %{_datadir}/doc/%{name}/ppl-user-c-interface-%{version}.pdf
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|