Accepting request 790281 from home:mcepl:branches:network:utilities
- Don't use %python3_only command, but properly use alternatives. OBS-URL: https://build.opensuse.org/request/show/790281 OBS-URL: https://build.opensuse.org/package/show/network:utilities/httpie?expand=0&rev=11
This commit is contained in:
parent
528b4654b1
commit
af346943c1
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 31 16:59:11 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Don't use %python3_only command, but properly use alternatives.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jan 12 10:25:17 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
Sun Jan 12 10:25:17 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
||||||
|
|
||||||
|
21
httpie.spec
21
httpie.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package httpie
|
# spec file for package httpie
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -29,7 +29,6 @@ Source: https://github.com/jakubroztocil/httpie/archive/%{version}.tar.g
|
|||||||
Source1: http.1
|
Source1: http.1
|
||||||
Patch0: httpie-adjust-requirements.patch
|
Patch0: httpie-adjust-requirements.patch
|
||||||
BuildRequires: %{python_module Pygments >= 2.1.3}
|
BuildRequires: %{python_module Pygments >= 2.1.3}
|
||||||
BuildRequires: %{python_module devel}
|
|
||||||
BuildRequires: %{python_module mock}
|
BuildRequires: %{python_module mock}
|
||||||
BuildRequires: %{python_module pytest-httpbin}
|
BuildRequires: %{python_module pytest-httpbin}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
@ -43,6 +42,8 @@ Suggests: python-argparse >= 1.2.1
|
|||||||
Suggests: python-colorama >= 0.2.4
|
Suggests: python-colorama >= 0.2.4
|
||||||
Provides: httpie
|
Provides: httpie
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -66,19 +67,27 @@ export LC_CTYPE=en_US.UTF-8
|
|||||||
%install
|
%install
|
||||||
export LC_CTYPE=en_US.UTF-8
|
export LC_CTYPE=en_US.UTF-8
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/http
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/https
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
install -D -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/http.1
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/http.1
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export LC_CTYPE=en_US.UTF-8
|
export LC_CTYPE=en_US.UTF-8
|
||||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version}
|
%pytest
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative http https
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative http https
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python3_only %{_bindir}/http
|
%python_alternative %{_bindir}/http
|
||||||
%python3_only %{_bindir}/https
|
%python_alternative %{_bindir}/https
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%{_mandir}/man1/http.1%{ext_man}
|
%{_mandir}/man1/http.1%{?ext_man}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user