## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %undefine __cmake_in_source_build Name: xtensor Version: 0.25.0 Release: %autorelease Summary: C++ tensors with broadcasting and lazy computing # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: http://xtensor.readthedocs.io/ %global github https://github.com/QuantStack/xtensor Source0: %{github}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: gtest-devel BuildRequires: xtl-devel BuildRequires: xsimd-devel BuildRequires: python3-numpy BuildRequires: doctest-devel BuildRequires: json-devel # there is no actual arched content - this is a header only library %global debug_package %{nil} %global _description %{expand: xtensor is a C++ library meant for numerical analysis with multi-dimensional array expressions. xtensor provides: - an extensible expression system enabling lazy broadcasting. - an API following the idioms of the C++ standard library. - tools to manipulate array expressions and build upon xtensor.} %description %_description %package devel Summary: %{summary} Provides: %{name} = %{version}-%{release} Provides: %{name}-static = %{version}-%{release} Requires: xtl-devel Requires: xsimd-devel %description devel %_description %prep %autosetup -p1 %ifarch s390x find -name '*.npy' -exec %{__python3} -c "import numpy as np; np.save('{}', np.load('{}').byteswap().newbyteorder())" \; %endif %build %cmake -DBUILD_TESTS=ON %cmake_build %install %cmake_install %check %cmake_build --target xtest %files devel %doc README.md %license LICENSE %{_includedir}/%{name}.hpp %{_includedir}/%{name}/ %{_datadir}/cmake/%{name}/ %{_datadir}/pkgconfig/%{name}.pc %changelog ## START: Generated by rpmautospec * Wed Sep 04 2024 Miroslav Suchý - 0.25.0-3 - convert license to SPDX * Sat Jul 20 2024 Fedora Release Engineering - 0.25.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jan 29 2024 Fedora Release Engineering - 0.24.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jul 22 2023 Fedora Release Engineering - 0.24.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jan 21 2023 Fedora Release Engineering - 0.24.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 0.24.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed May 11 2022 sguelton@redhat.com - 0.24.2-1 - Upstream version bump * Sat Jan 22 2022 Fedora Release Engineering - 0.23.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.23.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Feb 15 2021 sguelton@redhat.com - 0.23.1-1 - Upstream version bump - More generic use of %cmake_build * Thu Jan 28 2021 Fedora Release Engineering - 0.21.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Oct 06 2020 sguelton@redhat.com - 0.21.7-3 - Activate all architectures, fixing the remaining issues in the test suite * Mon Oct 05 2020 sguelton@redhat.com - 0.21.7-2 - Fix UB in upstream testsuite, see https://github.com/xtensor-stack/xtensor/pull/2175 - Activates armv7hl * Sat Oct 3 2020 sguelton@redhat.com - 0.21.7-1 - Upstream version bump * Wed Jul 29 2020 Fedora Release Engineering - 0.21.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 16 2020 sguelton@redhat.com - 0.21.2-1 - Upstream version bump * Tue Sep 3 2019 sguelton@redhat.com - 0.20.8-1 - Initial package ## END: Generated by rpmautospec