tdecacqu pushed to python-statsd (f22). "Initial import (#1214840)."
notifications at fedoraproject.org
notifications at fedoraproject.org
Wed Apr 29 19:08:57 UTC 2015
>From d148cf8441fd9395cba3acd5c6f9b58da5c33cca Mon Sep 17 00:00:00 2001
From: Tristan Cacqueray <tdecacqu at redhat.com>
Date: Wed, 29 Apr 2015 18:49:39 +0000
Subject: Initial import (#1214840).
diff --git a/.gitignore b/.gitignore
index e69de29..bafcd3b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/statsd-2.1.2.tar.gz
diff --git a/python-statsd.spec b/python-statsd.spec
new file mode 100644
index 0000000..a581b3b
--- /dev/null
+++ b/python-statsd.spec
@@ -0,0 +1,73 @@
+%global owner jsocol
+%global srcname pystatsd
+%global pypi_name statsd
+
+Name: python-%{pypi_name}
+Version: 2.1.2
+Release: 2%{?dist}
+Summary: A Python statsd client
+
+License: MIT
+URL: https://github.com/%{owner}/%{srcname}
+Source0: https://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python2-devel
+BuildRequires: python-pbr
+BuildRequires: python-mock
+BuildRequires: python-nose
+BuildRequires: python-coverage
+
+%description
+python-statsd implements a Python client for the statsd daemon.
+
+%package doc
+Summary: Documentation of the Python client for the statsd daemon
+
+Provides: bundled(jquery) = 1.1.14
+Requires: %{name}%{?_isa} = %{version}-%{release}
+BuildRequires: python-sphinx
+
+%description doc
+Documentation of the Python client for the statsd daemon.
+
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+# Let RPM handle the dependencies
+rm -f requirements.txt
+
+
+%build
+%{__python} setup.py build
+# generate html docs
+sphinx-build docs/ html
+# remove the sphinx-build leftovers
+rm -rf html/.{doctrees,buildinfo} html/objects.inv
+
+
+%install
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+%check
+%{__python} setup.py test
+
+
+%files
+%doc README.rst
+%license LICENSE
+%{python_sitelib}/%{pypi_name}
+%{python_sitelib}/%{pypi_name}-*egg-info
+
+%files doc
+%doc html
+%license LICENSE
+
+%changelog
+* Tue Apr 28 2015 Tristan de Cacqueray <tdecacqu at redhat.com> - 2.1.2-2.fc21
+- Fixed fedora-review warnings
+
+* Thu Apr 23 2015 Tristan de Cacqueray <tdecacqu at redhat.com> - 2.1.2-1.fc21
+- Initial packaging
diff --git a/sources b/sources
index e69de29..a386c9d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4b4cd485b9919ee62238c1949e8bffd6 statsd-2.1.2.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/python-statsd.git/commit/?h=f22&id=d148cf8441fd9395cba3acd5c6f9b58da5c33cca
More information about the scm-commits
mailing list