## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## 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 # 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 doc_pdf 1 Name: python-lazyarray Version: 0.6.0 Release: %autorelease Summary: A lazily-evaluated numerical array class # Upstream did not tag release 0.6.0 in the GitHub repo. We use the # commit corresponding to the release for getting the sources incl. # the required bits for the docs missing from the sdist. # Adjust / remove as needed for upcoming releases. %global forgeurl https://github.com/NeuralEnsemble/lazyarray %global commit 61d5f9853163a9ce2e5aeca82b37dd5794e22c7b %forgemeta License: BSD-3-Clause URL: %{forgeurl} Source: %{forgesource} BuildArch: noarch BuildRequires: python3-devel 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 # 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='-j%{?_smp_build_ncpus}' %make_build -C doc/_build/latex LATEXMKOPTS='-quiet' %endif %install %pyproject_install %pyproject_save_files -l lazyarray %check %{pytest} %files -n python3-lazyarray -f %{pyproject_files} %doc changelog.txt README.rst %files docs %license LICENSE %if %{with doc_pdf} %doc doc/_build/latex/lazyarray.pdf %endif %changelog ## START: Generated by rpmautospec * Sun Oct 20 2024 Sandro - 0.6.0-1 - Update to 0.6.0 (RHBZ#2310265) * Wed Sep 04 2024 Miroslav Suchý - 0.5.2-15 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 0.5.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 0.5.2-13 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.5.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.5.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jan 03 2024 Benjamin A. Beasley - 0.5.2-10 - Assert that the .dist-info directory contains a license file * Fri Jul 21 2023 Fedora Release Engineering - 0.5.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 0.5.2-5 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.5.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 0.5.2-2 - Rebuilt for Python 3.11 * Wed Feb 02 2022 Vanessa_kris - 0.5.2-1 - update to latest release v0.5.2 * Wed Feb 02 2022 Vanessa_kris - 0.5.1-3 - removed all patches * Fri Jan 21 2022 Fedora Release Engineering - 0.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Dec 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 ## END: Generated by rpmautospec