## Issues Closed
* Issue 275 - Update Codicon to 0.0.36 and fix update script (PR
276 by @dalthviz)
* Issue 264 - FileNotFoundError on fonts due to Windows Font
Blocking policy (PR 273 by @dalthviz)
* Issue 230 - Add Font Awesome 6 and remove deprecated Font
Awesome 4 (PR 274 by @dalthviz)
## Pull Requests Merged
* PR 277 - PR: Revert Qt binging conditional to run example.py
and fix animations start/stop logic (CI), by @dalthviz (254)
* PR 276 - PR: Update Codicon to 0.0.36, by @dalthviz (275)
* PR 274 - PR: Add FontAwesome 6 icons (6.7.2) and change font
update command, by @dalthviz (230)
* PR 273 - PR: Return original font directory when font user
installation load fails, by @dalthviz (264)
* PR 272 - PR: Remove FontAwesome 4 font support, by @dalthviz
* PR 270 - PR: Add fallback to try to load fonts from the system
ones and add method to check info about bundled fonts, by
@dalthviz
- Remove windows script entrypoint to install fonts systemwide
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtAwesome?expand=0&rev=35
87 lines
2.6 KiB
RPMSpec
87 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-QtAwesome
|
|
#
|
|
# 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
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-QtAwesome
|
|
Version: 1.4.0
|
|
Release: 0
|
|
Summary: FontAwesome icons in PyQt and PySide applications
|
|
License: MIT
|
|
URL: https://github.com/spyder-ide/qtawesome
|
|
Source: https://files.pythonhosted.org/packages/source/q/qtawesome/qtawesome-%{version}.tar.gz
|
|
BuildRequires: %{python_module QtPy}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module pytest-qt}
|
|
BuildRequires: %{python_module pytest-xvfb}
|
|
BuildRequires: %{python_module pytest}
|
|
# Choose one of the many backend options for pytest-qt,
|
|
BuildRequires: %{python_module PyQt6}
|
|
# /SECTION
|
|
BuildRequires: dos2unix
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-QtPy
|
|
Provides: python-qtawesome = %{version}-%{release}
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
QtAwesome enables iconic fonts such as Font Awesome and
|
|
Elusive Icons in PyQt and PySide applications.
|
|
|
|
It is a port to Python - PyQt / PySide of the QtAwesome C++
|
|
library by Rick Blommers.
|
|
|
|
%prep
|
|
%setup -q -n qtawesome-%{version}
|
|
dos2unix CHANGELOG.md README.md
|
|
# remove entrypoint only for windows
|
|
sed -i '/qta-install-fonts-all-users/d' setup.py
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%python_clone -a %{buildroot}%{_bindir}/qta-browser
|
|
|
|
%check
|
|
export PYTHONPATH="."
|
|
%pytest -v
|
|
|
|
%post
|
|
%python_install_alternative qta-browser
|
|
|
|
%postun
|
|
%python_uninstall_alternative qta-browser
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.txt
|
|
%doc CHANGELOG.md README.md
|
|
%{python_sitelib}/qtawesome
|
|
%{python_sitelib}/qtawesome-%{version}.dist-info
|
|
%python_alternative %{_bindir}/qta-browser
|
|
|
|
%changelog
|