From 9d800299b9f9a0cf986e33ed6daea46181a32d095bfe3b25605ad102b14f89e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 26 May 2025 11:35:19 +0000 Subject: [PATCH] Accepting request 1280119 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1280119 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-csscompressor?expand=0&rev=8 --- python-csscompressor.changes | 5 +++++ python-csscompressor.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-csscompressor.changes b/python-csscompressor.changes index 5965a94..143a589 100644 --- a/python-csscompressor.changes +++ b/python-csscompressor.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 26 10:43:51 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Jun 20 05:21:20 UTC 2023 - Andreas Schneider diff --git a/python-csscompressor.spec b/python-csscompressor.spec index 68deed0..e58456b 100644 --- a/python-csscompressor.spec +++ b/python-csscompressor.spec @@ -1,7 +1,7 @@ # # spec file for package python-csscompressor # -# Copyright (c) 2023 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 @@ -25,8 +25,10 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/sprymix/csscompressor Source: https://files.pythonhosted.org/packages/source/c/csscompressor/csscompressor-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -39,10 +41,10 @@ Almost exact python port of YUI CSS Compressor. %setup -q -n csscompressor-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -51,6 +53,7 @@ Almost exact python port of YUI CSS Compressor. %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/csscompressor +%{python_sitelib}/csscompressor-%{version}*-info %changelog