SHA256
1
0
forked from pool/polymake
polymake/polymake.spec

114 lines
3.4 KiB
RPMSpec

#
# spec file for package polymake
#
# Copyright (c) 2019 SUSE LINUX Products 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 https://bugs.opensuse.org/
#
Name: polymake
%define lname libpolymake4_1
Version: 4.1
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/
Source: https://github.com/polymake/polymake/archive/V%version.tar.gz
Patch1: unbundle.diff
BuildRequires: bliss-devel
BuildRequires: libboost_headers-devel
BuildRequires: cddlib-devel
BuildRequires: flint-devel
BuildRequires: gcc-c++ >= 5
BuildRequires: gmp-devel >= 4.2
BuildRequires: lrslib-devel >= 0.7.0
BuildRequires: libxml2-tools
BuildRequires: libxslt-tools
BuildRequires: memory-constraints
BuildRequires: ninja
BuildRequires: mpfr-devel
BuildRequires: normaliz-devel
BuildRequires: perl-base >= 5.8.1
BuildRequires: readline-devel >= 5
BuildRequires: perl(Term::ReadKey)
BuildRequires: perl(Term::ReadLine::Gnu)
BuildRequires: perl(XML::LibXML)
BuildRequires: perl(XML::LibXSLT)
BuildRequires: perl(XML::Writer)
BuildRequires: perl(JSON)
BuildRequires: pkgconfig(libxml-2.0)
%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 -n %lname
Summary: Library for studying combinatorics and geometry of convex polytopes
Group: System/Libraries
%description -n %lname
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
Summary: Development files for the polymake library
Group: Development/Libraries/C and C++
%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
free
# Not AC.
./configure --prefix="%_prefix" --libdir="%_libdir" \
--libexecdir="%_libdir/%name-%version" --without-native \
CFLAGS="%optflags" CXXFLAGS="%optflags" CXXOPT="%optflags"
%limit_build -m 1400
make NINJA="ninja %{?_smp_mflags}"
%install
%make_install
find "%buildroot/%_includedir" -type f -exec chmod a-x {} +
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%_bindir/polymake
%_datadir/polymake/
# plugins or something
%_libdir/polymake-%version/
%doc ChangeLog
%files -n %lname
%_libdir/libpolymake*.so.%version
%files devel
%_bindir/polymake-config
%_includedir/polymake/
%_libdir/libpoly*.so
%changelog