]> git.pld-linux.org Git - packages/httpie.git/blame - httpie.spec
- release 2 (by relup.sh)
[packages/httpie.git] / httpie.spec
CommitLineData
a4f97c12
ER
1Summary: A Curl-like tool for humans
2Name: httpie
3Version: 0.7.2
9eb5bed2 4Release: 2
a4f97c12
ER
5License: BSD
6Group: Applications/Networking
7Source0: http://pypi.python.org/packages/source/h/httpie/%{name}-%{version}.tar.gz
8# Source0-md5: 09218336048596da757c4f0cf19642fd
9URL: http://httpie.org/
00b13274
ER
10BuildRequires: python-distribute
11BuildRequires: rpm-pythonprov
a4f97c12
ER
12BuildRequires: sed >= 4.0
13# Needed so we can build the manpage with help2man without fataling.
14BuildRequires: help2man
15BuildRequires: python-pygments
16BuildRequires: python-requests
17Requires: python-pygments
18Requires: python-requests
19BuildArch: noarch
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23HTTPie is a CLI HTTP utility built out of frustration with existing
24tools. The goal is to make CLI interaction with HTTP-based services as
25human-friendly as possible.
26
27HTTPie does so by providing an http command that allows for issuing
28arbitrary HTTP requests using a simple and natural syntax and
29displaying colorized responses.
30
31%prep
32%setup -q
33
34sed -i '/#!\%{_prefix}\/bin\/env/d' %{name}/__main__.py
35
36# Fedora currently only ships with Pygments 1.4 but httpie wants 1.5.
37# Also, RHEL currently only ships with Pygments 1.1.
38# However, it seems to work just fine with lower versions.
39sed -i 's/Pygments>=1.5/Pygments>=1.1/' setup.py
40sed -i 's/requests>=2.0.0/requests>=1.1.0/' setup.py
41
42%build
1fbcd904 43%py_build
a4f97c12
ER
44
45%install
46rm -rf $RPM_BUILD_ROOT
1fbcd904 47%py_install
a4f97c12
ER
48%py_postclean
49
50export PYTHONPATH=$RPM_BUILD_ROOT%{py_sitescriptdir}
51install -d $RPM_BUILD_ROOT%{_mandir}/man1
52help2man --no-discard-stderr $RPM_BUILD_ROOT%{_bindir}/http > $RPM_BUILD_ROOT%{_mandir}/man1/http.1
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%files
58%defattr(644,root,root,755)
59%doc LICENSE README.rst
60%attr(755,root,root) %{_bindir}/http
61%{_mandir}/man1/http.1*
62%{py_sitescriptdir}/httpie
63%{py_sitescriptdir}/httpie-%{version}-py*.egg-info
This page took 0.095325 seconds and 4 git commands to generate.