%global srcname formats
%global sum Support multiple formats with ease
Name: python-%{srcname}
Version: 0.1.1
Release: 2%{?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.
Formats will provide you with a consistent API to parse and compose data.
%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.
Formats will provide you with a consistent API to parse and compose data.
%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
* Thu Oct 01 2015 René Ribaud <rene.ribaud@free.fr> - 0.1.1-2
- Update with feedbacks from Julien's review
* Sun Sep 13 2015 René Ribaud <rene.ribaud@free.fr> - 0.1.1-1
- Initial rpm