## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Sphinx-generated HTML documentation is not suitable for packaging; see # https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion. # # We can generate PDF documentation as a substitute. %bcond_without doc_pdf %global forgeurl https://github.com/NeuralEnsemble/lazyarray # Upstream failed to tag release 0.5.1: %global commit 4597707dfc92c2681442059ed9e871cc762e78d6 Name: python-lazyarray Version: 0.5.1 %forgemeta Release: %autorelease Summary: A lazily-evaluated numerical array class License: BSD URL: %{forgeurl} # The GitHub archive contains documentation build files that are not in the # PyPI archive. Source0: %{forgesource} # Fix for py3.10 deprecations in collections # Fix sent upstream: https://github.com/NeuralEnsemble/lazyarray/pull/14 # Rebased on 0.5.1 in # https://github.com/musicinmybrain/lazyarray/tree/fix/py3.10 Patch0: https://github.com/musicinmybrain/lazyarray/commit/7b369448b27980a9a9bd919a85389c42b81baef8.patch # Move to pytest # Fix sent upstream: https://github.com/NeuralEnsemble/lazyarray/pull/15 # Rebased on 0.5.1 in # https://github.com/musicinmybrain/lazyarray/tree/feat/pytest Patch1: https://github.com/musicinmybrain/lazyarray/commit/119981d8d88664c6335b6001d4e9ee711c7aa161.patch Patch2: https://github.com/musicinmybrain/lazyarray/commit/63a4ec479e737f10e252a179904f25217c152bce.patch Patch3: https://github.com/musicinmybrain/lazyarray/commit/1f2e0dbf89790505cb54eb649966ca02b1ad0742.patch BuildArch: noarch BuildRequires: %{py3_dist pytest} # Optional dependency, used in tests BuildRequires: %{py3_dist scipy} %if %{with doc_pdf} BuildRequires: make BuildRequires: python3dist(sphinx) BuildRequires: python3-sphinx-latex BuildRequires: latexmk BuildRequires: /usr/bin/xindy BuildRequires: tex-xetex-bin %endif %global _description %{expand: lazyarray is a Python package that provides a lazily-evaluated numerical array class, larray, based on and compatible with NumPy arrays. Lazy evaluation means that any operations on the array (potentially including array construction) are not performed immediately, but are delayed until evaluation is specifically requested. Evaluation of only parts of the array is also possible. Use of an larray can potentially save considerable computation time and memory in cases where: • arrays are used conditionally (i.e. there are cases in which the array is never used) • only parts of an array are used (for example in distributed computation, in which each MPI node operates on a subset of the elements of the array) Documentation: http://lazyarray.readthedocs.org} %description %_description %package -n python3-lazyarray Summary: A lazily-evaluated numerical array class BuildRequires: python3-devel # We don’t need a Recommends for the optional scipy dependency, because its # only value is to enable support for scipy sparse arrays. Programs that use # those will already need to depend on scipy directly. %description -n python3-lazyarray %_description %package docs Summary: Documentation for %{name} BuildArch: noarch %description docs This package contains generated HTML documentation for %{name}. %prep %forgeautosetup -p1 # Since pdflatex cannot handle Unicode inputs in general: echo "latex_engine = 'xelatex'" >> doc/conf.py %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %if %{with doc_pdf} %make_build -C doc latex SPHINXBUILD='sphinx-build' SPHINXOPTS='%{?_smp_mflags}' %make_build -C doc/_build/latex %endif %install %pyproject_install %pyproject_save_files lazyarray %check %{pytest} %files -n python3-lazyarray -f %{pyproject_files} # pyproject-rpm-macros takes care of LICENSE; verify with “rpm -qL -p …” %doc changelog.txt README.rst %files docs %license LICENSE %if %{with doc_pdf} %doc doc/_build/latex/lazyarray.pdf %endif %changelog * dim. déc. 05 2021 Benjamin A. Beasley 0.5.1-1 - Update to 0.5.1 (close RHBZ#2028033) * Wed Nov 10 2021 Benjamin A. Beasley - 0.5.0-1 - Update to 0.5.0 (close RHBZ#2021554) - Switch to pyproject-rpm-macros (“new guidelines”) - Switch to GitHub archive to avoid needing additional sources - Build documentation as PDF instead of HTML (see RHBZ#2006555) * Fri Jul 23 2021 Fedora Release Engineering - 0.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.4.0-2 - Rebuilt for Python 3.10 * Sat May 22 2021 Ankur Sinha - 0.4.0-1 - Update to latest release - Include patch for py3.10 fix - use pytest * Wed Jan 27 2021 Fedora Release Engineering - 0.3.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Jan 09 2021 Ankur Sinha - 0.3.4-1 - Update to latest release * Wed Jul 29 2020 Fedora Release Engineering - 0.3.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.3.2-7 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.3.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.3.2-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.3.2-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.3.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Dec 06 2018 Ankur Sinha - 0.3.2-1 - Update to latest version - Use conditional to provide py2 builds when required - Remove duplicated doc package - minor cosmetic spec tweaks * Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek - 0.2.8-13 - Subpackage python2-lazyarray has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 0.2.8-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.2.8-11 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.2.8-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 25 2018 Iryna Shcherbina - 0.2.8-9 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.2.8-8 - Python 2 binary package renamed to python2-lazyarray See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 0.2.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.2.8-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.2.8-5 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.2.8-4 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Tue Mar 08 2016 Ankur Sinha 0.2.8-3 - Provide python2 package * Tue Mar 08 2016 Ankur Sinha 0.2.8-2 - Update doc config - Disable test - issue filed upstream * Tue Mar 08 2016 Ankur Sinha 0.2.8-1 - Update to latest upstream release * Thu Feb 04 2016 Fedora Release Engineering - 0.2.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 0.2.7-5 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 0.2.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Oct 08 2014 Ankur Sinha 0.2.7-3 - Correct nosetest3* usage * Wed Oct 08 2014 Ankur Sinha 0.2.7-2 - Make nosetest for py3 a wildcard * Wed Oct 08 2014 Ankur Sinha 0.2.7-1 - Split documentation to separate sub package * Tue Oct 07 2014 Ankur Sinha 0.2.7-1 - Added tests - Corrected file lists - Added docs * Tue Oct 07 2014 Ankur Sinha 0.2.7-1 - Initial rpm build