From 2151bbc828cdc81691a1e531cb70ccee6ad85e1404ba46a06fe495586c8e8354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 26 May 2025 11:33:52 +0000 Subject: [PATCH] Accepting request 1280136 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1280136 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-css-html-js-minify?expand=0&rev=3 --- python-css-html-js-minify.changes | 5 +++++ python-css-html-js-minify.spec | 20 +++++++++++--------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/python-css-html-js-minify.changes b/python-css-html-js-minify.changes index 02f461f..d60e23f 100644 --- a/python-css-html-js-minify.changes +++ b/python-css-html-js-minify.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 26 10:30:35 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Sep 10 12:42:43 UTC 2020 - Marketa Calabkova diff --git a/python-css-html-js-minify.spec b/python-css-html-js-minify.spec index 76cd3b8..f08b0f6 100644 --- a/python-css-html-js-minify.spec +++ b/python-css-html-js-minify.spec @@ -1,7 +1,7 @@ # # spec file for package python-css-html-js-minify # -# 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,8 +16,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%define pkg_version 2.5.5 Name: python-css-html-js-minify Version: 2.5.5.git.1523718195.8f72452 Release: 0 @@ -26,11 +25,13 @@ License: GPL-3.0-only AND LGPL-3.0-only Group: Development/Languages/Python URL: https://github.com/juancarlospaco/css-html-js-minify#css-html-js-minify Source: css-html-js-minify-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires(post): update-alternatives -Requires(preun): update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch %python_subpackages @@ -41,17 +42,17 @@ Async single-file cross-platform no-dependencies Minifier for the Web %setup -q -n css-html-js-minify-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/css-html-js-minify %python_expand %fdupes %{buildroot}%{$python_sitelib} %post %python_install_alternative css-html-js-minify -%preun +%postun %python_uninstall_alternative css-html-js-minify %check @@ -61,6 +62,7 @@ Async single-file cross-platform no-dependencies Minifier for the Web %doc README.md %license LICENCE.lgpl.txt LICENSE.gpl.txt %python_alternative %{_bindir}/css-html-js-minify -%{python_sitelib}/* +%{python_sitelib}/css[-_]html[-_]js[-_]minify +%{python_sitelib}/css[-_]html[-_]js[-_]minify-%{pkg_version}*-info %changelog