## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## 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 # Require network, so run locally on mock with --enable-network %bcond_with tests %global forgeurl https://github.com/LEMS/pylems/ %global _description \ A LEMS (http://lems.github.io/LEMS) simulator written in Python which can be \ used to run NeuroML2 (http://neuroml.org/neuroml2.php) models. Name: python-PyLEMS Version: 0.6.7 Release: %autorelease Summary: LEMS interpreter implemented in Python %forgemeta License: LGPL-3.0-only # Use github source. Pypi source does not include license and examples. URL: %{forgeurl} Source0: %{forgesource} # Generate man page for pylems # help2man -n "LEMS interpreter implemented in Python" --version-string="0.5.9" -N pylems -S "https://lems.github.io" -o pylems.1 # Sent upstream: https://github.com/LEMS/pylems/pull/64 BuildArch: noarch %description %{_description} %package -n python3-PyLEMS Summary: %{summary} BuildRequires: python3-devel %if %{with tests} BuildRequires: %{py3_dist pytest} %endif %description -n python3-PyLEMS %{_description} %package doc Summary: %{summary} %description doc %{_description} %prep %forgeautosetup # remove shebang sed -i '1d' lems/dlems/exportdlems.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l lems install -p -m 0644 -D -t $RPM_BUILD_ROOT/%{_mandir}/man1/ man/man1/*.1 %check %if %{with tests} # A lot of the tests use files from other software repositories, so we can't use them. %{pytest} PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} examples/apitest.py PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} examples/apitest2.py PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} examples/loadtest.py %endif %files -n python3-PyLEMS -f %{pyproject_files} %{_bindir}/pylems %{_mandir}/man1/pylems.1* %files doc %license LICENSE.lesser %doc README.md examples %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 0.6.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.6.7-4 - Rebuilt for Python 3.13 * Fri Mar 22 2024 Sandro - 0.6.7-3 - Add Packit config * Fri Mar 22 2024 Sandro - 0.6.7-2 - Assert existence of license file * Fri Mar 22 2024 Sandro - 0.6.7-1 - Update to 0.6.7 (RHBZ#2267096) * Fri Mar 22 2024 Sandro - 0.6.4-4 - Use the forge, Luke! * Fri Jan 26 2024 Fedora Release Engineering - 0.6.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.6.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Sep 10 2023 Ankur Sinha (Ankur Sinha Gmail) - 0.6.4-1 - feat: update to 0.6.4 (fixes rh#2216868) * Sat Aug 07 2021 Ankur Sinha - 0.5.4-1 - Update to latest release * Fri Jul 23 2021 Fedora Release Engineering - 0.5.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.5.2-2 - Rebuilt for Python 3.10 * Thu Feb 18 2021 Ankur Sinha - 0.5.2-1 - Update to latest release * Wed Jan 27 2021 Fedora Release Engineering - 0.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Sep 04 2020 Ankur Sinha - 0.5.1-1 - Update to 0.5.1 * Tue Jul 28 2020 Fedora Release Engineering - 0.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 25 2020 Ankur Sinha - 0.5.0-3 - Explicitly BR setuptools * Tue May 26 2020 Miro Hrončok - 0.5.0-2 - Rebuilt for Python 3.9 * Wed Apr 22 2020 Ankur Sinha - 0.5.0-1 - Update to new release - remove py2 bits * Thu Jan 30 2020 Fedora Release Engineering - 0.4.9.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.4.9.1-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.4.9.1-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.4.9.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.4.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Oct 27 2018 Ankur Sinha - 0.4.9.1-1 - Initial build ## END: Generated by rpmautospec