Version 2.6.1.
- Dynamically generate python BuildRequires. - Add -pessimizing-move patch.
This commit is contained in:
parent
ff39d42994
commit
3b7ecef039
|
@ -0,0 +1,22 @@
|
|||
Fixes this warning:
|
||||
|
||||
In file included from /builddir/build/BUILD/libsemigroups-2.6.1/include/libsemigroups/sims1.hpp:1269,
|
||||
from tests/test-sims1.cpp:36:
|
||||
/builddir/build/BUILD/libsemigroups-2.6.1/include/libsemigroups/sims1.tpp: In instantiation of 'libsemigroups::ActionDigraph<T> libsemigroups::MinimalRepOrc::digraph() const [with T = unsigned int]':
|
||||
tests/test-sims1.cpp:759:26: required from here
|
||||
/builddir/build/BUILD/libsemigroups-2.6.1/include/libsemigroups/sims1.tpp:1003:22: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
|
||||
1003 | ActionDigraph<T> next = std::move(cr.max_nodes(hi - 1).digraph());
|
||||
| ^~~~
|
||||
/builddir/build/BUILD/libsemigroups-2.6.1/include/libsemigroups/sims1.tpp:1003:22: note: remove 'std::move' call
|
||||
|
||||
--- libsemigroups-2.6.1/include/libsemigroups/sims1.tpp.orig 2023-02-22 01:06:32.337018103 -0700
|
||||
+++ libsemigroups-2.6.1/include/libsemigroups/sims1.tpp 2023-02-25 20:21:23.847036911 -0700
|
||||
@@ -1000,7 +1000,7 @@ namespace libsemigroups {
|
||||
}
|
||||
|
||||
hi = best.number_of_nodes();
|
||||
- ActionDigraph<T> next = std::move(cr.max_nodes(hi - 1).digraph());
|
||||
+ ActionDigraph<T> next = cr.max_nodes(hi - 1).digraph();
|
||||
while (next.number_of_nodes() != 0) {
|
||||
hi = next.number_of_nodes();
|
||||
best = std::move(next);
|
|
@ -1,5 +1,5 @@
|
|||
Name: libsemigroups
|
||||
Version: 2.6.0
|
||||
Version: 2.6.1
|
||||
Release: 1%{?dist}
|
||||
Summary: C++ library for semigroups and monoids
|
||||
|
||||
|
@ -9,6 +9,9 @@ Summary: C++ library for semigroups and monoids
|
|||
License: GPL-3.0-or-later AND BSL-1.0 AND MPL-2.0 AND BSD-3-Clause AND Apache-2.0
|
||||
URL: https://libsemigroups.readthedocs.io/
|
||||
Source0: https://github.com/libsemigroups/libsemigroups/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
||||
# Remove a pessimizing move
|
||||
# https://github.com/libsemigroups/libsemigroups/pull/467
|
||||
Patch0: %{name}-pessimizing-move.patch
|
||||
|
||||
BuildRequires: catch2-devel
|
||||
BuildRequires: doxygen
|
||||
|
@ -17,14 +20,7 @@ BuildRequires: libtool
|
|||
BuildRequires: make
|
||||
BuildRequires: pkgconfig(eigen3)
|
||||
BuildRequires: pkgconfig(fmt)
|
||||
BuildRequires: %{py3_dist beautifulsoup4}
|
||||
BuildRequires: %{py3_dist breathe}
|
||||
BuildRequires: %{py3_dist lxml}
|
||||
BuildRequires: %{py3_dist pyyaml}
|
||||
BuildRequires: %{py3_dist sphinx}
|
||||
BuildRequires: %{py3_dist sphinx-copybutton}
|
||||
BuildRequires: %{py3_dist sphinx-rtd-theme}
|
||||
BuildRequires: %{py3_dist sphinxcontrib-bibtex}
|
||||
BuildRequires: python3-devel
|
||||
|
||||
%description
|
||||
Libsemigroups is a C++ library for semigroups and monoids; it is partly
|
||||
|
@ -132,6 +128,12 @@ sed -i 's/ -O3//' Makefile.am
|
|||
# Regenerate configure due to patch0
|
||||
autoreconf -fi .
|
||||
|
||||
# Relax python version dependencies
|
||||
sed -i 's/==/>=/g' docs/requirements.txt
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires -N docs/requirements.txt
|
||||
|
||||
%build
|
||||
# Hpcombi is an x86-specific library that uses SSE and AVX instructions.
|
||||
# It is not currently available in Fedora, and we cannot assume the
|
||||
|
@ -188,6 +190,11 @@ LD_LIBRARY_PATH=$PWD/.libs make check
|
|||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Sat Feb 25 2023 Jerry James <loganjerry@gmail.com> - 2.6.1-1
|
||||
- Version 2.6.1
|
||||
- Dynamically generate python BuildRequires
|
||||
- Add -pessimizing-move patch
|
||||
|
||||
* Tue Feb 7 2023 Jerry James <loganjerry@gmail.com> - 2.6.0-1
|
||||
- Version 2.6.0
|
||||
|
||||
|
|
2
sources
2
sources
|
@ -1 +1 @@
|
|||
SHA512 (libsemigroups-2.6.0.tar.gz) = e975806c3e4b168edca297494bdb251042791fd4904db22523386c62afc1953348970ea9e27a32485f0d7db72a90213b3a4ac6aa67cb77fd6d669b6f45d33961
|
||||
SHA512 (libsemigroups-2.6.1.tar.gz) = 4607d2a9d163e97b6602870ee6466e4bad5fa88c668f8ac9105cc0aff0ecf09ff12636a0d926049c58e3958752e3c7bc779c605e94d2de7ee1fd8e5d64f0577d
|
||||
|
|
Loading…
Reference in New Issue