2016-06-08 22:21:44 +02:00
|
|
|
#
|
|
|
|
# spec file for package gap-normalizinterface
|
|
|
|
#
|
2023-02-21 10:06:09 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2016-06-08 22:21:44 +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.
|
|
|
|
|
2023-02-21 10:06:09 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-06-08 22:21:44 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: gap-normalizinterface
|
2023-05-21 12:07:25 +02:00
|
|
|
Version: 1.3.6
|
2016-06-08 22:21:44 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: GAP: wrapper for Normaliz
|
2023-02-21 10:06:09 +01:00
|
|
|
License: GPL-2.0-or-later
|
2016-06-08 22:21:44 +02:00
|
|
|
Group: Productivity/Scientific/Math
|
2023-02-21 10:06:09 +01:00
|
|
|
URL: https://gap-packages.github.io/NormalizInterface/
|
2023-02-21 10:09:57 +01:00
|
|
|
#Git-Clone: https://github.com/gap-packages/NormalizInterface
|
2023-02-21 10:06:09 +01:00
|
|
|
Source: https://github.com/gap-packages/NormalizInterface/releases/download/v%{version}/NormalizInterface-%{version}.tar.bz2
|
2016-06-08 22:21:44 +02:00
|
|
|
BuildRequires: fdupes
|
2023-02-21 10:06:09 +01:00
|
|
|
BuildRequires: gap-devel >= 4.9
|
2016-06-08 22:21:44 +02:00
|
|
|
BuildRequires: gap-rpm-devel
|
2018-11-22 13:12:45 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
2023-02-21 10:06:09 +01:00
|
|
|
BuildRequires: normaliz-devel >= 3.5.4
|
|
|
|
Requires: gap-core >= 4.9
|
2016-06-08 22:21:44 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
The NormalizInterface package provides a GAP interface to Normaliz,
|
|
|
|
enabling direct access to the complete functionality of Normaliz,
|
|
|
|
such as computations in affine monoids, vector configurations,
|
|
|
|
lattice polytopes, and rational cones.
|
|
|
|
|
|
|
|
%prep
|
2023-02-21 10:06:09 +01:00
|
|
|
%autosetup -n NormalizInterface-%version
|
|
|
|
# Use C++14 for libnormalize with e-antic, see
|
|
|
|
# https://github.com/gap-packages/NormalizInterface/issues/110
|
|
|
|
sed -i -e '/AX_CXX_COMPILE_STDCXX/ s/11,/14,/' configure.ac
|
|
|
|
sed -i -e '/CXXFLAGS/ s/gnu++11/gnu++14/' Makefile.in
|
2016-06-08 22:21:44 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
%configure --with-gaproot="%gapdir" --with-normaliz="%_prefix"
|
2023-02-21 10:06:09 +01:00
|
|
|
%make_build
|
2016-06-08 22:21:44 +02:00
|
|
|
|
|
|
|
%install
|
2023-02-21 10:06:09 +01:00
|
|
|
%gappkg_simple_install
|
2023-02-21 10:09:57 +01:00
|
|
|
pushd "%buildroot/$moddir"
|
|
|
|
rm -Rf autom4te.cache config.log config.status configure~ gen/src/*.{o,d}
|
|
|
|
popd
|
2016-06-08 22:21:44 +02:00
|
|
|
%fdupes %buildroot/%_prefix
|
|
|
|
|
2023-02-21 10:06:09 +01:00
|
|
|
%files -f %name.files
|
2016-06-08 22:21:44 +02:00
|
|
|
|
|
|
|
%changelog
|