Blame SPECS/python-prometheus_client.spec

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