%define pypi_name ipykernel Name: python-%{pypi_name} Version: 4.3.1 Release: %mkrel 1 Group: Development/Python Summary: IPython kernel for Jupyter (Python 2) License: BSD URL: http://ipython.org/ Source0: https://pypi.python.org/packages/source/i/%{pypi_name}/%{pypi_name}-%{version}.tar.gz Patch0: 0001-use-setuptools-for-everything-so-python-Depends-subs.patch BuildArch: noarch BuildRequires: pythonegg(2)(setuptools) BuildRequires: pythonegg(3)(setuptools) %description This software component provides an IPython kernel, which will hook itself into Jupyter. This package installs the library for Python 2. %package -n python3-%{pypi_name} Group: Development/Python Summary: IPython kernel for Jupyter (Python 3) %description -n python3-%{pypi_name} This software component provides an IPython kernel, which will hook itself into Jupyter. This package installs the library for Python 3. %prep %autosetup -p1 -n %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info %build %py2_build %py3_build %install %py2_install %py3_install %files %{python2_sitelib}/ %files -n python3-%{pypi_name} %{python3_sitelib}/ %changelog * Mon Apr 18 2016 philippem <philippem> 4.3.1-1.mga6 + Revision: 1003383 - imported package python-ipykernel