%global python3_pkgversion 3.11 %global __python3 /usr/bin/python3.11 # Created by pyp2rpm-3.3.3 %global pypi_name django-prometheus Name: python-%{pypi_name} Version: 2.1.0 Release: 6%{?dist} Summary: Django middlewares to monitor your application with Prometheus License: Apache URL: http://github.com/korfuri/django-prometheus Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools %description %{summary} %package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} Requires: python%{python3_pkgversion}-prometheus-client >= 0.7 %if 0%{?rhel} == 8 Obsoletes: python39-%{pypi_name} < %{version}-%{release} %endif %description -n python%{python3_pkgversion}-%{pypi_name} %{summary} %prep set -ex %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info sed -i 's/"pytest-runner"//' setup.py %build set -ex %py3_build %install set -ex %py3_install %files -n python%{python3_pkgversion}-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/django_prometheus %{python3_sitelib}/django_prometheus-%{version}-py%{python3_version}.egg-info %changelog * Tue Jan 16 2024 Odilon Sousa - 2.1.0-6 - Remove SCL bits * Tue Nov 21 2023 Patrick Creech - 2.1.0-5 - Add python39 obsoletes to package * Sat Nov 11 2023 Odilon Sousa - 2.1.0-4 - Build against python 3.11 * Fri Apr 22 2022 Yanis Guenane - 2.1.0-3 - Build against python 3.9 * Mon Sep 06 2021 Evgeni Golov - 2.1.0-2 - Build against Python 3.8 * Tue Aug 25 2020 Evgeni Golov 2.1.0-1 - Update to 2.1.0 * Fri Jul 17 2020 Evgeni Golov - 2.0.0-1 - Initial package.