b74f8dc
%global owner openstack-infra
b74f8dc
%global srcname gear
b74f8dc
b74f8dc
Name: python-%{srcname}
6e3214e
Version: 0.5.9
f9e59e4
Release: 5%{?dist}
b74f8dc
Summary: Pure Python Async Gear Protocol Library
b74f8dc
b74f8dc
Group: Applications/Productivity
b74f8dc
License: ASL 2.0
b74f8dc
URL: https://github.com/openstack-infra/%{srcname}
6e3214e
Source0: https://pypi.python.org/packages/source/g/%{srcname}/%{srcname}-%{version}.tar.gz
eb8ee1d
# Patch0001 has been proposed upstream https://review.openstack.org/#/c/186889/
b74f8dc
Patch0001: 0001-gear-lint-non-executable-script.patch
b74f8dc
b74f8dc
BuildArch: noarch
b74f8dc
6e3214e
BuildRequires: git
b74f8dc
BuildRequires: python2-devel
b74f8dc
BuildRequires: python-pbr
b74f8dc
6e3214e
# Test requirements
6e3214e
BuildRequires: pyOpenSSL
6e3214e
BuildRequires: python-fixtures
6e3214e
BuildRequires: python-statsd
6e3214e
BuildRequires: python-testrepository
6e3214e
BuildRequires: python-testresources
6e3214e
BuildRequires: python-testscenarios
6e3214e
b74f8dc
Requires: python-extras
b74f8dc
Requires: python-daemon
efe243e
Requires: python-pbr
b74f8dc
b74f8dc
b74f8dc
%description
b74f8dc
python-gear implements an asynchronous event-driven interface to Gearman.
b74f8dc
It provides interfaces to build a client or worker, and access to the
b74f8dc
administrative protocol. The design approach is to keep it simple, with a
b74f8dc
relatively thin abstraction of the Gearman protocol itself. It should be
b74f8dc
easy to use to build a client or worker that operates either synchronously
b74f8dc
or asynchronously. The module also provides a simple Gearman server for
b74f8dc
use as a convenience in unit tests. The server is not designed for
b74f8dc
production use under load.
b74f8dc
b74f8dc
b74f8dc
%prep
6e3214e
%autosetup -n %{srcname}-%{version} -S git
6e3214e
# Let RPM handle the dependencies
6e3214e
rm -rf {test-,}requirements.txt
b74f8dc
b74f8dc
b74f8dc
%build
6e3214e
%py2_build
b74f8dc
b74f8dc
b74f8dc
%install
6e3214e
%py2_install
6e3214e
6e3214e
6e3214e
%check
6e3214e
%{__python2} setup.py testr
b74f8dc
b74f8dc
b74f8dc
%files
eb8ee1d
%doc README.rst CONTRIBUTING.rst doc
eb8ee1d
%license LICENSE
b74f8dc
%{_bindir}/*
6e3214e
%{python2_sitelib}/%{srcname}
6e3214e
%{python2_sitelib}/%{srcname}-*egg-info
b74f8dc
b74f8dc
b74f8dc
%changelog
f9e59e4
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.9-5
f9e59e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f9e59e4
a714a96
* Thu Sep 22 2016 Fabien Boucher <fboucher@redhat.com> - 0.5.9-4
a714a96
- Fix bogus release version inconsistency
a714a96
Fabien Boucher 059b636
* Thu Sep 22 2016 Fabien Boucher <fboucher@redhat.com> - 0.5.9-3
6bfc44b
- Remove useless dependencies to python-argparse
6bfc44b
0758618
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.9-2
0758618
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
0758618
6e3214e
* Tue Feb 16 2016 Paul Belanger <pabelanger@redhat.com> - 0.5.9-1
6e3214e
- New upstream 0.5.9 (#1304141)
6e3214e
- Update spec to latest python packaging guidelines
6e3214e
- Enable unit testing
6e3214e
12fefeb
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.8-2
12fefeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
12fefeb
efe243e
* Mon Jun 22 2015 Fabien Boucher <fboucher@redhat.com> - 0.5.8-1
efe243e
- Bump gear source to version 0.5.8
efe243e
- Add python-pbr as dependency as demo geard needs it
efe243e
4e790e1
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-2
4e790e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4e790e1
eb8ee1d
* Fri May 29 2015 Fabien Boucher <fboucher@redhat.com> - 0.5.7-1
eb8ee1d
- Bump gear source to version 0.5.7
eb8ee1d
- Remove dist version in changelog
eb8ee1d
- Fix license handling
eb8ee1d
eb8ee1d
* Thu Apr 23 2015 Fabien Boucher <fboucher@redhat.com> - 0.5.6-0
b74f8dc
- Initial packaging