%global srcname prometheus_client Name: python-%{srcname} Version: 0.7.1 Release: 2%{?dist} Summary: Python client for Prometheus License: ASL 2.0 URL: https://github.com/prometheus/client_python Source: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz # https://github.com/prometheus/client_python/pull/462 Patch0001: 0001-Unbundle-decorator.patch # https://github.com/prometheus/client_python/pull/463 Patch0002: 0001-Drop-unneeded-shebangs.patch BuildArch: noarch %description %{summary}. %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3dist(decorator) BuildRequires: python3dist(pytest) %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %{summary}. %package -n python3-%{srcname}+twisted Summary: %{summary} Requires: python3-%{srcname} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: python%{python3_version}dist(twisted) BuildRequires: python3dist(twisted) %{?python_provide:%python_provide python3-%{srcname}+twisted} %description -n python3-%{srcname}+twisted %{summary}. "twisted" extras. %prep %autosetup -p1 -n client_python-%{version} sed -i -e '1{/^#!/d}' prometheus_client/__init__.py %build %py3_build %install %py3_install %check %{__python3} -m pytest -v %files -n python3-%{srcname} %license LICENSE %doc README.md MAINTAINERS.md %{python3_sitelib}/%{srcname}/ %{python3_sitelib}/%{srcname}-*.egg-info/ %files -n python3-%{srcname}+twisted %changelog * Thu Jan 30 2020 Fedora Release Engineering - 0.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Oct 23 2019 Igor Gnatenko - 0.7.1-1 - Update to 0.7.1 - Split twisted extras into a separate subpackage * Thu Oct 03 2019 Miro Hrončok - 0.6.0-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Sun Aug 18 2019 Miro Hrončok - 0.6.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Feb 21 2019 mprahl - 0.6.0-1 - Update to 0.6.0 * Wed Feb 20 2019 mprahl - 0.5.0-2 - Remove #!/usr/bin/python line from prometheus_client/openmetrics/*.py * Thu Feb 07 2019 mprahl - 0.5.0-1 - Update to 0.5.0 * Sat Feb 02 2019 Fedora Release Engineering - 0.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jan 14 2019 Miro Hrončok - 0.2.0-4 - Subpackage python2-prometheus_client has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 0.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.2.0-2 - Rebuilt for Python 3.7 * Sat Jun 09 2018 Jeremy Cline - 0.2.0-1 - Initial package