%define upstream_name tblib Name: python-%{upstream_name} Version: 1.0.1 Release: 0.1 Summary: Python traceback fiddling library Group: Development/Python License: BSD URL: https://pypi.python.org/pypi/tblib Source0: https://pypi.python.org/packages/source/t/tblib/tblib-%{version}.tar.gz BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools %description Traceback fiddling library. For now allows you to pickle tracebacks and raise exceptions with pickled tracebacks in different processes. This allows better error handling when running code over multiple processes (imagine multiprocessing, billiard, futures, celery etc). %prep %setup -q -n %{upstream_name}-%{version} %build CFLAGS="%{optflags}" %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT %files %doc README.rst %{python_sitelib}/%{upstream_name}/ %{python_sitelib}/%{upstream_name}-%{version}-*.egg-info %changelog * Wed Jun 24 2015 Scott R. Shinn - 1.0.1-1 - Initial build