From 78d3c3b1ffbc050d3d0f297799aed121f2ae28f1c01259170af24a937eb1170f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 30 May 2025 14:13:18 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libsass?expand=0&rev=26 --- python-libsass.changes | 5 +++++ python-libsass.spec | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-libsass.changes b/python-libsass.changes index 45f89f1..f86ea97 100644 --- a/python-libsass.changes +++ b/python-libsass.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 30 14:13:03 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sat Jan 13 20:45:42 UTC 2024 - Dirk Müller diff --git a/python-libsass.spec b/python-libsass.spec index aa1b7a1..81416ee 100644 --- a/python-libsass.spec +++ b/python-libsass.spec @@ -1,7 +1,7 @@ # # spec file for package python-libsass # -# Copyright (c) 2024 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,8 @@ # -%{?sle15_python_module_pythons} %define _name libsass-python +%{?sle15_python_module_pythons} Name: python-libsass Version: 0.23.0 Release: 0 @@ -28,14 +28,16 @@ URL: https://github.com/sass/libsass-python Source: https://github.com/sass/libsass-python/archive/%{version}.tar.gz BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libsass-devel >= 3.6.4 BuildRequires: python-rpm-macros Requires: python-setuptools -Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(post): alts +Requires(postun): alts # SECTION test requirements BuildRequires: %{python_module Werkzeug} BuildRequires: %{python_module pytest} @@ -52,11 +54,11 @@ with no Ruby stack at all! %build sed -i -e '/^#!\//, 1d' *.py export SYSTEM_SASS=true -%python_build +%pyproject_wheel %install export SYSTEM_SASS=true -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/pysassc %{python_expand \ # We don't want to install tests