%global srcname unicodecsv Name: python-%{srcname} Version: 0.14.1 Release: 1%{?dist} Summary: Drop-in replacement for Python 2.7 csv module License: BSD URL: http://pypi.python.org/pypi/%{srcname} Source0: http://pypi.python.org/packages/source/u/%{srcname}/%{srcname}-%{version}.tar.gz #LICENSE text it is not included in the tarball Patch1: unicodecsv-0.14.1.licence.patch BuildArch: noarch BuildRequires: python2-devel BuildRequires: python3-devel %description The unicodecsv is a drop-in replacement for Python 2.7 csv module which supports unicode strings without a hassle. %package -n python2-%{srcname} Summary: Drop-in replacement for Python 2.7 csv module %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} The unicodecsv is a drop-in replacement for Python 2.7 csv module which supports unicode strings without a hassle. %package -n python3-%{srcname} Summary: Drop-in replacement for Python 2.7 csv module %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} The unicodecsv is a drop-in replacement for Python 2.7 csv module which supports unicode strings without a hassle. %prep %autosetup -n %{srcname}-%{version} rm -rf %{name}.egg.info %patch1 %build %py2_build %py3_build %install %py2_install %py3_install %files -n python2-%{srcname} %license LICENSE %doc README.rst %{python2_sitelib}/* %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/* %changelog * Mon Sep 28 2015 William Moreno Reyes - 0.14.1-1 - Initial Packaging