!1 Init package with version 0.10.1
From: @desert-sailor Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
210da763e2
BIN
httpbin-0.10.1.tar.gz
Normal file
BIN
httpbin-0.10.1.tar.gz
Normal file
Binary file not shown.
63
python-httpbin.spec
Normal file
63
python-httpbin.spec
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
Name: python-httpbin
|
||||||
|
Version: 0.10.1
|
||||||
|
Release: 1
|
||||||
|
Summary: HTTP Request and Response Service.
|
||||||
|
License: MIT and ISC
|
||||||
|
URL: https://github.com/psf/httpbin
|
||||||
|
Source0: https://files.pythonhosted.org/packages/0e/0b/b196b8384979c8fec195d420d3772bb084a8bb0d56f0f1fa25e9c98e459c/httpbin-0.10.1.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pbr
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
|
BuildRequires: python3-hatchling
|
||||||
|
|
||||||
|
%description
|
||||||
|
HTTP Request and Response Service.
|
||||||
|
|
||||||
|
%package -n python3-httpbin
|
||||||
|
Summary: HTTP Request and Response Service.
|
||||||
|
Provides: python-httpbin
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-hatchling
|
||||||
|
%description -n python3-httpbin
|
||||||
|
HTTP Request and Response Service.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Development documents and examples for httpbin
|
||||||
|
Provides: python3-httpbin-doc
|
||||||
|
|
||||||
|
%description help
|
||||||
|
Development documents and examples for httpbin.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n httpbin-%{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-httpbin
|
||||||
|
%doc README.md AUTHORS
|
||||||
|
%license LICENSE LICENSE.MIT LICENSE.ISC
|
||||||
|
%{python3_sitelib}/httpbin
|
||||||
|
%{python3_sitelib}/httpbin*.dist-info/
|
||||||
|
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%{_docdir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Oct 31 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.10.1-1
|
||||||
|
- Init package.
|
||||||
Loading…
x
Reference in New Issue
Block a user