15
0

Compare commits

2 Commits

2 changed files with 13 additions and 10 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 6 08:12:09 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 22 23:32:04 UTC 2021 - Matej Cepl <mcepl@suse.com> Mon Mar 22 23:32:04 UTC 2021 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-HTTPolice # spec file for package python-HTTPolice
# #
# Copyright (c) 2021 SUSE LLC # Copyright (c) 2025 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
@@ -16,8 +16,6 @@
# #
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-HTTPolice Name: python-HTTPolice
Version: 0.9.0 Version: 0.9.0
Release: 0 Release: 0
@@ -31,8 +29,10 @@ BuildRequires: %{python_module bitstring >= 3.1.4}
BuildRequires: %{python_module defusedxml >= 0.5.0} BuildRequires: %{python_module defusedxml >= 0.5.0}
BuildRequires: %{python_module dominate >= 2.2.0} BuildRequires: %{python_module dominate >= 2.2.0}
BuildRequires: %{python_module lxml >= 4.1.0} BuildRequires: %{python_module lxml >= 4.1.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-Brotli >= 1.0.1 Requires: python-Brotli >= 1.0.1
@@ -41,7 +41,7 @@ Requires: python-defusedxml >= 0.5.0
Requires: python-dominate >= 2.2.0 Requires: python-dominate >= 2.2.0
Requires: python-lxml >= 4.1.0 Requires: python-lxml >= 4.1.0
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun):update-alternatives Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -55,17 +55,14 @@ problems in your HTTP server or client.
rm pytest.ini rm pytest.ini
%build %build
export LANG=en_US.UTF-8 %pyproject_wheel
%python_build
%install %install
export LANG=en_US.UTF-8 %pyproject_install
%python_install
%python_clone -a %{buildroot}%{_bindir}/httpolice %python_clone -a %{buildroot}%{_bindir}/httpolice
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
export LANG=en_US.UTF-8
# gh#vfaronov/httpolice#10 # gh#vfaronov/httpolice#10
%pytest -k 'not test_from_file' %pytest -k 'not test_from_file'
@@ -79,6 +76,7 @@ export LANG=en_US.UTF-8
%license LICENSE.txt %license LICENSE.txt
%doc CHANGELOG.rst README.rst %doc CHANGELOG.rst README.rst
%python_alternative %{_bindir}/httpolice %python_alternative %{_bindir}/httpolice
%{python_sitelib}/* %{python_sitelib}/httpolice
%{python_sitelib}/httpolice-%{version}*info
%changelog %changelog