Accepting request 1093305 from home:DarkWav
Enforce building against the primary python version of the current OBS project to avoid build errors If you have any suggestions for improvement, please let me know! OBS-URL: https://build.opensuse.org/request/show/1093305 OBS-URL: https://build.opensuse.org/package/show/network:utilities/httpie?expand=0&rev=26
This commit is contained in:
parent
0bf6812bca
commit
78fe75906b
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 14 21:50:14 UTC 2023 - Simon Vogl <simon.vogl@gmx.net>
|
||||||
|
|
||||||
|
- Enforce building against the primary python version of the
|
||||||
|
current OBS project to avoid build errors
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat May 20 06:14:41 UTC 2023 - Simon Vogl <simon.vogl@gmx.net>
|
Sat May 20 06:14:41 UTC 2023 - Simon Vogl <simon.vogl@gmx.net>
|
||||||
|
|
||||||
|
80
httpie.spec
80
httpie.spec
@ -25,46 +25,48 @@ Group: Productivity/Networking/Web/Utilities
|
|||||||
URL: https://httpie.org/
|
URL: https://httpie.org/
|
||||||
Source: https://github.com/jakubroztocil/httpie/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source: https://github.com/jakubroztocil/httpie/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
Source1: http.1
|
Source1: http.1
|
||||||
|
BuildRequires: %{primary_python}
|
||||||
|
BuildRequires: %{primary_python}-Jinja2
|
||||||
|
BuildRequires: %{primary_python}-PySocks
|
||||||
|
BuildRequires: %{primary_python}-PyYAML
|
||||||
|
BuildRequires: %{primary_python}-Pygments >= 2.5.2
|
||||||
|
BuildRequires: %{primary_python}-Werkzeug
|
||||||
|
BuildRequires: %{primary_python}-charset-normalizer >= 2.0.0
|
||||||
|
BuildRequires: %{primary_python}-defusedxml >= 0.6.0
|
||||||
|
BuildRequires: %{primary_python}-flake8
|
||||||
|
BuildRequires: %{primary_python}-flake8-comprehensions
|
||||||
|
BuildRequires: %{primary_python}-flake8-deprecated
|
||||||
|
BuildRequires: %{primary_python}-multidict >= 4.7.0
|
||||||
|
BuildRequires: %{primary_python}-pip
|
||||||
|
BuildRequires: %{primary_python}-pyOpenSSL
|
||||||
|
BuildRequires: %{primary_python}-pytest
|
||||||
|
BuildRequires: %{primary_python}-pytest-cov
|
||||||
|
BuildRequires: %{primary_python}-pytest-httpbin >= 0.0.6
|
||||||
|
BuildRequires: %{primary_python}-pytest-lazy-fixture >= 0.0.6
|
||||||
|
BuildRequires: %{primary_python}-pytest-mock
|
||||||
|
BuildRequires: %{primary_python}-requests >= 2.22.0
|
||||||
|
BuildRequires: %{primary_python}-requests-toolbelt >= 0.9.1
|
||||||
|
BuildRequires: %{primary_python}-responses
|
||||||
|
BuildRequires: %{primary_python}-rich >= 9.10.0
|
||||||
|
BuildRequires: %{primary_python}-setuptools
|
||||||
|
BuildRequires: %{primary_python}-twine
|
||||||
|
BuildRequires: %{primary_python}-wheel
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-Jinja2
|
Requires: %{primary_python}
|
||||||
BuildRequires: python3-PySocks
|
Requires: %{primary_python}-PySocks
|
||||||
BuildRequires: python3-PyYAML
|
Requires: %{primary_python}-Pygments >= 2.5.2
|
||||||
BuildRequires: python3-Pygments >= 2.5.2
|
Requires: %{primary_python}-charset-normalizer >= 2.0.0
|
||||||
BuildRequires: python3-Werkzeug
|
Requires: %{primary_python}-defusedxml >= 0.6.0
|
||||||
BuildRequires: python3-charset-normalizer >= 2.0.0
|
Requires: %{primary_python}-multidict >= 4.7.0
|
||||||
BuildRequires: python3-defusedxml >= 0.6.0
|
Requires: %{primary_python}-pip
|
||||||
BuildRequires: python3-flake8
|
Requires: %{primary_python}-requests >= 2.22.0
|
||||||
BuildRequires: python3-flake8-comprehensions
|
Requires: %{primary_python}-requests-toolbelt >= 0.9.1
|
||||||
BuildRequires: python3-flake8-deprecated
|
Requires: %{primary_python}-rich >= 9.10.0
|
||||||
BuildRequires: python3-multidict >= 4.7.0
|
Requires: %{primary_python}-setuptools
|
||||||
BuildRequires: python3-pip
|
Provides: %{primary_python}-httpie = 3.2.2
|
||||||
BuildRequires: python3-pyOpenSSL
|
|
||||||
BuildRequires: python3-pytest
|
|
||||||
BuildRequires: python3-pytest-cov
|
|
||||||
BuildRequires: python3-pytest-httpbin >= 0.0.6
|
|
||||||
BuildRequires: python3-pytest-lazy-fixture >= 0.0.6
|
|
||||||
BuildRequires: python3-pytest-mock
|
|
||||||
BuildRequires: python3-requests >= 2.22.0
|
|
||||||
BuildRequires: python3-requests-toolbelt >= 0.9.1
|
|
||||||
BuildRequires: python3-responses
|
|
||||||
BuildRequires: python3-rich >= 9.10.0
|
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
BuildRequires: python3-twine
|
|
||||||
BuildRequires: python3-wheel
|
|
||||||
Requires: python3-PySocks
|
|
||||||
Requires: python3-Pygments >= 2.5.2
|
|
||||||
Requires: python3-charset-normalizer >= 2.0.0
|
|
||||||
Requires: python3-defusedxml >= 0.6.0
|
|
||||||
Requires: python3-multidict >= 4.7.0
|
|
||||||
Requires: python3-pip
|
|
||||||
Requires: python3-requests >= 2.22.0
|
|
||||||
Requires: python3-requests-toolbelt >= 0.9.1
|
|
||||||
Requires: python3-rich >= 9.10.0
|
|
||||||
Requires: python3-setuptools
|
|
||||||
Provides: python%{python_version}-httpie = 3.2.2
|
|
||||||
Provides: python3-httpie = 3.2.2
|
Provides: python3-httpie = 3.2.2
|
||||||
Obsoletes: python%{python_version}-httpie < 2.3.0
|
Obsoletes: %{primary_python}-httpie < 2.3.0
|
||||||
Obsoletes: python3-httpie < 2.3.0
|
Obsoletes: python3-httpie < 2.3.0
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
@ -84,11 +86,11 @@ sed -i -e '/^#!\//, 1d' httpie/__main__.py
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export LC_CTYPE=en_US.UTF-8
|
export LC_CTYPE=en_US.UTF-8
|
||||||
%python3_build
|
python%{python_version} setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export LC_CTYPE=en_US.UTF-8
|
export LC_CTYPE=en_US.UTF-8
|
||||||
%python3_install
|
python%{python_version} setup.py install --root=%{buildroot}
|
||||||
%fdupes %{buildroot}%{_prefix}/lib/python%{python_version}/site-packages
|
%fdupes %{buildroot}%{_prefix}/lib/python%{python_version}/site-packages
|
||||||
install -D -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/http.1
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/http.1
|
||||||
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
|
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user