1
0

Compare commits

..

5 Commits

2 changed files with 22 additions and 12 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Jun 9 14:21:34 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Mon Jun 2 14:36:11 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 21 10:56:33 UTC 2020 - Petr Gajdos <pgajdos@suse.com> Thu May 21 10:56:33 UTC 2020 - Petr Gajdos <pgajdos@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-ndg-httpsclient # spec file for package python-ndg-httpsclient
# #
# Copyright (c) 2020 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,7 +16,7 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without libalternatives
Name: python-ndg-httpsclient Name: python-ndg-httpsclient
Version: 0.5.1 Version: 0.5.1
Release: 0 Release: 0
@ -25,13 +25,15 @@ License: BSD-2-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/cedadev/ndg_httpsclient/ URL: https://github.com/cedadev/ndg_httpsclient/
Source: https://files.pythonhosted.org/packages/source/n/ndg_httpsclient/ndg_httpsclient-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/n/ndg_httpsclient/ndg_httpsclient-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: alts
Requires: python-pyOpenSSL Requires: python-pyOpenSSL
Requires: python-pyasn1 >= 0.1.1 Requires: python-pyasn1 >= 0.1.1
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@ -45,25 +47,23 @@ SSL peer.
%setup -q -n ndg_httpsclient-%{version} %setup -q -n ndg_httpsclient-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/ndg_httpclient %python_clone -a %{buildroot}%{_bindir}/ndg_httpclient
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
# tests require internet connection # tests require internet connection
%post %pre
%python_install_alternative ndg_httpclient %python_libalternatives_reset_alternative ndg_httpclient
%postun
%python_uninstall_alternative ndg_httpclient
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md
%license ndg/httpsclient/LICENSE %license ndg/httpsclient/LICENSE
%{python_sitelib}/* %{python_sitelib}/ndg
%{python_sitelib}/ndg[-_]httpsclient-%{version}*-info
%python_alternative %{_bindir}/ndg_httpclient %python_alternative %{_bindir}/ndg_httpclient
%changelog %changelog