%global srcname formats %global sum Support multiple formats with ease Name: python-%{srcname} Version: 0.1.1 Release: 1%{?dist} Summary: Support multiple formats with ease License: MIT URL: http://pypi.python.org/pypi/%{srcname} Source0: http://pypi.python.org/packages/source/f/%{srcname}/%{srcname}-%{version}.tar.gz Source1: https://github.com/redodo/formats/blob/master/LICENSE BuildArch: noarch BuildRequires: python2-devel python3-devel %description Support multiple formats with ease. %package -n python2-%{srcname} Summary: Support multiple formats with ease %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} Support multiple formats with ease. %package -n python3-%{srcname} Summary: Support multiple formats with ease %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} Support multiple formats with ease. %prep %autosetup -n %{srcname}-%{version} cp %{SOURCE1} . rm -rf formats.egg-info %build %py2_build %py3_build %install %py2_install %py3_install %check %files -n python2-%{srcname} %license LICENSE %doc README.rst %{python2_sitelib}/format* %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/format* %changelog * Sun Sep 13 2015 René Ribaud - 0.1.1-1 - Initial rpm