|
|
1ce0b26 |
%global srcname PyLEMS
|
|
|
1ce0b26 |
%global libname pylems
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
# Most tests try to download files from other github repos, so we cannot use them
|
|
|
1ce0b26 |
%global run_tests 0
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
%global _description \
|
|
|
1ce0b26 |
A LEMS (http://lems.github.io/LEMS) simulator written in Python which can be \
|
|
|
1ce0b26 |
used to run NeuroML2 (http://neuroml.org/neuroml2.php) models.
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
Name: python-%{srcname}
|
|
|
60400c4 |
Version: 0.5.1
|
|
|
5efbb59 |
Release: 2%{?dist}
|
|
|
1ce0b26 |
Summary: LEMS interpreter implemented in Python
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
License: LGPLv3
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
# Use github source. Pypi source does not include license and examples.
|
|
|
1ce0b26 |
URL: https://github.com/LEMS/%{libname}/
|
|
|
60400c4 |
Source0: %{url}/archive/v%{version}/%{libname}-%{version}.tar.gz
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
BuildArch: noarch
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
%description
|
|
|
1ce0b26 |
%{_description}
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
%package -n python3-%{srcname}
|
|
|
1ce0b26 |
Summary: %{summary}
|
|
|
1ce0b26 |
BuildRequires: python3-devel
|
|
|
1ce0b26 |
BuildRequires: %{py3_dist lxml}
|
|
|
2e193f2 |
BuildRequires: %{py3_dist setuptools}
|
|
|
1ce0b26 |
Requires: %{py3_dist lxml}
|
|
|
1ce0b26 |
Requires: %{py3_dist matplotlib}
|
|
|
1ce0b26 |
Requires: %{py3_dist numpy}
|
|
|
1ce0b26 |
%if %{run_tests}
|
|
|
1ce0b26 |
BuildRequires: %{py3_dist nose}
|
|
|
1ce0b26 |
%endif
|
|
|
1ce0b26 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
%description -n python3-%{srcname}
|
|
|
1ce0b26 |
%{_description}
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
%package doc
|
|
|
1ce0b26 |
Summary: %{summary}
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
%description doc
|
|
|
1ce0b26 |
%{_description}
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
%prep
|
|
|
9c4e184 |
%autosetup -n %{libname}-%{version}
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
# remove shebang
|
|
|
1ce0b26 |
sed -i '1d' lems/dlems/exportdlems.py
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
%build
|
|
|
1ce0b26 |
%py3_build
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
%install
|
|
|
1ce0b26 |
%py3_install
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
%check
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
%if %{run_tests}
|
|
|
1ce0b26 |
# From test*sh scripts in the source and .travis.yml
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
nosetests-3
|
|
|
1ce0b26 |
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} examples/apitest.py
|
|
|
1ce0b26 |
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} examples/apitest2.py
|
|
|
1ce0b26 |
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} examples/loadtest.py
|
|
|
1ce0b26 |
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} lems/dlems/exportdlems.py
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
%endif
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
%files -n python3-%{srcname}
|
|
|
1ce0b26 |
%license LICENSE.lesser
|
|
|
1ce0b26 |
%doc README.md
|
|
|
870eb5d |
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
|
|
|
1ce0b26 |
%{python3_sitelib}/lems
|
|
|
1ce0b26 |
%{_bindir}/%{libname}
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
%files doc
|
|
|
1ce0b26 |
%license LICENSE.lesser
|
|
|
1ce0b26 |
%doc README.md examples
|
|
|
1ce0b26 |
|
|
|
1ce0b26 |
%changelog
|
|
|
5efbb59 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-2
|
|
|
5efbb59 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
5efbb59 |
|
|
|
60400c4 |
* Fri Sep 04 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.5.1-1
|
|
|
60400c4 |
- Update to 0.5.1
|
|
|
60400c4 |
|
|
|
536ac5e |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-4
|
|
|
536ac5e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
536ac5e |
|
|
|
2e193f2 |
* Thu Jun 25 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.5.0-3
|
|
|
2e193f2 |
- Explicitly BR setuptools
|
|
|
2e193f2 |
|
|
|
58e57b8 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-2
|
|
|
58e57b8 |
- Rebuilt for Python 3.9
|
|
|
58e57b8 |
|
|
|
9c4e184 |
* Wed Apr 22 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.5.0-1
|
|
|
9c4e184 |
- Update to new release
|
|
|
9c4e184 |
- remove py2 bits
|
|
|
9c4e184 |
|
|
|
96d2cee |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.9.1-6
|
|
|
96d2cee |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
96d2cee |
|
|
|
ae63950 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.9.1-5
|
|
|
ae63950 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
ae63950 |
|
|
|
21200c8 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.9.1-4
|
|
|
21200c8 |
- Rebuilt for Python 3.8
|
|
|
21200c8 |
|
|
|
349a05f |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.9.1-3
|
|
|
349a05f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
349a05f |
|
|
|
ff812ae |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.9.1-2
|
|
|
ff812ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
ff812ae |
|
|
|
1ce0b26 |
* Sat Oct 27 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.4.9.1-1
|
|
|
1ce0b26 |
- Initial build
|