13fe38f
%global pypi_name spyder-kernels
13fe38f
13fe38f
Name:           python-%{pypi_name}
c4b3334
Version:        0.2.4
fb70e53
Release:        2%{?dist}
c4b3334
Epoch:          1
13fe38f
Summary:        Jupyter kernels for the Spyder console
13fe38f
13fe38f
License:        MIT
13fe38f
URL:            https://github.com/spyder-ide/spyder-kernels
13fe38f
Source0:        https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
13fe38f
BuildArch:      noarch
13fe38f
13fe38f
BuildRequires:  python2-devel
13fe38f
BuildRequires:  python2dist(cloudpickle)
13fe38f
BuildRequires:  python2dist(ipykernel)
13fe38f
BuildRequires:  python2dist(setuptools)
13fe38f
13fe38f
BuildRequires:  python3-devel
13fe38f
BuildRequires:  python3dist(cloudpickle)
13fe38f
BuildRequires:  python3dist(ipykernel)
13fe38f
BuildRequires:  python3dist(setuptools)
13fe38f
13fe38f
# for tests
13fe38f
# python2
13fe38f
BuildRequires:  python2dist(pandas)
13fe38f
BuildRequires:  python2dist(pytest)
13fe38f
BuildRequires:  python2dist(numpy)
13fe38f
# python3
13fe38f
BuildRequires:  python3dist(pandas)
13fe38f
BuildRequires:  python3dist(pytest)
13fe38f
BuildRequires:  python3dist(numpy)
13fe38f
13fe38f
%description
13fe38f
This package provides jupyter kernels used by spyder on its IPython console.
13fe38f
13fe38f
%package -n     python2-%{pypi_name}
13fe38f
Summary:        %{summary}
13fe38f
%{?python_provide:%python_provide python2-%{pypi_name}}
13fe38f
13fe38f
Requires:       python2dist(cloudpickle)
13fe38f
Requires:       python2dist(ipykernel)
13fe38f
13fe38f
%description -n python2-%{pypi_name}
13fe38f
This package provides python2 version of jupyter kernels used by spyder on its
13fe38f
 IPython console.
13fe38f
13fe38f
13fe38f
%package -n     python3-%{pypi_name}
13fe38f
Summary:        %{summary}
13fe38f
%{?python_provide:%python_provide python3-%{pypi_name}}
13fe38f
13fe38f
Requires:       python3dist(cloudpickle)
13fe38f
Requires:       python3dist(ipykernel)
13fe38f
13fe38f
%description -n python3-%{pypi_name}
13fe38f
This package provides python3 version of jupyter kernels used by spyder on its
13fe38f
 IPython console.
13fe38f
13fe38f
13fe38f
%prep
13fe38f
%autosetup -n %{pypi_name}-%{version}
13fe38f
rm -rf %{pypi_name}.egg-info
13fe38f
13fe38f
%build
13fe38f
%py2_build
13fe38f
%py3_build
13fe38f
13fe38f
%install
13fe38f
%py2_install
13fe38f
%py3_install
13fe38f
13fe38f
%check
13fe38f
%{__python2} setup.py test
13fe38f
%{__python3} setup.py test
13fe38f
13fe38f
%files -n python2-%{pypi_name}
13fe38f
%license LICENSE
13fe38f
%doc README.md
13fe38f
%{python2_sitelib}/spyder_kernels
13fe38f
%{python2_sitelib}/spyder_kernels-%{version}-py?.?.egg-info
13fe38f
13fe38f
%files -n python3-%{pypi_name}
13fe38f
%license LICENSE
13fe38f
%doc README.md
13fe38f
%{python3_sitelib}/spyder_kernels
13fe38f
%{python3_sitelib}/spyder_kernels-%{version}-py?.?.egg-info
13fe38f
13fe38f
%changelog
fb70e53
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.2.4-2
fb70e53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fb70e53
c4b3334
* Tue Jul 10 2018 Mukundan Ragavan <nonamedotc@gmail.com> - 1:0.2.4-1
c4b3334
- version 0.2.4 (required for spyder 3.3.0)
c4b3334
13fe38f
* Sun Jul 08 2018 Mukundan Ragavan <nonamedotc@gmail.com> - 1.0.1-1
13fe38f
- Initial package for review