2025-03-22 09:36:49 +00:00
|
|
|
|
#
|
|
|
|
|
|
# spec file for package libsemigroups
|
|
|
|
|
|
#
|
2025-03-26 14:58:28 +00:00
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2025-03-22 09:36:49 +00: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/
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: libsemigroups
|
2025-03-26 14:58:28 +00:00
|
|
|
|
%define lname libsemigroups3
|
2025-10-02 17:21:36 +00:00
|
|
|
|
Version: 3.2.0
|
2025-03-22 09:36:49 +00:00
|
|
|
|
Release: 0
|
|
|
|
|
|
Summary: Library with algorithms for computing finite and finitely presented semigroups
|
|
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
|
|
URL: https://github.com/libsemigroups/libsemigroups
|
2025-07-28 15:57:47 +00:00
|
|
|
|
#Source: https://github.com/libsemigroups/libsemigroups/releases/download/v%version/%name-%version.tar.gz
|
|
|
|
|
|
Source: https://github.com/libsemigroups/libsemigroups/archive/refs/tags/v%version.tar.gz
|
2025-03-22 09:36:49 +00:00
|
|
|
|
BuildRequires: automake
|
2025-10-02 17:21:36 +00:00
|
|
|
|
BuildRequires: backward-cpp-devel
|
2025-03-22 09:36:49 +00:00
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
BuildRequires: pkgconfig(eigen3)
|
2025-03-26 15:01:25 +00:00
|
|
|
|
BuildRequires: pkgconfig(fmt) >= 10.1
|
2025-03-26 14:58:28 +00:00
|
|
|
|
Provides: bundled(magic_enum)
|
|
|
|
|
|
Provides: bundled(rx-ranges)
|
2025-03-22 09:36:49 +00:00
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
A C++14 library containing implementations of several algorithms for
|
|
|
|
|
|
computing finite and finitely presented semigroups.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
|
|
Summary: Library with algorithms for computing finite and finitely presented semigroups
|
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
|
|
A C++14 library containing implementations of several algorithms for
|
|
|
|
|
|
computing finite and finitely presented semigroups, namely:
|
|
|
|
|
|
|
2025-03-26 14:58:28 +00:00
|
|
|
|
* the Froidure–Pin algorithm for computing finite semigroups
|
|
|
|
|
|
* the Todd–Coxeter and Knuth–Bendix algorithms for finitely
|
|
|
|
|
|
presented semigroups and monoids;
|
|
|
|
|
|
* the Schreier–Sims algorithm for permutation groups
|
2025-03-22 09:36:49 +00:00
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
|
Summary: Development files for the Semigroups library
|
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
Requires: %lname = %version
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
|
A C++14 library containing implementations of several algorithms for
|
|
|
|
|
|
computing finite and finitely presented semigroups, namely.
|
|
|
|
|
|
|
|
|
|
|
|
This subpackage provides the development headers for it.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
%autosetup -p1
|
2025-10-02 17:21:36 +00:00
|
|
|
|
rm -Rf third_party/backward-cpp
|
2025-03-22 09:36:49 +00:00
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
autoreconf -fi
|
|
|
|
|
|
# hpcombi requires AVX-256, which is not guaranteed to exist everywhere
|
|
|
|
|
|
%configure --disable-static --disable-hpcombi \
|
|
|
|
|
|
--enable-eigen --with-external-eigen \
|
2025-10-02 17:21:36 +00:00
|
|
|
|
--enable-fmt --with-external-fmt \
|
|
|
|
|
|
--with-external-backward
|
2025-03-22 09:36:49 +00:00
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
%make_install
|
|
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
%make_build check
|
|
|
|
|
|
|
2025-03-26 14:58:28 +00:00
|
|
|
|
%ldconfig_scriptlets -n %lname
|
2025-03-22 09:36:49 +00:00
|
|
|
|
|
|
|
|
|
|
%files -n %lname
|
2025-03-26 14:58:28 +00:00
|
|
|
|
%_libdir/libsemigroups.so.*
|
2025-03-22 09:36:49 +00:00
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
|
%_includedir/libsemigroups/
|
|
|
|
|
|
%_libdir/libsemigroups.so
|
|
|
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
|
|
%license LICENSE
|
2025-03-26 14:58:28 +00:00
|
|
|
|
%doc README.md
|
2025-03-22 09:36:49 +00:00
|
|
|
|
|
|
|
|
|
|
%changelog
|