Name: email-reply-parser Version: 0.3.0 Release: 1%{?dist} Summary: Email Reply Parser for Python License: MIT %global _name %(tr - _ <<< %{name}) URL: https://pypi.python.org/pypi/email_reply_parser Source0: https://pypi.python.org/packages/source/e/%{_name}/%{_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: unittest %if 0%{?with_python3} BuildRequires: python3-devel %endif # if with_python3 %description Makes it easy to grab only the last reply to an on-going email thread %prep %setup -q -n %{_name}-%{version} %build %{__python} setup.py build %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py build popd %endif # with_python3 %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root %{buildroot} %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py install --skip-build --root %{buildroot} rm -rf %{buildroot}%{python3_sitelib}/%{name}/tests %endif # with_python3 rm -rf ${buildroot}%{python_sitelib}/%{name}/tests %files %{python_sitelib}/* %changelog * Fri Sep 12 2014 Ariel O. Barria 0.3.0-1 - Initial package.