Ricky Elrod 6e02a05
Name:           httpie
f8553c8
Version:        2.6.0
304df03
Release:        1%{?dist}
Ricky Elrod 6e02a05
Summary:        A Curl-like tool for humans
Ricky Elrod 6e02a05
Ricky Elrod 6e02a05
License:        BSD
Rick Elrod 2b2f797
URL:            https://httpie.org/
ad4f79f
Source0:        https://github.com/httpie/httpie/archive/%{version}/%{name}-%{version}.tar.gz
26a708b
ad4f79f
BuildArch:      noarch
ad4f79f
ad4f79f
BuildRequires:  python3-devel
ad4f79f
BuildRequires:  pyproject-rpm-macros
ad4f79f
082298f
BuildRequires:  help2man
Ricky Elrod 6e02a05
Ricky Elrod 6e02a05
%description
Ricky Elrod 6e02a05
HTTPie is a CLI HTTP utility built out of frustration with existing tools. The
Ricky Elrod 6e02a05
goal is to make CLI interaction with HTTP-based services as human-friendly as
Ricky Elrod 6e02a05
possible.
Ricky Elrod 6e02a05
Ricky Elrod 6e02a05
HTTPie does so by providing an http command that allows for issuing arbitrary
Ricky Elrod 6e02a05
HTTP requests using a simple and natural syntax and displaying colorized
Ricky Elrod 6e02a05
responses.
Ricky Elrod 6e02a05
ad4f79f
Ricky Elrod 6e02a05
%prep
ad4f79f
%autosetup -p1
ad4f79f
ad4f79f
ad4f79f
%generate_buildrequires
304df03
%pyproject_buildrequires -rx test
ad4f79f
Ricky Elrod 6e02a05
Ricky Elrod 6e02a05
%build
ad4f79f
%pyproject_wheel
ad4f79f
Ricky Elrod 6e02a05
Ricky Elrod 6e02a05
%install
ad4f79f
%pyproject_install
ad4f79f
%pyproject_save_files httpie
ad4f79f
ad4f79f
# Bash completion
ad4f79f
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
ad4f79f
cp -a extras/httpie-completion.bash %{buildroot}%{_datadir}/bash-completion/completions/http
ad4f79f
ln -s ./http %{buildroot}%{_datadir}/bash-completion/completions/https
ad4f79f
ad4f79f
# Fish completion
ad4f79f
mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d/
ad4f79f
cp -a extras/httpie-completion.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/http.fish
ad4f79f
ln -s ./http.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/https.fish
Ricky Elrod 7f42999
Ricky Elrod 7f42999
26a708b
# Generate man pages for everything
ad4f79f
export PYTHONPATH=%{buildroot}%{python3_sitelib}
ad4f79f
mkdir -p %{buildroot}%{_mandir}/man1
ad4f79f
help2man %{buildroot}%{_bindir}/http > %{buildroot}%{_mandir}/man1/http.1
ad4f79f
help2man %{buildroot}%{_bindir}/https > %{buildroot}%{_mandir}/man1/https.1
ad4f79f
ad4f79f
ad4f79f
%check
ad4f79f
%pytest -v
Ricky Elrod d685a2a
26a708b
ad4f79f
%files -f %{pyproject_files}
304df03
%doc README.md
26a708b
%license LICENSE
Ricky Elrod 9581357
%{_bindir}/http
1860327
%{_bindir}/https
ad4f79f
%{_mandir}/man1/http.1*
ad4f79f
%{_mandir}/man1/https.1*
ad4f79f
# we co-own the entire directory structures for bash/fish completion to avoid a dependency
ad4f79f
%{_datadir}/bash-completion/
ad4f79f
%{_datadir}/fish/
Ricky Elrod 6e02a05
Ricky Elrod 9581357
Ricky Elrod 6e02a05
%changelog
f8553c8
* Fri Oct 15 2021 Miro Hrončok <mhroncok@redhat.com> - 2.6.0-1
f8553c8
- Update to 2.6.0
f8553c8
- Fixes: rhbz#2014022
f8553c8
304df03
* Tue Sep 07 2021 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-1
304df03
- Update to 2.5.0
304df03
- Fixes: rhbz#2001693
304df03
d3f005b
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-4
d3f005b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d3f005b
3302e59
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.4.0-3
3302e59
- Rebuilt for Python 3.10
3302e59
ad4f79f
* Thu May 27 2021 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-2
ad4f79f
- Add Bash and Fish completion
ad4f79f
- Fixes rhbz#1834441
ad4f79f
- Run tests on build time
ad4f79f
294c3dd
* Wed Mar 24 2021 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 2.4.0-1
294c3dd
- Update to 2.4.0
294c3dd
- Use pypi_source macro
294c3dd
2a29019
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
2a29019
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2a29019
2d5e69e
* Thu Jan 21 2021 Nils Philippsen <nils@tiptoe.de> - 2.3.0-2
b2a8112
- use macros for Python dependencies
b2a8112
- add missing Python dependencies needed for running help2man
b2a8112
- remove manual Python dependencies
39b3d27
- discard stderr when running help2man
b2a8112
1860327
* Thu Dec 24 2020 Nils Philippsen <nils@tiptoe.de> - 2.3.0-1
1860327
- version 2.3.0
b41d9f0
- Python 2 is no more
8e18081
- use %%autosetup and Python build macros
e04f4a4
- remove EL7-isms
2493c52
- explicitly require sed for building
1860327
a3464c2
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-4
a3464c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a3464c2
84bd47a
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-3
84bd47a
- Rebuilt for Python 3.9
84bd47a
903a42e
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-2
903a42e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
903a42e
Rick Elrod 2b2f797
* Mon Sep 30 2019 Rick Elrod <relrod@redhat.com> - 1.0.3-1
Rick Elrod 2b2f797
- Latest upstream
Rick Elrod 2b2f797
abcb6e2
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.4-15
abcb6e2
- Rebuilt for Python 3.8
abcb6e2
f47ea69
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-14
f47ea69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f47ea69
4cb8033
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-13
4cb8033
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4cb8033
ed7d24d
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-12
ed7d24d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ed7d24d
b4042d4
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.4-11
b4042d4
- Rebuilt for Python 3.7
b4042d4
d4820a7
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-10
d4820a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d4820a7
f12b573
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-9
f12b573
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f12b573
7116780
* Fri Mar 10 2017 Ralph Bean <rbean@redhat.com> - 0.9.4-8
7116780
- Fix help2man usage with python3.
7116780
  https://bugzilla.redhat.com/show_bug.cgi?id=1430733
7116780
082298f
* Mon Feb 27 2017 Ralph Bean <rbean@redhat.com> - 0.9.4-7
082298f
- Fix missing Requires.  https://bugzilla.redhat.com/show_bug.cgi?id=1417730
082298f
590122c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-6
590122c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
590122c
Ricky Elrod 2e21336
* Mon Jan 2 2017 Ricky Elrod <relrod@redhat.com> - 0.9.4-5
Ricky Elrod 2e21336
- Add missing Obsoletes.
Ricky Elrod 2e21336
Ricky Elrod 9581357
* Mon Jan 2 2017 Ricky Elrod <relrod@redhat.com> - 0.9.4-4
Ricky Elrod 9581357
- Nuke python-version-specific subpackages. Just use py3 if we can.
Ricky Elrod 9581357
fe0f575
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9.4-3
fe0f575
- Rebuild for Python 3.6
fe0f575
52d36cb
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-2
52d36cb
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
52d36cb
Ricky Elrod 1856772
* Tue Jul 05 2016 Ricky Elrod <relrod@redhat.com> - 0.9.4-1
Ricky Elrod 1856772
- Update to latest upstream.
Ricky Elrod 1856772
Ricky Elrod 317bf04
* Fri Jun 03 2016 Ricky Elrod <relrod@redhat.com> - 0.9.3-4
Ricky Elrod 21bbd80
- Add proper Obsoletes for rhbz#1329226.
Ricky Elrod 21bbd80
2cbae90
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-3
2cbae90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2cbae90
26a708b
* Mon Jan 04 2016 Ralph Bean <rbean@redhat.com> - 0.9.3-2
26a708b
- Modernize python macros and subpackaging.
26a708b
- Move LICENSE to %%license macro.
26a708b
- Make python3 the default on modern Fedora.
26a708b
26a708b
* Mon Jan 04 2016 Ralph Bean <rbean@redhat.com> - 0.9.3-1
26a708b
- new version
26a708b
c15bfa7
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-3
c15bfa7
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
c15bfa7
dfc4edb
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-2
dfc4edb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
dfc4edb
Ricky Elrod d79d10a
* Thu Mar 26 2015 Ricky Elrod <relrod@redhat.com> - 0.9.2-1
Ricky Elrod d79d10a
- Latest upstream release.
Ricky Elrod d79d10a
4fe1cc9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-3
4fe1cc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4fe1cc9
8e1ffa8
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.8.0-2
8e1ffa8
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
8e1ffa8
Ricky Elrod 7fe5ac8
* Fri Jan 31 2014 Ricky Elrod <codeblock@fedoraproject.org> - 0.8.0-1
Ricky Elrod 7fe5ac8
- Latest upstream release.
Ricky Elrod 7fe5ac8
Ricky Elrod 540ab15
* Fri Oct 4 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.7.2-2
Ricky Elrod 540ab15
- Add in patch to work without having python-requests 2.0.0.
Ricky Elrod 540ab15
Ricky Elrod ed656a9
* Sat Sep 28 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.7.2-1
Ricky Elrod ed656a9
- Latest upstream release.
Ricky Elrod ed656a9
Ricky Elrod ed656a9
* Thu Sep 5 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.6.0-7
Ricky Elrod d685a2a
- Only try building the manpage on Fedora, since RHEL's help2man doesn't
Ricky Elrod d685a2a
  have the --no-discard-stderr flag.
Ricky Elrod d685a2a
Ricky Elrod d707aa3
* Thu Sep 5 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.6.0-6
Ricky Elrod 91640c4
- Loosen the requirement on python-pygments.
Ricky Elrod 91640c4
Ricky Elrod d707aa3
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-5
Ricky Elrod d707aa3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
Ricky Elrod d707aa3
Ricky Elrod 0e79afd
* Tue Jul 2 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.6.0-4
Ricky Elrod 0e79afd
- python-requests 1.2.3 exists in rawhide now.
Ricky Elrod 0e79afd
Ricky Elrod 64d0eca
* Sun Jun 30 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.6.0-3
Ricky Elrod 64d0eca
- Patch to use python-requests 1.1.0 for now.
Ricky Elrod 64d0eca
Ricky Elrod 64d0eca
* Sat Jun 29 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.6.0-2
Ricky Elrod 5c38b02
- Update to latest upstream release.
Ricky Elrod 5c38b02
Ricky Elrod ca651ca
* Mon Apr 29 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.5.0-2
Ricky Elrod ca651ca
- Fix changelog messup.
Ricky Elrod ca651ca
Ricky Elrod 8aa1b29
* Mon Apr 29 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.5.0-1
Ricky Elrod 8aa1b29
- Update to latest upstream release.
Ricky Elrod 8aa1b29
Ricky Elrod 7f42999
* Mon Apr 8 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.4.1-3
Ricky Elrod 7f42999
- Fix manpage generation by exporting PYTHONPATH.
Ricky Elrod 7f42999
Ricky Elrod 9894b2b
* Tue Mar 26 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.4.1-2
Ricky Elrod 6e02a05
- Include Python3 support, and fix other review blockers.
Ricky Elrod 6e02a05
Ricky Elrod 9894b2b
* Mon Mar 11 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.4.1-1
Ricky Elrod 6e02a05
- Update to latest upstream release
Ricky Elrod 6e02a05
Ricky Elrod 6e02a05
* Thu Jul 19 2012 Ricky Elrod <codeblock@fedoraproject.org> - 0.2.5-1
Ricky Elrod 6e02a05
- Initial build.