diff --git a/.gitignore b/.gitignore index e69de29..a13618b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/gear-0.5.6.tar.gz diff --git a/0001-gear-lint-non-executable-script.patch b/0001-gear-lint-non-executable-script.patch new file mode 100644 index 0000000..ee4bb6e --- /dev/null +++ b/0001-gear-lint-non-executable-script.patch @@ -0,0 +1,8 @@ +diff -uNr gear-9035599e90190abc2bc834dd0478fc4a9ba3498f/gear/cmd/geard.py gear-9035599e90190abc2bc834dd0478fc4a9ba3498f_new/gear/cmd/geard.py +--- gear-9035599e90190abc2bc834dd0478fc4a9ba3498f/gear/cmd/geard.py 2015-03-26 20:50:08.000000000 +0000 ++++ gear-9035599e90190abc2bc834dd0478fc4a9ba3498f_new/gear/cmd/geard.py 2015-04-23 08:36:09.939000000 +0000 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + # Copyright 2013 OpenStack Foundation + # + # Licensed under the Apache License, Version 2.0 (the "License"); you may diff --git a/python-gear.spec b/python-gear.spec new file mode 100644 index 0000000..59b43a3 --- /dev/null +++ b/python-gear.spec @@ -0,0 +1,60 @@ +%global owner openstack-infra +%global srcname gear + +Name: python-%{srcname} +Version: 0.5.6 +Release: 0%{?dist} +Summary: Pure Python Async Gear Protocol Library + +Group: Applications/Productivity +License: ASL 2.0 +URL: https://github.com/openstack-infra/%{srcname} +Source0: https://pypi.python.org/packages/source/g/gear/gear-0.5.6.tar.gz +Patch0001: 0001-gear-lint-non-executable-script.patch + +BuildArch: noarch + +BuildRequires: python2-devel +BuildRequires: python-pbr + +Requires: python +Requires: python-extras +Requires: python-argparse +Requires: python-daemon + + +%description +python-gear implements an asynchronous event-driven interface to Gearman. +It provides interfaces to build a client or worker, and access to the +administrative protocol. The design approach is to keep it simple, with a +relatively thin abstraction of the Gearman protocol itself. It should be +easy to use to build a client or worker that operates either synchronously +or asynchronously. The module also provides a simple Gearman server for +use as a convenience in unit tests. The server is not designed for +production use under load. + + +%prep +%setup -qn %{srcname}-%{version} +%patch0001 -p1 +rm -f requirements.txt + + +%build +%{__python} setup.py build + + +%install +%{__python} setup.py install --skip-build --root %{buildroot} + + +%files +%doc LICENSE README.rst CONTRIBUTING.rst doc +%{_bindir}/* +%{python_sitelib}/%{srcname} +%{python_sitelib}/%{srcname}-*egg-info + + +%changelog +* Thu Apr 23 2015 Fabien Boucher - 0.5.6-0.fc21 +- Initial packaging diff --git a/sources b/sources index e69de29..e67b426 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c8058dee98bccf0452728fc48c9b8b50 gear-0.5.6.tar.gz