%define upstream_name stopit

Name:           python-%{upstream_name}
Version:        1.1.1
Release:        0.1
Summary:        Python interface to Clamd (Clamav daemon)
Group:          Development/Python
License:        GPLv3
URL:            https://pypi.python.org/pypi/stopit
Source0:        https://pypi.python.org/packages/source/s/stopit/stopit-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python-devel
BuildRequires:  python-setuptools

%description
This module provides:
* a function that raises an exception in another thread, including the main thread.
* two context managers that may stop its inner block activity on timeout.
* two decorators that may stop its decorated callables on timeout.


%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 CHANGES.rst README.rst
%{python_sitelib}/stopit/
%{python_sitelib}/stopit-%{version}-*.egg-info


%changelog
* Tue Oct 22 2013 umeabot <umeabot> 1.0.1-3.mga4
+ Revision: 544942
- Mageia 4 Mass Rebuild

* Tue Oct 15 2013 pterjan <pterjan> 1.0.1-2.mga4
+ Revision: 500492
- Rebuild to add different pythonegg provides for python 2 and 3

* Wed Aug 21 2013 guillomovitch <guillomovitch> 1.0.1-1.mga4
+ Revision: 468873
- imported package python-clamd