python-httpie/python-httpie.spec
2022-12-01 17:00:32 +08:00

103 lines
3.6 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: python-httpie
Version: 3.2.1
Release: 1
Summary: HTTPie: command-line HTTP client for the API era.
License: BSD-3-Clause
URL: https://httpie.io/
Source0: https://files.pythonhosted.org/packages/e9/38/e94dac67b61f4dab49c1d26dd47e0b13be8c69c8c1c4fad5a4a87de1d647/httpie-3.2.1.tar.gz
BuildArch: noarch
%description
HTTPie (pronounced _aitch-tee-tee-pie_) is a command-line HTTP client.
Its goal is to make CLI interaction with web services as human-friendly as possible.
HTTPie is designed for testing, debugging, and generally interacting with APIs & HTTP servers.
The `http` & `https` commands allow for creating and sending arbitrary HTTP requests.
They use simple and natural syntax and provide formatted and colorized output.
%package -n python3-httpie
Summary: HTTPie: command-line HTTP client for the API era.
Provides: python-httpie = %{version}-%{release}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-rich
Requires: python3-pip
Requires: python3-charset-normalizer
Requires: python3-defusedxml
Requires: python3-requests
Requires: python3-pygments
Requires: python3-requests-toolbelt
Requires: python3-multidict
Requires: python3-setuptools
Requires: python3-rich
Requires: python3-importlib-metadata
Requires: python3-colorama
%description -n python3-httpie
HTTPie (pronounced _aitch-tee-tee-pie_) is a command-line HTTP client.
Its goal is to make CLI interaction with web services as human-friendly as possible.
HTTPie is designed for testing, debugging, and generally interacting with APIs & HTTP servers.
The `http` & `https` commands allow for creating and sending arbitrary HTTP requests.
They use simple and natural syntax and provide formatted and colorized output.
%package help
Summary: Development documents and examples for httpie
Provides: python3-httpie-doc
%description help
HTTPie (pronounced _aitch-tee-tee-pie_) is a command-line HTTP client.
Its goal is to make CLI interaction with web services as human-friendly as possible.
HTTPie is designed for testing, debugging, and generally interacting with APIs & HTTP servers.
The `http` & `https` commands allow for creating and sending arbitrary HTTP requests.
They use simple and natural syntax and provide formatted and colorized output.
%prep
%autosetup -n httpie-%{version}
%build
%py3_build
%install
%py3_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
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-httpie -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Wed Nov 02 2022 wangjunqi <wangjunqi@kylinos.cn> - 3.2.1-1
- Update package to version 3.2.1
* Tue May 10 2022 xigaoxinyan <xigaoxinyan@h-partners.com> - 2.5.0-2
- License compliance rectification
* Sun Sep 12 2021 Python_Bot <Python_Bot@openeuler.org> - 2.5.0-1
- Package Spec generated