## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-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*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-niapy Version: 2.6.1 Release: %autorelease Summary: Micro framework for building nature-inspired algorithms License: MIT URL: https://github.com/NiaOrg/NiaPy Source: %{url}/archive/v%{version}/NiaPy-%{version}.tar.gz # Tidy up some minutiae in the examples # # Remove executable permissions from examples/run_all.sh: it does not have a # shebang line, so having the execute bit set is useless. # # Convert examples/run_loa form CRLF line terminations (DOS/Windows style) to # UNIX-style, to match the other files in the project. # # https://github.com/NiaOrg/NiaPy/pull/742 Patch: %{url}/pull/742.patch BuildSystem: pyproject BuildOption(install): -L niapy BuildArch: noarch # setup.py: tests_require (also includes unwanted coverage/linting/etc. deps.) # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters BuildRequires: %{py3_dist pytest} %global _description %{expand: Nature-inspired algorithms are a very popular tool for solving optimization problems. Numerous variants of nature-inspired algorithms have been developed since the beginning of their era. To prove their versatility, those were tested in various domains on various applications, especially when they are hybridized, modified or adapted. However, implementation of nature-inspired algorithms is sometimes a difficult, complex and tedious task. In order to break this wall, NiaPy is intended for simple and quick use, without spending time for implementing algorithms from scratch.} %description %_description %package -n python3-niapy Summary: %{summary} # The -doc subpackage was merged into python3-niapy for simplicity. Provides: python-niapy-doc = %{version}-%{release} Obsoletes: python-niapy-doc < 2.5.2-10 %description -n python3-niapy %_description %prep %autosetup -n NiaPy-%{version} -p1 # - Don’t bound the version of Python. We must use the system interpreter. # - Convert SemVer pins to minimum versions, since we can’t generally respect # the upper bounds in Fedora. sed -r -i -e 's/^python ?=/# &/' -e 's/([^#]+ ?= ?")\^/\1>=/' pyproject.toml %check -a %pytest -ra -k "${k-}" %files -n python3-niapy -f %{pyproject_files} %license LICENSE %doc Algorithms.md %doc CHANGELOG.md %doc CITATION.cff %doc Problems.md %doc README.md %doc examples/ %doc paper/ %changelog ## START: Generated by rpmautospec * Fri Dec 05 2025 Benjamin A. Beasley - 2.6.1-1 - Update to 2.6.1 (close RHBZ#2416346) * Fri Dec 05 2025 Benjamin A. Beasley - 2.6.0-1 - Update to 2.6.0 * Fri Dec 05 2025 Benjamin A. Beasley - 2.5.2-17 - Updated description and Summary from upstream * Fri Dec 05 2025 Benjamin A. Beasley - 2.5.2-15 - Use the pyproject declarative buildsystem * Fri Dec 05 2025 Benjamin A. Beasley - 2.5.2-13 - No longer remove all dependency version bounds - Convert SemVer pins to minimum versions * Fri Dec 05 2025 Benjamin A. Beasley - 2.5.2-11 - Fix some nit-picks in the examples * Fri Dec 05 2025 Benjamin A. Beasley - 2.5.2-10 - Merge -doc into the main library package * Fri Dec 05 2025 Benjamin A. Beasley - 2.5.2-9 - Drop Markdown docs that are about interacting with upstream * Fri Sep 19 2025 Python Maint - 2.5.2-7 - Rebuilt for Python 3.14.0rc3 bytecode * Mon Sep 08 2025 Sandro - 2.5.2-6 - Drop dependency on toml-adapt * Fri Aug 15 2025 Python Maint - 2.5.2-5 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 2.5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jun 03 2025 Python Maint - 2.5.2-3 - Rebuilt for Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering - 2.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sun Jan 12 2025 Benjamin A. Beasley - 2.5.2-1 - Update to 2.5.2 - A patch for numpy 2 compatibility is now present in the release. * Thu Dec 26 2024 Sandro - 2.5.1-2 - Apply patch for NumPy 2.x * Sun Nov 24 2024 Iztok Fister Jr. - 2.5.1-1 - Update to 2.5.1 * Fri Jul 19 2024 Fedora Release Engineering - 2.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 2.3.1-2 - Rebuilt for Python 3.13 * Sun May 19 2024 Iztok Fister Jr. - 2.3.1-1 - Update to 2.3.1 * Fri Jan 26 2024 Fedora Release Engineering - 2.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 04 2024 Benjamin A. Beasley - 2.1.0-3 - Add missing LICENSE file * Wed Dec 20 2023 Iztok Fister Jr. - 2.1.0-1 - Update to 2.1.0 * Fri Jul 21 2023 Fedora Release Engineering - 2.0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 28 2023 Python Maint - 2.0.5-2 - Rebuilt for Python 3.12 * Mon Mar 27 2023 Iztok Fister Jr. - 2.0.5-1 - Upgrade to 2.0.5 * Fri Jan 20 2023 Fedora Release Engineering - 2.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Nov 23 2022 Iztok Fister Jr. - 2.0.4-1 - Upgrade to 2.0.4 * Sun Sep 4 2022 Iztok Fister Jr. - 2.0.3-1 - Upgrade to 2.0.3 * Fri Jul 22 2022 Fedora Release Engineering - 2.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 15 2022 Python Maint - 2.0.2-3 - Rebuilt for Python 3.11 * Mon May 23 2022 Iztok Fister Jr. - 2.0.2-2 - Improve description of package * Sun May 22 2022 Iztok Fister Jr. - 2.0.2-1 - Update to the latest upstream's release * Sat Mar 5 2022 Iztok Fister Jr. - 2.0.1-1 - Update to the latest upstream's release * Fri Jan 21 2022 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Dec 31 2021 Iztok Fister Jr. - 2.0.0-1 - Update to the latest upstream's release (second stable release) * Mon Nov 29 2021 Benjamin A. Beasley - 2.0.0-0.3rc18 - Port to pyproject-rpm-macros (“new guidelines”) - Drop HTML documentation - Stop skipping tests; they all pass now * Wed Aug 18 2021 Iztok Fister Jr. - 2.0.0-0.1rc18 - Update to the latest upstream's release - rc18 * Fri Jul 23 2021 Fedora Release Engineering - 2.0.0-0.2rc17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 11 2021 Iztok Fister Jr. - 2.0.0-0.1rc17 - Update to the latest upstream's release - rc17 - Remove patch * Fri Jun 04 2021 Python Maint - 2.0.0-0.2rc16 - Rebuilt for Python 3.10 * Wed May 26 2021 Iztok Fister Jr. - 2.0.0-0.1rc16 - Update to the latest upstream's release - rc16 * Fri May 21 2021 Iztok Fister Jr. - 2.0.0-0.2rc15 - Add additional doc files found in repository to docs * Sat May 15 2021 Iztok Fister Jr. - 2.0.0-0.1rc15 - Update to the latest upstream's release - rc15 * Fri Apr 23 2021 Iztok Fister Jr. - 2.0.0-0.2rc14 - Removing sed commands - dependencies already removed - Added JOSS paper in documents * Fri Apr 23 2021 Iztok Fister Jr. - 2.0.0-0.1rc14 - New version of package * Thu Apr 15 2021 Iztok Fister Jr. - 2.0.0-0.5rc13 - Add examples in subpackage * Tue Apr 6 2021 Iztok Fister Jr. - 2.0.0-0.4rc13 - Install additional docs * Tue Mar 23 2021 Iztok Fister Jr. - 2.0.0-0.3rc13 - Skip one test (it is failing from time to time, because of random) * Fri Mar 19 2021 Iztok Fister Jr. - 2.0.0-0.2rc13 - Remove dependency generator - Conditional imports for tests * Wed Mar 10 2021 Iztok Fister Jr. - 2.0.0-0.1rc13 - New version * Thu Feb 11 2021 Iztok Fister Jr. - 2.0.0-0.5rc12 - Removing linter errors and typos * Wed Jan 27 2021 Fedora Release Engineering - 2.0.0-0.4rc12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Dec 4 2020 Iztok Fister Jr. - 2.0.0-0.3rc12 - New release - 2.0.0rc12 - Remove dependencies - xlwt, xlsxwriter - New dependency - openpyxl * Fri Nov 20 2020 Iztok Fister Jr. - 2.0.0-0.1rc11 - New release - 2.0.0rc11 * Wed Jul 29 2020 Fedora Release Engineering - 2.0.0-0.2rc10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jul 02 2020 Ankur Sinha - 2.0.0-0.1rc10 - Remove dep on enum34 - Add python_provides for F32 * Sat Jun 27 2020 Ankur Sinha - 1.0.2-1 - Initial package ## END: Generated by rpmautospec