2019-03-17 16:37:17 +01:00
|
|
|
#
|
|
|
|
# spec file for package polymake
|
|
|
|
#
|
2024-08-19 00:04:18 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-03-17 16:37:17 +01: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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-09-24 16:29:00 +02:00
|
|
|
%define lname libpolymake4_13
|
2019-03-17 16:37:17 +01:00
|
|
|
Name: polymake
|
2024-09-24 16:29:00 +02:00
|
|
|
Version: 4.13
|
2019-03-17 16:37:17 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Application for studying combinatorics and geometry of convex polytopes
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
URL: https://polymake.org/
|
|
|
|
|
2024-09-24 16:29:00 +02:00
|
|
|
Source: https://github.com/polymake/polymake/releases/download/V4.13/polymake-4.13-minimal.tar.bz2
|
|
|
|
Source: polymake-4.13-minimal.tar.bz2
|
2022-01-14 14:43:14 +01:00
|
|
|
Source9: %name-rpmlintrc
|
2021-06-26 00:21:09 +02:00
|
|
|
Patch2: sympol-system.patch
|
2024-08-19 00:04:18 +02:00
|
|
|
Patch3: perl.patch
|
2019-03-17 16:37:17 +01:00
|
|
|
BuildRequires: bliss-devel
|
|
|
|
BuildRequires: cddlib-devel
|
2023-01-30 13:17:16 +01:00
|
|
|
BuildRequires: fdupes
|
2020-09-08 14:36:05 +02:00
|
|
|
BuildRequires: flint-devel
|
2019-03-17 16:37:17 +01:00
|
|
|
BuildRequires: gcc-c++ >= 5
|
|
|
|
BuildRequires: gmp-devel >= 4.2
|
2024-08-19 00:04:18 +02:00
|
|
|
BuildRequires: libSingular-devel
|
2021-06-22 18:29:36 +02:00
|
|
|
BuildRequires: libboost_headers-devel
|
2019-03-17 16:37:17 +01:00
|
|
|
BuildRequires: libxml2-tools
|
|
|
|
BuildRequires: libxslt-tools
|
2021-06-26 00:21:09 +02:00
|
|
|
BuildRequires: lrslib-devel >= 7.1b
|
2019-03-17 16:37:17 +01:00
|
|
|
BuildRequires: memory-constraints
|
|
|
|
BuildRequires: mpfr-devel
|
2021-06-22 18:29:36 +02:00
|
|
|
BuildRequires: ninja
|
2019-03-17 16:37:17 +01:00
|
|
|
BuildRequires: normaliz-devel
|
2024-08-19 00:04:18 +02:00
|
|
|
BuildRequires: perl
|
2021-06-22 18:29:36 +02:00
|
|
|
BuildRequires: ppl-devel
|
2019-03-17 16:37:17 +01:00
|
|
|
BuildRequires: readline-devel >= 5
|
2021-06-22 18:29:36 +02:00
|
|
|
BuildRequires: sympol-devel
|
|
|
|
BuildRequires: perl(JSON)
|
2019-03-17 16:37:17 +01:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2024-08-19 00:04:18 +02:00
|
|
|
Requires: perl(JSON)
|
|
|
|
Requires: perl(Term::ReadKey)
|
|
|
|
Requires: perl(Term::ReadLine::Gnu)
|
|
|
|
Requires: perl(XML::SAX)
|
|
|
|
Suggests: 4ti2
|
|
|
|
Suggests: azove
|
|
|
|
Suggests: gfan
|
|
|
|
Suggests: graphviz
|
|
|
|
Suggests: latte
|
|
|
|
Suggests: plantri
|
|
|
|
Suggests: povray
|
|
|
|
Suggests: qhull
|
|
|
|
Suggests: web_browser
|
|
|
|
Suggests: vinci
|
|
|
|
Suggests: mimehandler(application/pdf)
|
|
|
|
#Suggests: porta <https://porta.zib.de/>
|
|
|
|
# web_browser used for displaying SVG
|
2019-03-17 16:37:17 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
polymake is a tool to study the combinatorics and the geometry of
|
|
|
|
convex polytopes and polyhedra. It is also capable of dealing with
|
|
|
|
simplicial complexes, matroids, polyhedral fans, graphs, tropical
|
|
|
|
objects, and other objects.
|
|
|
|
|
|
|
|
%package devel
|
2024-08-19 00:04:18 +02:00
|
|
|
Summary: Development files for Polymake plugins
|
2021-06-22 18:29:36 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2024-08-19 00:04:18 +02:00
|
|
|
Requires: %name = %version
|
2019-03-17 16:37:17 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
polymake is a tool to study the combinatorics and the geometry of
|
|
|
|
convex polytopes and polyhedra. It is also capable of dealing with
|
|
|
|
simplicial complexes, matroids, polyhedral fans, graphs, tropical
|
|
|
|
objects, and other objects.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
%build
|
2023-01-30 12:46:01 +01:00
|
|
|
# force using system libnormaliz
|
|
|
|
rm -rf bundled/libnormaliz/external
|
|
|
|
# It's not autoconf.
|
2019-03-17 16:37:17 +01:00
|
|
|
./configure --prefix="%_prefix" --libdir="%_libdir" \
|
|
|
|
--libexecdir="%_libdir/%name-%version" --without-native \
|
2022-01-14 14:43:14 +01:00
|
|
|
--with-bliss="%_prefix" --with-sympol="%_prefix" --with-cdd="%_prefix" \
|
2024-08-19 00:04:18 +02:00
|
|
|
--with-permlib="%_prefix" --with-lrs="%_prefix" --without-callable \
|
2021-06-26 00:21:09 +02:00
|
|
|
CFLAGS="%optflags" CXXFLAGS="%optflags -g0" CXXOPT="%optflags"
|
2020-09-26 23:05:51 +02:00
|
|
|
# can't replace limit_build by _constraints file:
|
|
|
|
# * asking memoryperjob=3400 -> unsatisfiable i586 workers
|
|
|
|
# (github.com/openSUSE/open-build-service/issues/10167)
|
|
|
|
# * asking physicalmemory=13600 -> unsatisfiable ppc64 workers
|
|
|
|
%limit_build -m 3400
|
2021-06-22 18:29:36 +02:00
|
|
|
make NINJA="ninja %{?_smp_mflags} -v"
|
2019-03-17 16:37:17 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find "%buildroot/%_includedir" -type f -exec chmod a-x {} +
|
2023-01-30 13:17:16 +01:00
|
|
|
%fdupes %buildroot/%_prefix
|
2019-03-17 16:37:17 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%_bindir/polymake
|
|
|
|
%_datadir/polymake/
|
|
|
|
# plugins or something
|
|
|
|
%_libdir/polymake-%version/
|
|
|
|
%doc ChangeLog
|
2020-12-24 15:10:08 +01:00
|
|
|
%license COPYING
|
2019-03-17 16:37:17 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%_bindir/polymake-config
|
|
|
|
%_includedir/polymake/
|
|
|
|
|
|
|
|
%changelog
|