|
 |
8065521 |
%bcond_without tests
|
|
 |
8065521 |
|
|
 |
8065521 |
%global pypi_name pyelectro
|
|
 |
8065521 |
|
|
 |
8065521 |
%global _description %{expand:
|
|
 |
8065521 |
Tool for analysis of electrophysiology in Python.
|
|
 |
8065521 |
|
|
 |
8065521 |
This package was originally developed by Mike Vella. This has been updated by
|
|
 |
8065521 |
Padraig Gleeson and others (and moved to NeuralEnsemble) to continue
|
|
 |
8065521 |
development of pyelectro and Neurotune for use in OpenWorm, Open Source Brain
|
|
 |
8065521 |
and other projects.}
|
|
 |
8065521 |
|
|
 |
8065521 |
Name: python-%{pypi_name}
|
|
 |
f4a4b77 |
Version: 0.1.10
|
|
 |
4956f00 |
Release: 3%{?dist}
|
|
 |
8065521 |
Summary: A library for analysis of electrophysiological data
|
|
 |
8065521 |
|
|
 |
8065521 |
License: BSD
|
|
 |
8065521 |
URL: https://github.com/NeuralEnsemble/%{pypi_name}
|
|
 |
f4a4b77 |
Source0: https://github.com/NeuralEnsemble/%{pypi_name}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
 |
8065521 |
|
|
 |
8065521 |
BuildArch: noarch
|
|
 |
8065521 |
|
|
 |
8065521 |
%{?python_enable_dependency_generator}
|
|
 |
8065521 |
|
|
 |
8065521 |
%description %_description
|
|
 |
8065521 |
|
|
 |
8065521 |
%package -n python3-%{pypi_name}
|
|
 |
8065521 |
Summary: %{summary}
|
|
 |
8065521 |
BuildRequires: python3-devel
|
|
 |
8065521 |
|
|
 |
8065521 |
# For documentation
|
|
 |
8065521 |
BuildRequires: %{py3_dist sphinx}
|
|
 |
8065521 |
BuildRequires: %{py3_dist scipy}
|
|
 |
8065521 |
BuildRequires: %{py3_dist numpy}
|
|
 |
ddaf215 |
BuildRequires: %{py3_dist mock}
|
|
 |
8065521 |
BuildRequires: %{py3_dist nose}
|
|
 |
8065521 |
|
|
 |
8065521 |
Requires: %{py3_dist scipy}
|
|
 |
8065521 |
Requires: %{py3_dist numpy}
|
|
 |
8065521 |
Requires: %{py3_dist matplotlib}
|
|
 |
f4a4b77 |
|
|
 |
8065521 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
 |
8065521 |
|
|
 |
8065521 |
%description -n python3-%{pypi_name} %_description
|
|
 |
8065521 |
|
|
 |
8065521 |
%package doc
|
|
 |
8065521 |
Summary: %{summary}
|
|
 |
8065521 |
|
|
 |
8065521 |
%description doc
|
|
 |
8065521 |
Documentation for %{name}.
|
|
 |
8065521 |
|
|
 |
8065521 |
%prep
|
|
 |
f4a4b77 |
%autosetup -n %{pypi_name}-%{version}
|
|
 |
8065521 |
rm -rf %{pypi_name}.egg-info
|
|
 |
8065521 |
|
|
 |
8065521 |
# Comment out to remove /usr/bin/env shebangs
|
|
 |
8065521 |
# Can use something similar to correct/remove /usr/bin/python shebangs also
|
|
 |
8065521 |
# find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';'
|
|
 |
8065521 |
|
|
 |
8065521 |
%build
|
|
 |
8065521 |
%py3_build
|
|
 |
8065521 |
|
|
 |
8065521 |
make -C doc SPHINXBUILD=sphinx-build-3 html
|
|
 |
8065521 |
rm -rf doc/_build/html/{.doctrees,.buildinfo} -vf
|
|
 |
8065521 |
|
|
 |
8065521 |
%install
|
|
 |
8065521 |
%py3_install
|
|
 |
8065521 |
|
|
 |
8065521 |
%check
|
|
 |
8065521 |
%if %{with tests}
|
|
 |
8065521 |
nosetests-%{python3_version}
|
|
 |
8065521 |
%endif
|
|
 |
8065521 |
|
|
 |
8065521 |
%files -n python3-%{pypi_name}
|
|
 |
8065521 |
%doc README.md
|
|
 |
8065521 |
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
 |
8065521 |
%{python3_sitelib}/%{pypi_name}
|
|
 |
8065521 |
|
|
 |
8065521 |
%files doc
|
|
 |
8065521 |
%doc doc/_build/html
|
|
 |
8065521 |
|
|
 |
8065521 |
%changelog
|
|
 |
4956f00 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.10-3
|
|
 |
4956f00 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
 |
4956f00 |
|
|
 |
f4a4b77 |
* Wed Dec 25 2019 Aniket Pradhan <major AT fedoraproject DOT org> - 0.1.10-1
|
|
 |
ddaf215 |
- Added mock back to the BuildRequires
|
|
 |
ddaf215 |
|
|
 |
ddaf215 |
* Wed Dec 25 2019 Aniket Pradhan <major AT fedoraproject DOT org> - 0.1.10-1
|
|
 |
f4a4b77 |
- Updated to v0.1.10
|
|
 |
f4a4b77 |
- Using a pre-defined release instead of a git commit
|
|
 |
f4a4b77 |
- Removed matplotlib and mock from BuildRequires
|
|
 |
f4a4b77 |
|
|
 |
f1fdc20 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.9-20190723git7a64bc7
|
|
 |
f1fdc20 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
 |
f1fdc20 |
|
|
 |
c5354dc |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.9-20190722git7a64bc7
|
|
 |
c5354dc |
- Rebuilt for Python 3.8
|
|
 |
c5354dc |
|
|
 |
66d8107 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-20190721git7a64bc7
|
|
 |
66d8107 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
 |
66d8107 |
|
|
 |
8065521 |
* Sat Jul 20 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.1.9-20190720git7a64bc7
|
|
 |
8065521 |
- Initial build
|