Blame python-jupyter-client.spec

Thomas Spura 19edb37
# Created by pyp2rpm-3.0.1
Thomas Spura 19edb37
%global pypi_name jupyter_client
Thomas Spura 19edb37
%global pypi_name_dash jupyter-client
Thomas Spura 19edb37
Thomas Spura 19edb37
Name:           python-%{pypi_name_dash}
09ed26c
Version:        5.2.3
0cbed06
Release:        4%{?dist}
Thomas Spura 19edb37
Summary:        Jupyter protocol implementation and client libraries
Thomas Spura 19edb37
Thomas Spura 19edb37
License:        BSD
Thomas Spura 19edb37
URL:            http://jupyter.org
Thomas Spura a13fc84
Source0:        https://files.pythonhosted.org/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Thomas Spura 19edb37
BuildArch:      noarch
Thomas Spura 19edb37
Thomas Spura 19edb37
BuildRequires:  python2-setuptools
Thomas Spura 19edb37
BuildRequires:  python2-devel
Thomas Spura 19edb37
Thomas Spura 19edb37
BuildRequires:  python3-setuptools
Thomas Spura 19edb37
BuildRequires:  python3-devel
Thomas Spura 19edb37
0cbed06
%bcond_without doc
c3b0978
c3b0978
%if %{with doc}
355d679
BuildRequires:  python3-sphinx
355d679
BuildRequires:  python3-sphinxcontrib-napoleon
355d679
BuildRequires:  python3-sphinxcontrib-github-alt
355d679
25c96c6
BuildRequires:  python3-dateutil
355d679
BuildRequires:  python3-traitlets
25c96c6
BuildRequires:  python3-ipykernel
355d679
BuildRequires:  python3-jupyter-core
355d679
BuildRequires:  python3-zmq >= 13
c3b0978
%endif
355d679
482e7fd
%?python_enable_dependency_generator
Thomas Spura 19edb37
Thomas Spura 19edb37
%description
Thomas Spura 19edb37
This package contains the reference implementation of the Jupyter protocol.
Thomas Spura 19edb37
It also provides client and kernel management APIs for working with kernels.
Thomas Spura 19edb37
Thomas Spura 19edb37
It also provides the `jupyter kernelspec` entrypoint for installing kernelspecs
Thomas Spura 19edb37
for use with Jupyter frontends.
Thomas Spura 19edb37
Thomas Spura 19edb37
%package -n     python2-%{pypi_name_dash}
Thomas Spura 19edb37
Summary:        Jupyter protocol implementation and client libraries
Thomas Spura 19edb37
%{?python_provide:%python_provide python2-%{pypi_name_dash}}
Thomas Spura 19edb37
522d895
# It fallbacks to ifconfig without this, and ifconfig is deprecated
522d895
Recommends:     python2-netifaces
522d895
Thomas Spura 19edb37
%description -n python2-%{pypi_name_dash}
Thomas Spura 19edb37
This package contains the reference implementation of the Jupyter protocol.
Thomas Spura 19edb37
It also provides client and kernel management APIs for working with kernels.
Thomas Spura 19edb37
Thomas Spura 19edb37
It also provides the `jupyter kernelspec` entrypoint for installing kernelspecs
Thomas Spura 19edb37
for use with Jupyter frontends.
Thomas Spura 19edb37
Thomas Spura 19edb37
%package -n     python3-%{pypi_name_dash}
Thomas Spura 19edb37
Summary:        Jupyter protocol implementation and client libraries
Thomas Spura 19edb37
%{?python_provide:%python_provide python3-%{pypi_name_dash}}
Thomas Spura 19edb37
522d895
# It fallbacks to ifconfig without this, and ifconfig is deprecated
522d895
Recommends:     python3-netifaces
522d895
Thomas Spura 19edb37
%description -n python3-%{pypi_name_dash}
Thomas Spura 19edb37
This package contains the reference implementation of the Jupyter protocol.
Thomas Spura 19edb37
It also provides client and kernel management APIs for working with kernels.
Thomas Spura 19edb37
Thomas Spura 19edb37
It also provides the `jupyter kernelspec` entrypoint for installing kernelspecs
Thomas Spura 19edb37
for use with Jupyter frontends.
Thomas Spura 19edb37
c3b0978
%if %{with doc}
Thomas Spura 19edb37
%package -n python-%{pypi_name_dash}-doc
Thomas Spura 19edb37
Summary:        Documentation of the Jupyter protocol reference implementation
Thomas Spura 19edb37
%description -n python-%{pypi_name_dash}-doc
Thomas Spura 19edb37
Documentation of the reference implementation of the Jupyter protocol
c3b0978
%endif
Thomas Spura 19edb37
Thomas Spura 19edb37
%prep
Thomas Spura 19edb37
%autosetup -n %{pypi_name}-%{version}
Thomas Spura 19edb37
Thomas Spura 19edb37
%build
Thomas Spura 19edb37
%py2_build
Thomas Spura 19edb37
%py3_build
c3b0978
c3b0978
%if %{with doc}
355d679
PYTHONPATH=build/lib/ sphinx-build-3 docs html
Thomas Spura 19edb37
# remove the sphinx-build leftovers
Thomas Spura 19edb37
rm -r html/.{doctrees,buildinfo}
09ed26c
# sphinx created this; it would put 3.X bytecode to py2 package
09ed26c
find build/lib/%{pypi_name} -name __pycache__ | xargs rm -rf
c3b0978
%endif
Thomas Spura 19edb37
Thomas Spura 19edb37
%install
Thomas Spura 19edb37
%py2_install
532c2b9
rm %{buildroot}%{_bindir}/*
Thomas Spura 19edb37
532c2b9
%py3_install
Thomas Spura 19edb37
09ed26c
Thomas Spura 19edb37
%global _docdir_fmt %{name}
Thomas Spura 19edb37
Thomas Spura 19edb37
%files -n python2-%{pypi_name_dash}
Thomas Spura 19edb37
%doc README.md
Thomas Spura 19edb37
%license COPYING.md
Thomas Spura 19edb37
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
Thomas Spura 19edb37
%{python2_sitelib}/%{pypi_name}/
Thomas Spura 19edb37
Thomas Spura 19edb37
%files -n python3-%{pypi_name_dash}
Thomas Spura 19edb37
%doc README.md
Thomas Spura 19edb37
%license COPYING.md
355d679
%{_bindir}/jupyter-kernel
Thomas Spura 19edb37
%{_bindir}/jupyter-kernelspec
355d679
%{_bindir}/jupyter-run
Thomas Spura 19edb37
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
Thomas Spura 19edb37
%{python3_sitelib}/%{pypi_name}/
Thomas Spura 19edb37
c3b0978
%if %{with doc}
Thomas Spura 19edb37
%files -n python-%{pypi_name_dash}-doc
Thomas Spura 19edb37
%doc html
c3b0978
%endif
Thomas Spura 19edb37
Thomas Spura 19edb37
%changelog
0cbed06
* Wed Jun 20 2018 Miro Hrončok <mhroncok@redhat.com> - 5.2.3-4
0cbed06
- Rebuilt for Python 3.7
0cbed06
1f44bbe
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 5.2.3-3
c3b0978
- Bootstrap for Python 3.7
fa83a17
09ed26c
* Wed Mar 14 2018 Miro Hrončok <mhroncok@redhat.com> - 5.2.3-1
09ed26c
- Updated to 5.2.3 (#1538378)
09ed26c
- Do not have 3.6 bytecode in 2.7 package
09ed26c
76827d8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-4
76827d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
76827d8
482e7fd
* Tue Jan 30 2018 Miro Hrončok <mhroncok@redhat.com> - 5.2.1-3
482e7fd
- Enable automatic dependency generator, drop manual Python requires
482e7fd
- Fixes missing dependency on dateutil
25c96c6
- Add missing BRs for docs
482e7fd
522d895
* Sun Jan 14 2018 Miro Hrončok <mhroncok@redhat.com> - 5.2.1-2
522d895
- Recommend netifaces (#1534203)
522d895
355d679
* Thu Jan 04 2018 Miro Hrončok <mhroncok@redhat.com> - 5.2.1-1
355d679
- Updated to 5.2.1 (#1425248)
355d679
- Use Python 3 to build the docs, add BR on python3-sphinxcontrib-github-alt
355d679
532c2b9
* Fri Sep 01 2017 Miro Hrončok <mhroncok@redhat.com> - 4.4.0-5
532c2b9
- Remove -2, -3, etc. executables (#1410332)
532c2b9
d11d11f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-4
d11d11f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d11d11f
1e6ce33
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-3
1e6ce33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1e6ce33
e4adac7
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 4.4.0-2
e4adac7
- Rebuild for Python 3.6
e4adac7
Thomas Spura a13fc84
* Mon Sep 26 2016 Thomas Spura <tomspur@fedoraproject.org> - 4.4.0-1
Thomas Spura a13fc84
- update to 4.4.0
Thomas Spura a13fc84
- Source0: use files.pythonhosted.org
Thomas Spura a13fc84
Thomas Spura 19edb37
* Mon Apr 25 2016 Thomas Spura <tomspur@fedoraproject.org> - 4.2.2-4
Thomas Spura 19edb37
- Use simpler docdir_fmt
Thomas Spura 19edb37
- Fix BR/R requires
Thomas Spura 19edb37
Thomas Spura 19edb37
* Tue Apr 19 2016 Thomas Spura <tomspur@fedoraproject.org> - 4.2.2-3
Thomas Spura 19edb37
- Fix docs generation (Zbigniew, #1327989)
Thomas Spura 19edb37
- Require python2- instead python- where possible
Thomas Spura 19edb37
Thomas Spura 19edb37
* Mon Apr 18 2016 Thomas Spura <tomspur@fedoraproject.org> - 4.2.2-2
Thomas Spura 19edb37
- Use dash in name
Thomas Spura 19edb37
- Adjust description
Thomas Spura 19edb37
- Use %%license
Thomas Spura 19edb37
Thomas Spura 19edb37
* Mon Apr 18 2016 Thomas Spura <tomspur@fedoraproject.org> - 4.2.2-1
Thomas Spura 19edb37
- Initial package.