2019-01-30 12:02:10 +00:00
|
|
|
#
|
2025-06-30 04:08:58 +00:00
|
|
|
# spec file for package python-QDarkStyle
|
2019-01-30 12:02:10 +00:00
|
|
|
#
|
2025-06-30 04:08:58 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2019-01-30 12:02:10 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2019-05-23 13:18:37 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
2019-01-30 12:02:10 +00:00
|
|
|
|
|
|
|
|
|
2020-05-18 14:20:12 +00:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
|
%define psuffix -test
|
|
|
|
|
%bcond_without test
|
|
|
|
|
%else
|
|
|
|
|
%define psuffix %{nil}
|
|
|
|
|
%bcond_with test
|
|
|
|
|
%endif
|
2023-08-17 07:59:56 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2020-01-28 08:11:39 +00:00
|
|
|
%define X_display ":98"
|
2020-05-18 14:20:12 +00:00
|
|
|
Name: python-QDarkStyle%{psuffix}
|
2023-11-26 22:04:30 +00:00
|
|
|
Version: 3.2.1
|
2019-01-30 12:02:10 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: A dark stylesheet for Python and Qt applications
|
2019-05-23 13:18:37 +00:00
|
|
|
License: MIT
|
2020-01-28 08:11:39 +00:00
|
|
|
URL: https://github.com/ColinDuquesnoy/QDarkStyleSheet
|
2020-01-28 08:32:04 +00:00
|
|
|
Source: https://github.com/ColinDuquesnoy/QDarkStyleSheet/archive/v%{version}.tar.gz#/QDarkStyle-%{version}.tar.gz
|
2025-06-30 04:08:58 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-01-30 12:02:10 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-06-30 04:08:58 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-01-30 12:02:10 +00:00
|
|
|
BuildRequires: fdupes
|
2019-05-23 13:18:37 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-11-26 22:04:30 +00:00
|
|
|
Requires: python-QtPy >= 2
|
|
|
|
|
Requires(post): update-alternatives
|
2025-06-30 04:08:58 +00:00
|
|
|
Requires(postun): update-alternatives
|
2019-01-30 12:02:10 +00:00
|
|
|
BuildArch: noarch
|
2020-05-18 14:20:12 +00:00
|
|
|
%if %{with test}
|
|
|
|
|
BuildRequires: %{python_module QDarkStyle = %{version}}
|
2023-11-26 22:04:30 +00:00
|
|
|
BuildRequires: %{python_module QtPy >= 2}
|
2020-05-18 14:20:12 +00:00
|
|
|
BuildRequires: %{python_module qt5-devel}
|
2020-12-29 20:45:30 +00:00
|
|
|
# pyside2 is for primary python3 flavor only
|
2024-06-18 16:20:57 +00:00
|
|
|
# but the exception was in Leap 15.6 has both built with 3.6 and 3.11
|
2025-06-03 13:20:43 +00:00
|
|
|
%if 0%{?suse_version} == 1500 && 0%{?sle_version} == 150600
|
2024-06-18 16:20:57 +00:00
|
|
|
BuildRequires: %{python_module pyside2}
|
|
|
|
|
%endif
|
2020-05-18 14:20:12 +00:00
|
|
|
BuildRequires: xvfb-run
|
|
|
|
|
%endif
|
2019-01-30 12:02:10 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
QDarkStyle is a dark stylesheet for Python and Qt applications.
|
|
|
|
|
|
|
|
|
|
%prep
|
Accepting request 883909 from home:bnavigator:branches:devel:languages:python
- Update to version 3.0.2
* Enable the use of setTabColor and add example, fixes #212
* Update description to inform about Python 2 and Qt4 unsupported
versions
* Add missing examples #251
* Enhancement of state of active/non-active items in views #209
* Update manifest to include UI files
* New structure to create different palettes #268, #164
* New light palette #240, #268
* Improved dark palette #252, #266, #264, #265, #248
* Improved tool buttons #260
* Improved tabs #270, #271, #267
* Improved combo boxes #263
* Improved close/float sizes os-dependent #267
* Fix checkbox problems #200, #259, #239
* Fix indicators' colors in menus and tables #242
* Fix dock widget tab hover #243
* Workaround for menus with indicators and icons #214
* Update to be compatible with Qt 5.[12,13,14,15]
- add QDarkStyle-issue275-pyside2.patch
gh#ColinDuquesnoy/QDarkStyleSheet#275
OBS-URL: https://build.opensuse.org/request/show/883909
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QDarkStyle?expand=0&rev=13
2021-04-09 09:22:46 +00:00
|
|
|
%autosetup -p1 -n QDarkStyleSheet-%{version}
|
|
|
|
|
sed -i '1{\,^#!%{_bindir}/env python,d}' qdarkstyle/*.py qdarkstyle/*/*.py
|
2019-01-30 12:02:10 +00:00
|
|
|
|
|
|
|
|
%build
|
2020-05-18 14:20:12 +00:00
|
|
|
%if !%{with test}
|
2025-06-30 04:08:58 +00:00
|
|
|
%pyproject_wheel
|
2020-05-18 14:20:12 +00:00
|
|
|
%endif
|
2019-01-30 12:02:10 +00:00
|
|
|
|
|
|
|
|
%install
|
2020-05-18 14:20:12 +00:00
|
|
|
%if !%{with test}
|
2025-06-30 04:08:58 +00:00
|
|
|
%pyproject_install
|
2020-12-29 20:45:30 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/qdarkstyle
|
Accepting request 883909 from home:bnavigator:branches:devel:languages:python
- Update to version 3.0.2
* Enable the use of setTabColor and add example, fixes #212
* Update description to inform about Python 2 and Qt4 unsupported
versions
* Add missing examples #251
* Enhancement of state of active/non-active items in views #209
* Update manifest to include UI files
* New structure to create different palettes #268, #164
* New light palette #240, #268
* Improved dark palette #252, #266, #264, #265, #248
* Improved tool buttons #260
* Improved tabs #270, #271, #267
* Improved combo boxes #263
* Improved close/float sizes os-dependent #267
* Fix checkbox problems #200, #259, #239
* Fix indicators' colors in menus and tables #242
* Fix dock widget tab hover #243
* Workaround for menus with indicators and icons #214
* Update to be compatible with Qt 5.[12,13,14,15]
- add QDarkStyle-issue275-pyside2.patch
gh#ColinDuquesnoy/QDarkStyleSheet#275
OBS-URL: https://build.opensuse.org/request/show/883909
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QDarkStyle?expand=0&rev=13
2021-04-09 09:22:46 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/qdarkstyle.example
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/qdarkstyle.utils
|
2019-01-30 12:02:10 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2020-05-18 14:20:12 +00:00
|
|
|
%endif
|
2019-01-30 12:02:10 +00:00
|
|
|
|
Accepting request 883909 from home:bnavigator:branches:devel:languages:python
- Update to version 3.0.2
* Enable the use of setTabColor and add example, fixes #212
* Update description to inform about Python 2 and Qt4 unsupported
versions
* Add missing examples #251
* Enhancement of state of active/non-active items in views #209
* Update manifest to include UI files
* New structure to create different palettes #268, #164
* New light palette #240, #268
* Improved dark palette #252, #266, #264, #265, #248
* Improved tool buttons #260
* Improved tabs #270, #271, #267
* Improved combo boxes #263
* Improved close/float sizes os-dependent #267
* Fix checkbox problems #200, #259, #239
* Fix indicators' colors in menus and tables #242
* Fix dock widget tab hover #243
* Workaround for menus with indicators and icons #214
* Update to be compatible with Qt 5.[12,13,14,15]
- add QDarkStyle-issue275-pyside2.patch
gh#ColinDuquesnoy/QDarkStyleSheet#275
OBS-URL: https://build.opensuse.org/request/show/883909
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QDarkStyle?expand=0&rev=13
2021-04-09 09:22:46 +00:00
|
|
|
%if %{with test}
|
|
|
|
|
%check
|
|
|
|
|
export LANG=C.UTF-8
|
|
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run $python -B -m qdarkstyle.example --qt_from=pyqt5 --test
|
2025-06-03 13:20:43 +00:00
|
|
|
%if 0%{?suse_version} == 1500 && 0%{?sle_version} == 150600
|
Accepting request 883909 from home:bnavigator:branches:devel:languages:python
- Update to version 3.0.2
* Enable the use of setTabColor and add example, fixes #212
* Update description to inform about Python 2 and Qt4 unsupported
versions
* Add missing examples #251
* Enhancement of state of active/non-active items in views #209
* Update manifest to include UI files
* New structure to create different palettes #268, #164
* New light palette #240, #268
* Improved dark palette #252, #266, #264, #265, #248
* Improved tool buttons #260
* Improved tabs #270, #271, #267
* Improved combo boxes #263
* Improved close/float sizes os-dependent #267
* Fix checkbox problems #200, #259, #239
* Fix indicators' colors in menus and tables #242
* Fix dock widget tab hover #243
* Workaround for menus with indicators and icons #214
* Update to be compatible with Qt 5.[12,13,14,15]
- add QDarkStyle-issue275-pyside2.patch
gh#ColinDuquesnoy/QDarkStyleSheet#275
OBS-URL: https://build.opensuse.org/request/show/883909
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QDarkStyle?expand=0&rev=13
2021-04-09 09:22:46 +00:00
|
|
|
# pyside2 is for primary python3 flavor only
|
2024-06-18 16:20:57 +00:00
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} xvfb-run python%{python_bin_suffix} -B -m qdarkstyle.example --qt_from=pyside2 --test
|
2025-06-03 13:20:43 +00:00
|
|
|
%endif
|
Accepting request 883909 from home:bnavigator:branches:devel:languages:python
- Update to version 3.0.2
* Enable the use of setTabColor and add example, fixes #212
* Update description to inform about Python 2 and Qt4 unsupported
versions
* Add missing examples #251
* Enhancement of state of active/non-active items in views #209
* Update manifest to include UI files
* New structure to create different palettes #268, #164
* New light palette #240, #268
* Improved dark palette #252, #266, #264, #265, #248
* Improved tool buttons #260
* Improved tabs #270, #271, #267
* Improved combo boxes #263
* Improved close/float sizes os-dependent #267
* Fix checkbox problems #200, #259, #239
* Fix indicators' colors in menus and tables #242
* Fix dock widget tab hover #243
* Workaround for menus with indicators and icons #214
* Update to be compatible with Qt 5.[12,13,14,15]
- add QDarkStyle-issue275-pyside2.patch
gh#ColinDuquesnoy/QDarkStyleSheet#275
OBS-URL: https://build.opensuse.org/request/show/883909
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QDarkStyle?expand=0&rev=13
2021-04-09 09:22:46 +00:00
|
|
|
# no qtsass compiler (extras_require 'develop')
|
|
|
|
|
#%%pytest
|
|
|
|
|
%endif
|
|
|
|
|
|
2020-12-29 20:45:30 +00:00
|
|
|
%post
|
Accepting request 883909 from home:bnavigator:branches:devel:languages:python
- Update to version 3.0.2
* Enable the use of setTabColor and add example, fixes #212
* Update description to inform about Python 2 and Qt4 unsupported
versions
* Add missing examples #251
* Enhancement of state of active/non-active items in views #209
* Update manifest to include UI files
* New structure to create different palettes #268, #164
* New light palette #240, #268
* Improved dark palette #252, #266, #264, #265, #248
* Improved tool buttons #260
* Improved tabs #270, #271, #267
* Improved combo boxes #263
* Improved close/float sizes os-dependent #267
* Fix checkbox problems #200, #259, #239
* Fix indicators' colors in menus and tables #242
* Fix dock widget tab hover #243
* Workaround for menus with indicators and icons #214
* Update to be compatible with Qt 5.[12,13,14,15]
- add QDarkStyle-issue275-pyside2.patch
gh#ColinDuquesnoy/QDarkStyleSheet#275
OBS-URL: https://build.opensuse.org/request/show/883909
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QDarkStyle?expand=0&rev=13
2021-04-09 09:22:46 +00:00
|
|
|
%python_install_alternative qdarkstyle qdarkstyle.example qdarkstyle.utils
|
2020-12-29 20:45:30 +00:00
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative qdarkstyle
|
|
|
|
|
|
2020-05-18 14:20:12 +00:00
|
|
|
%if !%{with test}
|
2019-01-30 12:02:10 +00:00
|
|
|
%files %{python_files}
|
2020-01-28 08:11:39 +00:00
|
|
|
%doc AUTHORS.rst CHANGES.rst README.rst
|
|
|
|
|
%license LICENSE.rst
|
2020-12-29 20:45:30 +00:00
|
|
|
%python_alternative %{_bindir}/qdarkstyle
|
Accepting request 883909 from home:bnavigator:branches:devel:languages:python
- Update to version 3.0.2
* Enable the use of setTabColor and add example, fixes #212
* Update description to inform about Python 2 and Qt4 unsupported
versions
* Add missing examples #251
* Enhancement of state of active/non-active items in views #209
* Update manifest to include UI files
* New structure to create different palettes #268, #164
* New light palette #240, #268
* Improved dark palette #252, #266, #264, #265, #248
* Improved tool buttons #260
* Improved tabs #270, #271, #267
* Improved combo boxes #263
* Improved close/float sizes os-dependent #267
* Fix checkbox problems #200, #259, #239
* Fix indicators' colors in menus and tables #242
* Fix dock widget tab hover #243
* Workaround for menus with indicators and icons #214
* Update to be compatible with Qt 5.[12,13,14,15]
- add QDarkStyle-issue275-pyside2.patch
gh#ColinDuquesnoy/QDarkStyleSheet#275
OBS-URL: https://build.opensuse.org/request/show/883909
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QDarkStyle?expand=0&rev=13
2021-04-09 09:22:46 +00:00
|
|
|
%python_alternative %{_bindir}/qdarkstyle.example
|
|
|
|
|
%python_alternative %{_bindir}/qdarkstyle.utils
|
2019-01-30 12:02:10 +00:00
|
|
|
%{python_sitelib}/qdarkstyle
|
2025-06-30 04:08:58 +00:00
|
|
|
%{python_sitelib}/[Qq][Dd]ark[Ss]tyle-%{version}.dist-info
|
2020-05-18 14:20:12 +00:00
|
|
|
%endif
|
2019-01-30 12:02:10 +00:00
|
|
|
|
|
|
|
|
%changelog
|