From 57c377420c3a4f8a26e5c3e1334d3faef34fbe064476a3383f284be9c88c8d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 14:36:25 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ndg-httpsclient?expand=0&rev=13 --- python-ndg-httpsclient.changes | 5 +++++ python-ndg-httpsclient.spec | 16 +++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/python-ndg-httpsclient.changes b/python-ndg-httpsclient.changes index e1eaf7e..864480d 100644 --- a/python-ndg-httpsclient.changes +++ b/python-ndg-httpsclient.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 2 14:36:11 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu May 21 10:56:33 UTC 2020 - Petr Gajdos diff --git a/python-ndg-httpsclient.spec b/python-ndg-httpsclient.spec index 4edac31..b7796a5 100644 --- a/python-ndg-httpsclient.spec +++ b/python-ndg-httpsclient.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ndg-httpsclient Version: 0.5.1 Release: 0 @@ -25,13 +24,15 @@ License: BSD-2-Clause Group: Development/Languages/Python URL: https://github.com/cedadev/ndg_httpsclient/ 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 wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pyOpenSSL Requires: python-pyasn1 >= 0.1.1 -Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch %python_subpackages @@ -45,10 +46,10 @@ SSL peer. %setup -q -n ndg_httpsclient-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/ndg_httpclient %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -63,7 +64,8 @@ SSL peer. %files %{python_files} %doc README.md %license ndg/httpsclient/LICENSE -%{python_sitelib}/* +%{python_sitelib}/ndg[-_]httpsclient +%{python_sitelib}/ndg[-_]httpsclient-%{version}*-info %python_alternative %{_bindir}/ndg_httpclient %changelog From 1bae189bc05e539aa6fb9bd288ac15d7a61d8f855e29f3fb038565727a74a202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 12:58:33 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ndg-httpsclient?expand=0&rev=14 --- python-ndg-httpsclient.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-ndg-httpsclient.spec b/python-ndg-httpsclient.spec index b7796a5..601f36e 100644 --- a/python-ndg-httpsclient.spec +++ b/python-ndg-httpsclient.spec @@ -64,7 +64,7 @@ SSL peer. %files %{python_files} %doc README.md %license ndg/httpsclient/LICENSE -%{python_sitelib}/ndg[-_]httpsclient +%{python_sitelib}/ndg %{python_sitelib}/ndg[-_]httpsclient-%{version}*-info %python_alternative %{_bindir}/ndg_httpclient