2016-06-08 22:21:20 +02:00
|
|
|
#
|
|
|
|
# spec file for package normaliz
|
|
|
|
#
|
2019-08-24 20:56:04 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-06-08 22:21:20 +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.
|
|
|
|
|
2019-08-24 20:56:04 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-06-08 22:21:20 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: normaliz
|
2019-08-24 20:56:04 +02:00
|
|
|
%define lname libnormaliz3
|
|
|
|
Version: 3.7.4
|
2016-06-08 22:21:20 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Tools for computations in affine monoids and rational cones
|
2018-05-01 00:07:31 +02:00
|
|
|
License: GPL-3.0-or-later
|
2016-06-08 22:21:20 +02:00
|
|
|
Group: Productivity/Scientific/Math
|
2019-08-24 20:56:04 +02:00
|
|
|
URL: https://www.normaliz.uni-osnabrueck.de/
|
2016-06-08 22:21:20 +02:00
|
|
|
|
2017-03-23 16:51:23 +01:00
|
|
|
Source: https://github.com/Normaliz/Normaliz/releases/download/v%version/%name-%version.tar.gz
|
2019-08-24 20:56:04 +02:00
|
|
|
Patch1: 0001-Fix-a-bunch-of-compiler-warnings-and-two-actual-bugs.patch
|
2016-06-08 22:21:20 +02:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: cmake >= 2.6
|
2017-12-25 15:37:35 +01:00
|
|
|
#maybe with flint-devel later on
|
2016-06-08 22:21:20 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gmp-devel
|
2017-12-25 15:37:35 +01:00
|
|
|
BuildRequires: mpfr-devel
|
2016-06-08 22:21:20 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Normaliz is an open source tool for computations in affine monoids,
|
|
|
|
vector configurations, lattice polytopes, and rational cones.
|
|
|
|
|
|
|
|
Computation goals
|
|
|
|
|
|
|
|
* convex hulls and dual cones
|
|
|
|
* conversion from generators to constraints and vice versa
|
|
|
|
* triangulations, disjoint decompositions and Stanley decompositions
|
|
|
|
* Hilbert basis of rational, not necessarily pointed cones
|
|
|
|
* normalization of affine monoids
|
|
|
|
* lattice points of rational polytopes and (unbounded) polyhedra
|
|
|
|
* Hilbert (or Ehrhart) series and (quasi) polynomials under
|
|
|
|
Z-gradings (for example, for rational polytopes)
|
|
|
|
* generalized (or weighted) Ehrhart series and Lebesgue integrals of
|
|
|
|
polynomials over rational polytopes via NmzIntegrate
|
|
|
|
|
2019-08-24 20:56:04 +02:00
|
|
|
%package -n %lname
|
2016-06-08 22:21:20 +02:00
|
|
|
Summary: C++ API for Normaliz, a tool for computation of rotational cones
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2019-08-24 20:56:04 +02:00
|
|
|
%description -n %lname
|
2016-06-08 22:21:20 +02:00
|
|
|
Normaliz is an open source tool for computations in affine monoids,
|
|
|
|
vector configurations, lattice polytopes, and rational cones.
|
|
|
|
|
|
|
|
Normaliz offers an API - libnormaliz - that allows the user to access
|
|
|
|
the Normaliz computations from any C++ program.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for Normaliz, a tool for computation of rotational cones
|
|
|
|
Group: Development/Libraries/C and C++
|
2019-08-24 20:56:04 +02:00
|
|
|
Requires: %lname = %version
|
2017-09-27 10:41:49 +02:00
|
|
|
Requires: boost-devel
|
2016-06-08 22:21:20 +02:00
|
|
|
Requires: gmp-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Normaliz is an open source tool for computations in affine monoids,
|
|
|
|
vector configurations, lattice polytopes, and rational cones.
|
|
|
|
|
|
|
|
Normaliz offers an API - libnormaliz - that allows the user to access
|
|
|
|
the Normaliz computations from any C++ program.
|
|
|
|
|
|
|
|
%prep
|
2019-08-24 20:56:04 +02:00
|
|
|
%autosetup -p1
|
2016-06-08 22:21:20 +02:00
|
|
|
|
|
|
|
%build
|
2019-08-24 20:56:04 +02:00
|
|
|
if [ ! -e configure ]; then
|
|
|
|
autoreconf -fi
|
|
|
|
fi
|
|
|
|
%configure --disable-static
|
2016-06-08 22:21:20 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2019-08-24 20:56:04 +02:00
|
|
|
%make_install
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2016-06-08 22:21:20 +02:00
|
|
|
|
2019-08-24 20:56:04 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2016-06-08 22:21:20 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%_bindir/normaliz
|
2018-07-18 13:03:34 +02:00
|
|
|
%license COPYING
|
2016-06-08 22:21:20 +02:00
|
|
|
|
2019-08-24 20:56:04 +02:00
|
|
|
%files -n %lname
|
|
|
|
%_libdir/libnormaliz.so.3*
|
2016-06-08 22:21:20 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%_includedir/libnormaliz/
|
|
|
|
%_libdir/libnormaliz.so
|
2017-11-22 10:36:46 +01:00
|
|
|
|
|
|
|
%changelog
|