%define pypi_name nbformat Name: jupyter-nbformat Version: 4.0.1 Release: %mkrel 1 Group: Development/Python Summary: Jupyter Notebook format (tools) License: BSD URL: http://jupyter.org/ Source0: https://pypi.python.org/packages/source/n/%{pypi_name}/%{pypi_name}-%{version}.tar.gz Patch0: 0001-use-setuptools-for-everything-so-the-python-Depends-.patch BuildArch: noarch BuildRequires: pythonegg(2)(setuptools) BuildRequires: pythonegg(3)(setuptools) Requires: python3-%{name} = %{version}-%{release} %description This package contains the base implementation of the Jupyter Notebook format, and Python APIs for working with notebooks. %package -n python2-%{name} Summary: Jupyter Notebook Conversion (Python 2) %description -n python2-%{name} This package contains the base implementation of the Jupyter Notebook format, and Python APIs for working with notebooks. This package installs the library for Python 2. %package -n python3-%{name} Summary: Jupyter Notebook Conversion (Python 3) %description -n python3-%{name} This package contains the base implementation of the Jupyter Notebook format, and Python APIs for working with notebooks. This package installs the library for Python 3. %prep %autosetup -p1 -n %{pypi_name}-%{version} %build %py2_build %py3_build %install %py2_install %py3_install %files %{_bindir}/jupyter-trust %files -n python2-%{name} %license COPYING.md %{python2_sitelib}/ %files -n python3-%{name} %license COPYING.md %{python3_sitelib}/ %changelog * Mon Apr 18 2016 philippem <philippem> 4.0.1-1.mga6 + Revision: 1003455 - imported package jupyter-nbformat