## 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 %bcond tests 1 # 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 %global _description %{expand: sklearn-genetic is a genetic feature selection module for scikit-learn. Genetic algorithms mimic the process of natural selection to search for optimal values of a function.} Name: python-sklearn-genetic Version: 0.6.0 Release: %autorelease Summary: A genetic feature selection module for scikit-learn License: LGPL-3.0-only URL: https://github.com/manuel-calzolari/sklearn-genetic Source: %{url}/archive/%{version}/sklearn-genetic-%{version}.tar.gz BuildArch: noarch %description %_description %package -n python3-sklearn-genetic Summary: %{summary} BuildRequires: make BuildRequires: python3-devel %if %{with tests} BuildRequires: python3dist(pytest) %endif %description -n python3-sklearn-genetic %_description %package doc Summary: %{summary} %if %{with doc_pdf} BuildRequires: make BuildRequires: python3-sphinx-latex BuildRequires: latexmk BuildRequires: %{py3_dist sphinx} BuildRequires: %{py3_dist sphinx-rtd-theme} BuildRequires: %{py3_dist sphinxcontrib-bibtex} %endif %description doc Documentation for %{name}. %prep %autosetup -n sklearn-genetic-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %if %{with doc_pdf} %make_build -C docs latex SPHINXOPTS='-j%{?_smp_build_ncpus}' %make_build -C docs/build/latex LATEXMKOPTS='-quiet' %endif %install %pyproject_install %pyproject_save_files -l genetic_selection %check %if %{with tests} %pytest %endif %files -n python3-sklearn-genetic -f %{pyproject_files} %doc README.rst %files doc %license LICENSE.txt %if %{with doc_pdf} %doc docs/build/latex/sklearn-genetic.pdf %endif %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 0.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 0.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Benjamin A. Beasley - 0.6.0-1 - Update to 0.6.0 (close RHBZ#2259332) * Wed Aug 23 2023 Benjamin A. Beasley - 0.5.1^20230819git12ee9b2-1 - Fix compatibility with numpy 1.20 and later and with modern scikit-learn - Convert License to SPDX * Fri Jul 21 2023 Fedora Release Engineering - 0.5.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Jul 16 2023 Python Maint - 0.5.1-5 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 05 2022 Python Maint - 0.5.1-2 - Rebuilt for Python 3.11 * Sun Apr 10 2022 Iztok Fister Jr. - 0.5.1-1 - Initial package ## END: Generated by rpmautospec