|
|
3235f92 |
%global srcname libNeuroML
|
|
|
3235f92 |
|
|
|
3235f92 |
%global _description \
|
|
|
3235f92 |
This package provides Python libNeuroML, for working with neuronal models \
|
|
|
3235f92 |
specified in NeuroML 2 (http://neuroml.org/neuromlv2). NeuroML provides an \
|
|
|
3235f92 |
object model for describing neuronal morphologies, ion channels, synapses and \
|
|
|
3235f92 |
3D network structure. Documentation is available at \
|
|
|
3235f92 |
http://readthedocs.org/docs/libneuroml/en/latest/
|
|
|
3235f92 |
|
|
|
3235f92 |
|
|
|
3235f92 |
Name: python-%{srcname}
|
|
|
17ddc47 |
Version: 0.2.50
|
|
|
fac7598 |
Release: 2%{?dist}
|
|
|
3235f92 |
Summary: Python libNeuroML for working with neuronal models specified in NeuroML
|
|
|
3235f92 |
|
|
|
3235f92 |
License: BSD
|
|
|
c61e01a |
URL: http://neuroml.org/
|
|
|
17ddc47 |
Source0: https://github.com/NeuralEnsemble/%{srcname}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
3235f92 |
# These require a mongodb db set up, so we disable them
|
|
|
c61e01a |
Patch0: %{srcname}-0.2.45-disable-mongodb-test.patch
|
|
|
3235f92 |
|
|
|
3235f92 |
BuildArch: noarch
|
|
|
3235f92 |
|
|
|
3235f92 |
%description
|
|
|
3235f92 |
%{_description}
|
|
|
3235f92 |
|
|
|
3235f92 |
%package -n python3-%{srcname}
|
|
|
3235f92 |
Summary: %{summary}
|
|
|
3235f92 |
BuildRequires: python3-devel
|
|
|
3235f92 |
BuildRequires: %{py3_dist lxml}
|
|
|
3235f92 |
BuildRequires: %{py3_dist nose}
|
|
|
3235f92 |
BuildRequires: %{py3_dist numpy}
|
|
|
3235f92 |
BuildRequires: %{py3_dist tables}
|
|
|
3235f92 |
BuildRequires: %{py3_dist jsonpickle}
|
|
|
3235f92 |
BuildRequires: %{py3_dist pymongo}
|
|
|
3235f92 |
BuildRequires: %{py3_dist sphinx}
|
|
|
fac7598 |
BuildRequires: %{py3_dist setuptools}
|
|
|
3235f92 |
Requires: %{py3_dist lxml}
|
|
|
3235f92 |
Requires: %{py3_dist numpy}
|
|
|
3235f92 |
Requires: %{py3_dist tables}
|
|
|
3235f92 |
Requires: %{py3_dist jsonpickle}
|
|
|
3235f92 |
Requires: %{py3_dist pymongo}
|
|
|
3235f92 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
3235f92 |
|
|
|
3235f92 |
%description -n python3-%{srcname}
|
|
|
3235f92 |
%{_description}
|
|
|
3235f92 |
|
|
|
3235f92 |
%package doc
|
|
|
3235f92 |
Summary: Documentation for %{srcname}
|
|
|
3235f92 |
|
|
|
3235f92 |
%description doc
|
|
|
3235f92 |
%{_description}
|
|
|
3235f92 |
|
|
|
3235f92 |
%prep
|
|
|
17ddc47 |
%autosetup -p 1 -n %{srcname}-%{version}
|
|
|
3235f92 |
|
|
|
3235f92 |
# remove shebang
|
|
|
3235f92 |
sed -i '1d' neuroml/nml/nml.py
|
|
|
3235f92 |
|
|
|
3235f92 |
# remove egg info
|
|
|
3235f92 |
rm -fv %{name}.egg-info
|
|
|
3235f92 |
|
|
|
c61e01a |
# correct end of line encoding
|
|
|
c61e01a |
sed -i 's/\r$//' neuroml/examples/test_files/tmp2.swc
|
|
|
c61e01a |
|
|
|
3235f92 |
%build
|
|
|
3235f92 |
%py3_build
|
|
|
3235f92 |
|
|
|
3235f92 |
# Make documentation
|
|
|
3235f92 |
pushd doc && \
|
|
|
3235f92 |
make html SPHINXBUILD=sphinx-build-3 && \
|
|
|
3235f92 |
rm _build/html/.buildinfo -fv && \
|
|
|
3235f92 |
popd || exit -1
|
|
|
3235f92 |
|
|
|
3235f92 |
%install
|
|
|
3235f92 |
%py3_install
|
|
|
3235f92 |
|
|
|
3235f92 |
%check
|
|
|
3235f92 |
nosetests-3
|
|
|
3235f92 |
|
|
|
3235f92 |
%files -n python3-%{srcname}
|
|
|
3235f92 |
%license LICENSE
|
|
|
3235f92 |
%doc README.md AUTHORS
|
|
|
3235f92 |
%{python3_sitelib}/%{srcname}-*.egg-info/
|
|
|
3235f92 |
%{python3_sitelib}/neuroml
|
|
|
3235f92 |
|
|
|
3235f92 |
%files doc
|
|
|
3235f92 |
%license LICENSE
|
|
|
3235f92 |
%doc README.md AUTHORS
|
|
|
3235f92 |
%doc neuroml/examples doc/_build/html/
|
|
|
3235f92 |
|
|
|
3235f92 |
%changelog
|
|
|
fac7598 |
* Thu Jun 25 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.50-2
|
|
|
fac7598 |
- Explicitly BR setuptools
|
|
|
fac7598 |
|
|
|
17ddc47 |
* Sun Jun 07 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.50-1
|
|
|
17ddc47 |
- Update to 0.2.50
|
|
|
17ddc47 |
|
|
|
39ecd31 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.2.47-6
|
|
|
39ecd31 |
- Rebuilt for Python 3.9
|
|
|
39ecd31 |
|
|
|
f5a5b81 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.47-5
|
|
|
f5a5b81 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
f5a5b81 |
|
|
|
ed78665 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.47-4
|
|
|
ed78665 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
ed78665 |
|
|
|
99ce4df |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.47-3
|
|
|
99ce4df |
- Rebuilt for Python 3.8
|
|
|
99ce4df |
|
|
|
18823d9 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.47-2
|
|
|
18823d9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
18823d9 |
|
|
|
c61e01a |
* Thu Apr 11 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.47-1
|
|
|
c61e01a |
- Update to 0.2.47
|
|
|
c61e01a |
- use github tar since pypi tar does not contain all required files
|
|
|
c61e01a |
|
|
|
e9acea1 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.45-6
|
|
|
e9acea1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
e9acea1 |
|
|
|
15917df |
* Sat Oct 27 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.45-5
|
|
|
15917df |
- Update to use conditional for spec uniformity
|
|
|
15917df |
|
|
|
3235f92 |
* Fri Oct 26 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.45-4
|
|
|
3235f92 |
- Correct license
|
|
|
3235f92 |
- Remove bcond
|
|
|
3235f92 |
- Remove hidden buildinfo file
|
|
|
3235f92 |
- Correct end of line encoding
|
|
|
3235f92 |
- Remove unneeded shebang (https://github.com/NeuralEnsemble/libNeuroML/issues/77)
|
|
|
3235f92 |
- Add missing requires
|
|
|
3235f92 |
|
|
|
3235f92 |
* Thu Oct 25 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.45-3
|
|
|
3235f92 |
- Correct doc build
|
|
|
3235f92 |
- Temporarily use bcond
|
|
|
3235f92 |
|
|
|
3235f92 |
* Thu Oct 25 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.45-2
|
|
|
3235f92 |
- Correct doc sub package name
|
|
|
3235f92 |
|
|
|
3235f92 |
* Thu Oct 25 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.45-1
|
|
|
3235f92 |
- Initial build
|