## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; 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 %global desc %{expand: \ PyEMD is a Python wrapper for Ofir Pele and Michael Werman's implementation of the Earth Mover's Distance that allows it to be used with NumPy. If you use this code, please cite the papers listed in the README.rst file.} Name: python-pyemd Version: 1.0.0 Release: %autorelease Summary: Fast EMD for Python License: MIT URL: https://github.com/wmayner/pyemd Source0: %{pypi_source pyemd} %description %{desc} %package -n python3-pyemd Summary: %{summary} BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: python3-devel BuildRequires: %{py3_dist pytest} %description -n python3-pyemd %{desc} %prep %autosetup -n pyemd-%{version} # don't install dev files sed -i 's/include_package_data=True/include_package_data=False/' setup.py # use numpy, not oldest-supported-numpy sed -i 's/oldest-supported-numpy/numpy/' pyproject.toml sed -i '/\/usr\/bin\/env python3/ d' src/pyemd/__init__.py sed -i '/\/usr\/bin\/env python3/ d' src/pyemd/emd.pyx %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files pyemd %check export PYTHONPATH=%{buildroot}/%{python3_sitearch} %{pytest} %files -n python3-pyemd -f %{pyproject_files} %doc README.rst %changelog ## START: Generated by rpmautospec * Fri Jan 26 2024 Fedora Release Engineering - 1.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 1.0.0-2 - Rebuilt for Python 3.12 * Tue Feb 28 2023 Ankur Sinha (Ankur Sinha Gmail) - 1.0.0-1 - feat: update to 1.0.0 (fixes rhbz#2173484) * Tue Feb 28 2023 Ankur Sinha (Ankur Sinha Gmail) - 0.5.1-20 - chore: use pyproject macros * Fri Jan 20 2023 Fedora Release Engineering - 0.5.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.5.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.5.1-14 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.5.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.5.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.5.1-11 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.5.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.5.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 25 2020 Ankur Sinha - 0.5.1-8 - Remove py2 bits - Explicitly BR setuptools * Tue May 26 2020 Miro Hrončok - 0.5.1-7 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.5.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.5.1-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.5.1-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Nov 14 2018 Ankur Sinha - 0.5.1-1 - Initial package - use {buildroot} - BRs one per line ## END: Generated by rpmautospec