%bcond_without check %global srcname django-prometheus Name: python-%{srcname} Version: 2.1.0 Release: 12%{?dist} Summary: Django middlewares to monitor your application with Prometheus.io License: ASL 2.0 URL: https://github.com/korfuri/django-prometheus Source: %{pypi_source} BuildArch: noarch %global _description %{expand: %{summary}.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(pytest-runner) %if %{with check} BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-django) BuildRequires: python3dist(django) BuildRequires: python3dist(prometheus-client) >= 0.7 %endif %description -n python3-%{srcname} %{_description} Python 3 version. %prep %autosetup -n %{srcname}-%{version} -p1 rm -vr *.egg-info %build %py3_build %install %py3_install %if %{with check} %check %python3 setup.py test %endif %files -n python3-%{srcname} %license LICENSE %doc README.md %{python3_sitelib}/django_prometheus-*.egg-info/ %{python3_sitelib}/django_prometheus/ %changelog * Fri Jan 26 2024 Fedora Release Engineering - 2.1.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.1.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 2.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Python Maint - 2.1.0-9 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 2.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 2.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 16 2022 Python Maint - 2.1.0-6 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 2.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 2.1.0-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.1.0-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Dec 06 2020 Igor Raits - 2.1.0-1 - Update to 2.1.0 * Wed Jul 29 2020 Fedora Release Engineering - 2.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro HronĨok - 2.0.0-2 - Rebuilt for Python 3.9 * Fri Jan 31 2020 Igor Raits - 2.0.0-1 - Update to 2.0.0 * Sat Sep 07 2019 Igor Gnatenko - 1.0.15-1 - Initial package