python-statsd/python-statsd.spec

58 lines
1.5 KiB
RPMSpec
Raw Permalink Normal View History

2020-12-15 16:14:39 +08:00
%global _empty_manifest_terminate_build 0
Name: python-statsd
2022-12-07 14:50:54 +08:00
Version: 4.0.1
Release: 2
2020-12-15 16:14:39 +08:00
Summary: A simple statsd client.
License: MIT
URL: https://github.com/jsocol/pystatsd
Source0: %{pypi_source statsd}
BuildRequires: python3-pip python3-wheel
2020-12-15 16:14:39 +08:00
BuildArch: noarch
%description
statsd is a friendly front-end to Graphite.
%package -n python3-statsd
Summary: A simple statsd client.
2022-12-07 14:50:54 +08:00
Provides: python-statsd = %{version}-%{release}
2020-12-15 16:14:39 +08:00
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description -n python3-statsd
2022-12-07 14:50:54 +08:00
statsd is a friendly front-end to Graphite.
2020-12-15 16:14:39 +08:00
%package help
Summary: Development documents and examples for statsd
Provides: python3-statsd-doc
%description help
2022-12-07 14:50:54 +08:00
statsd is a friendly front-end to Graphite.
2020-12-15 16:14:39 +08:00
%prep
2022-12-07 14:50:54 +08:00
%autosetup -n statsd-%{version}
2020-12-15 16:14:39 +08:00
%build
%pyproject_build
2020-12-15 16:14:39 +08:00
%install
%pyproject_install
2020-12-15 16:14:39 +08:00
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}/*
2020-12-15 16:14:39 +08:00
%files help
2020-12-15 16:14:39 +08:00
%{_docdir}/*
%changelog
* Thu May 11 2023 wulei <wu_lei@hoperun.com> - 4.0.1-2
- Adapting to the pyproject.toml compilation mode
2022-12-07 14:50:54 +08:00
* Wed Dec 07 2022 liqiuyu <liqiuyu@kylinos.cn> - 4.0.1-1
- Update package to version 4.0.1
2020-12-15 16:14:39 +08:00
* Sat Nov 21 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated