diff --git a/.python-statsd.metadata b/.python-statsd.metadata new file mode 100644 index 0000000..a015734 --- /dev/null +++ b/.python-statsd.metadata @@ -0,0 +1 @@ +6da6d1a21c18a6e5e2a185c84deea3b211600de6 SOURCES/statsd-3.2.1.tar.gz diff --git a/SOURCES/0001-Fix-sphinx-extension-conflict.patch b/SOURCES/0001-Fix-sphinx-extension-conflict.patch new file mode 100644 index 0000000..fc01e06 --- /dev/null +++ b/SOURCES/0001-Fix-sphinx-extension-conflict.patch @@ -0,0 +1,29 @@ +From afcb422fe37e3c5419042e0e9b9f34bd3c1979b5 Mon Sep 17 00:00:00 2001 +From: Tristan Cacqueray +Date: Mon, 2 Jan 2017 05:32:49 +0000 +Subject: [PATCH] Fix sphinx extension conflict + +This change removes the pngmath extensions to fix the doc building error +happening with 1.4.8: + +sphinx.ext.mathjax: other math package is already loaded +--- + docs/conf.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/docs/conf.py b/docs/conf.py +index 44fc54e..d46c107 100644 +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -25,7 +25,7 @@ import sys, os + + # Add any Sphinx extension module names here, as strings. They can be extensions + # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. +-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.pngmath', 'sphinx.ext.mathjax', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode'] ++extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.mathjax', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode'] + + # Add any paths that contain templates here, relative to this directory. + templates_path = ['_templates'] +-- +2.7.3 + diff --git a/SPECS/python-statsd.spec b/SPECS/python-statsd.spec new file mode 100644 index 0000000..2217673 --- /dev/null +++ b/SPECS/python-statsd.spec @@ -0,0 +1,141 @@ + +%global srcname statsd + +Name: python-%{srcname} +Version: 3.2.1 +Release: 20%{?dist} +Summary: A Python statsd client + +License: MIT +URL: https://github.com/jsocol/pystatsd +Source0: https://pypi.python.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz +# Apply https://github.com/jsocol/pystatsd/pull/88 +Patch0: 0001-Fix-sphinx-extension-conflict.patch + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-mock +BuildRequires: python3-nose + +%description +A python client for the statsd daemon. + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +A python client for the statsd daemon. + +%package doc +Summary: Documentation of the Python client for the statsd daemon +BuildRequires: python3-sphinx + +%description doc +Documentation of the Python client for the statsd daemon. + +%prep +%autosetup -n %{srcname}-%{version} -p1 +# Remove bundled egg-info +rm -rf %{srcname}.egg-info +# Let RPM handle the dependencies +rm -f requirements.txt + +%build +%py3_build + +## generate html docs +sphinx-build docs html +rm -rf html/.{doctrees,buildinfo} + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-%{srcname} +%license LICENSE +%doc AUTHORS README.rst +%{python3_sitelib}/* + +%files doc +%license LICENSE +%doc html + +%changelog +* Wed Jan 27 2021 Fedora Release Engineering - 3.2.1-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 3.2.1-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 3.2.1-18 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 3.2.1-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 3.2.1-16 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 3.2.1-15 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 3.2.1-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Feb 11 2019 Miro Hrončok - 3.2.1-13 +- Subpackage python2-statsd has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Feb 02 2019 Fedora Release Engineering - 3.2.1-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 3.2.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 3.2.1-10 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 3.2.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Tue Jan 30 2018 Iryna Shcherbina - 3.2.1-8 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Thu Jul 27 2017 Fedora Release Engineering - 3.2.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 3.2.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Jan 02 2017 Tristan de Cacqueray - 3.2.1-5 +- Fix sphinx-build error + +* Mon Dec 19 2016 Miro Hrončok - 3.2.1-4 +- Rebuild for Python 3.6 + +* Thu Feb 04 2016 Fedora Release Engineering - 3.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Dec 18 2015 Paul Belanger - 3.2.1-2 +- Ensure python3-statsd only exists when with_python3 defined +- Add python3 testing dependencies +- Run tests under python3 + +* Fri Dec 18 2015 Paul Belanger - 3.2.1-1 +- New upstream version - 3.2.1 +- Add support for both python2 and python3. + +* Thu Jun 18 2015 Fedora Release Engineering - 2.1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Apr 28 2015 Tristan de Cacqueray - 2.1.2-2.fc21 +- Fixed fedora-review warnings + +* Thu Apr 23 2015 Tristan de Cacqueray - 2.1.2-1.fc21 +- Initial packaging