Compare commits
10 Commits
4d698ff03e
...
447702a65c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
447702a65c | ||
|
|
9bdf00f20c | ||
|
|
2beb46d3bd | ||
|
|
b977b5ce3a | ||
|
|
5cd848b4ed | ||
|
|
ca68751abb | ||
|
|
9051d0f66f | ||
|
|
71605a8675 | ||
|
|
df78eea9c4 | ||
|
|
5e5b698627 |
BIN
httpie-3.2.2.tar.gz
Normal file
BIN
httpie-3.2.2.tar.gz
Normal file
Binary file not shown.
105
python-httpie.spec
Normal file
105
python-httpie.spec
Normal file
@ -0,0 +1,105 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-httpie
|
||||
Version: 3.2.2
|
||||
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/09/e0/11680a5c0d94742122835330b3250f91a3a5066970872e111cb3ac5ce204/httpie-3.2.2.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
|
||||
* Thu Jun 01 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 3.2.2-1
|
||||
- Update package to version 3.2.2
|
||||
|
||||
* 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
|
||||
|
||||
4
python-httpie.yaml
Normal file
4
python-httpie.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: pypi
|
||||
src_repo: httpie
|
||||
tag_prefix:
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user