diff --git a/httpbin-0.10.1.tar.gz b/httpbin-0.10.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9752e53954e18653258397fab72c56492845b2e9 Binary files /dev/null and b/httpbin-0.10.1.tar.gz differ diff --git a/python-httpbin.spec b/python-httpbin.spec new file mode 100644 index 0000000000000000000000000000000000000000..f87be33da63c39c98a42029149774d1cce9c0504 --- /dev/null +++ b/python-httpbin.spec @@ -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 - 0.10.1-1 +- Init package.