/[packages]/updates/8/httpie/current/SPECS/httpie.spec
ViewVC logotype

Contents of /updates/8/httpie/current/SPECS/httpie.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1800182 - (show annotations) (download)
Sat Mar 19 14:07:55 2022 UTC (2 years, 1 month ago) by neoclust
File size: 1392 byte(s)
New version 3.1.0: Fixes CVE-2022-24737 (mga#30188)
1 Name: httpie
2 Version: 3.1.0
3 Release: %mkrel 1
4 Summary: A Curl-like tool for humans
5
6 Group: Networking/WWW
7 License: BSD
8 URL: http://httpie.org/
9 Source0: https://pypi.io/packages/source/h/httpie/httpie-%{version}.tar.gz
10 BuildRequires: python3-devel
11
12 # Needed so we can build the manpage with help2man without fataling.
13 BuildRequires: python3-pygments
14 BuildRequires: python3-requests
15 BuildRequires: python3-setuptools
16 BuildRequires: help2man
17
18 BuildArch: noarch
19
20 Provides: python3-httpie = %{version}-%{release}
21 Obsoletes: python3-httpie < %{version}-%{release}
22
23 %description
24 HTTPie is a CLI HTTP utility built out of frustration with existing tools. The
25 goal is to make CLI interaction with HTTP-based services as human-friendly as
26 possible.
27
28 HTTPie does so by providing an http command that allows for issuing arbitrary
29 HTTP requests using a simple and natural syntax and displaying colorized
30 responses.
31
32 %prep
33 %setup -q
34 sed -i '/#!\/usr\/bin\/env/d' %{name}/__main__.py
35
36 %build
37 %py3_build
38
39 %install
40 %py3_install
41
42 mkdir -p %{buildroot}%{_mandir}/man1
43 help2man --no-discard-stderr %{buildroot}%{_bindir}/http > %{buildroot}%{_mandir}/man1/http.1
44
45 %files
46 %doc LICENSE
47 %{python3_sitelib}/%{name}/
48 %{python3_sitelib}/%{name}-%{version}*
49 %{_bindir}/http
50 %{_bindir}/httpie
51 %{_bindir}/https
52 %{_mandir}/man1/http.1*

  ViewVC Help
Powered by ViewVC 1.1.30