%global pypi_name Events Name: python-%{pypi_name} Version: 0.2.1 Release: 1%{?dist} Summary: Bringing the elegance of C# EventHanlder to Python License: BSD URL: http://github.com/nicolaiarocci/events Source0: https://files.pythonhosted.org/packages/source/E/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python-setuptools BuildRequires: python2-devel BuildRequires: python3-setuptools BuildRequires: python3-devel %description Bringing the elegance of C EventHanlder to Python The C language provides a handy way to declare, subscribe to and fire events. Technically, an event is a "slot" where callback functions (event handlers) can be attached to a process referred to as subscribing to an event. Here is a handy package that encapsulates the core to event subscription and event firing and feels like a "natural" ... %package -n python2-%{pypi_name} Summary: Bringing the elegance of C# EventHanlder to Python %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} Bringing the elegance of C EventHanlder to Python The C language provides a handy way to declare, subscribe to and fire events. Technically, an event is a "slot" where callback functions (event handlers) can be attached to a process referred to as subscribing to an event. Here is a handy package that encapsulates the core to event subscription and event firing and feels like a "natural" ... %package -n python3-%{pypi_name} Summary: Bringing the elegance of C# EventHanlder to Python %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} Bringing the elegance of C EventHanlder to Python The C language provides a handy way to declare, subscribe to and fire events. Technically, an event is a "slot" where callback functions (event handlers) can be attached to a process referred to as subscribing to an event. Here is a handy package that encapsulates the core to event subscription and event firing and feels like a "natural" ... %prep %autosetup -n %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info %build %py2_build %py3_build %install %py3_install %py2_install %check %{__python2} setup.py test %{__python3} setup.py test %files -n python2-%{pypi_name} %license LICENSE %doc README.rst %{python2_sitelib}/events %{python2_sitelib}/%{pypi_name}-%{version}-py*egg-info %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/events %{python3_sitelib}/%{pypi_name}-%{version}-py*egg-info %changelog * Fri Sep 30 2016 David Hannequin - 0.2.1-1 - Initial package.