2020-09-16 15:24:48 +02:00
|
|
|
#
|
|
|
|
# spec file for package polylib
|
|
|
|
#
|
2023-06-24 16:12:16 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2020-09-16 15:24:48 +02:00
|
|
|
#
|
|
|
|
# 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 https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define lname libpolylibgmp8
|
|
|
|
Name: polylib
|
|
|
|
Version: 5.22.5
|
|
|
|
Release: 0
|
|
|
|
Summary: Library for computing homotopy continuation of roots
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
URL: https://icps.u-strasbg.fr/polylib/
|
|
|
|
Source: https://icps.u-strasbg.fr/polylib/polylib_src/%name-%version.tar.gz
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: ntl-devel
|
2023-06-24 16:12:16 +02:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
%if 0%{?suse_version} >= 1590
|
2023-06-24 16:23:57 +02:00
|
|
|
BuildRequires: pkgconfig(gmp)
|
2023-06-24 16:12:16 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
%endif
|
2020-09-16 15:24:48 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Polyhedral Library (PolyLib) operates on objects made up of
|
|
|
|
unions of polyhedra of any dimension.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: Library for computing homotopy continuation of roots
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
The Polyhedral Library (PolyLib) operates on objects made up of
|
|
|
|
unions of polyhedra of any dimension.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for PolyLib
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
2023-06-24 16:23:57 +02:00
|
|
|
%if 0%{?suse_version} >= 1590
|
|
|
|
Requires: pkgconfig(gmp)
|
|
|
|
%else
|
|
|
|
Requires: gmp-devel
|
|
|
|
%endif
|
2020-09-16 15:24:48 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The Polyhedral Library (PolyLib) operates on objects made up of
|
|
|
|
unions of polyhedra of any dimension.
|
|
|
|
|
|
|
|
It can manipulate non-parameterized unions of polyhedra
|
|
|
|
(intersection, difference, union, convex hull, simplify, image and
|
|
|
|
preimage, plus some input and output functions), parameterized
|
|
|
|
vertices computation, and Ehrhart polynomials computation.
|
|
|
|
|
|
|
|
This subpackage contains the include files and library links for
|
|
|
|
developing with PolyLib.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
%build
|
2023-06-24 16:23:57 +02:00
|
|
|
%configure --disable-static --with-libgmp
|
2020-09-16 15:24:48 +02:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %buildroot -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%_bindir/c2p
|
|
|
|
%_bindir/disjoint*
|
|
|
|
%_bindir/*ehrhart*
|
|
|
|
%_bindir/findv
|
|
|
|
%_bindir/ppgmp
|
|
|
|
%_bindir/r2p
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%_libdir/libpolylibgmp.so.8*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%license COPYING
|
|
|
|
%_includedir/polylib/
|
|
|
|
%_libdir/libpolylibgmp.so
|
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|