python-statsd/python-statsd.spec

58 lines
1.5 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: python-statsd
Version: 4.0.1
Release: 2
Summary: A simple statsd client.
License: MIT
URL: https://github.com/jsocol/pystatsd
Source0: %{pypi_source statsd}
BuildRequires: python3-pip python3-wheel
BuildArch: noarch
%description
statsd is a friendly front-end to Graphite.
%package -n python3-statsd
Summary: A simple statsd client.
Provides: python-statsd = %{version}-%{release}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description -n python3-statsd
statsd is a friendly front-end to Graphite.
%package help
Summary: Development documents and examples for statsd
Provides: python3-statsd-doc
%description help
statsd is a friendly front-end to Graphite.
%prep
%autosetup -n statsd-%{version}
%build
%pyproject_build
%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
%files -n python3-statsd
%{python3_sitelib}/*
%files help
%{_docdir}/*
%changelog
* Thu May 11 2023 wulei <wu_lei@hoperun.com> - 4.0.1-2
- Adapting to the pyproject.toml compilation mode
* Wed Dec 07 2022 liqiuyu <liqiuyu@kylinos.cn> - 4.0.1-1
- Update package to version 4.0.1
* Sat Nov 21 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated