From df206a3552404cd2148990d2c49bc6f68d8d8597475c2bb085a248fef4ac4e8a Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 30 Jun 2025 04:08:58 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QDarkStyle?expand=0&rev=23 --- python-QDarkStyle.changes | 5 +++++ python-QDarkStyle.spec | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python-QDarkStyle.changes b/python-QDarkStyle.changes index eaf7b47..a2796cb 100644 --- a/python-QDarkStyle.changes +++ b/python-QDarkStyle.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 30 04:08:40 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Mon Jun 2 08:54:23 UTC 2025 - Christophe Marin diff --git a/python-QDarkStyle.spec b/python-QDarkStyle.spec index e7d3587..d1909f2 100644 --- a/python-QDarkStyle.spec +++ b/python-QDarkStyle.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-QDarkStyle # -# 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 @@ -31,15 +31,16 @@ Version: 3.2.1 Release: 0 Summary: A dark stylesheet for Python and Qt applications License: MIT -Group: Development/Languages/Python URL: https://github.com/ColinDuquesnoy/QDarkStyleSheet Source: https://github.com/ColinDuquesnoy/QDarkStyleSheet/archive/v%{version}.tar.gz#/QDarkStyle-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-QtPy >= 2 Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %if %{with test} BuildRequires: %{python_module QDarkStyle = %{version}} @@ -63,12 +64,12 @@ sed -i '1{\,^#!%{_bindir}/env python,d}' qdarkstyle/*.py qdarkstyle/*/*.py %build %if !%{with test} -%python_build +%pyproject_wheel %endif %install %if !%{with test} -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/qdarkstyle %python_clone -a %{buildroot}%{_bindir}/qdarkstyle.example %python_clone -a %{buildroot}%{_bindir}/qdarkstyle.utils @@ -101,7 +102,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} xvfb-run python%{python_bin_suffix} -B %python_alternative %{_bindir}/qdarkstyle.example %python_alternative %{_bindir}/qdarkstyle.utils %{python_sitelib}/qdarkstyle -%{python_sitelib}/QDarkStyle-%{version}*-info +%{python_sitelib}/[Qq][Dd]ark[Ss]tyle-%{version}.dist-info %endif %changelog