Name: awf-qt6 Version: 4.0.0 Release: 1%{?dist} Summary: Theme preview application for Qt 6 Summary(fr): Application d'aperçu de thème pour Qt 6 License: GPL-3.0-or-later URL: https://github.com/luigifab/awf-extended Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: aspell-fr BuildRequires: autoconf BuildRequires: automake BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: gettext BuildRequires: qt6-qtbase-devel Requires: qt6-qtbase Requires: hicolor-icon-theme #ecommends: qt6-gtk-platformtheme = qt6-qtbase-gui Recommends: qt6-globalqss Recommends: qt6-qtsvg Suggests: libnotify >= 0.7.0 %description %{expand: A widget factory is a theme preview application for GTK and Qt. It displays the various widget types in a single window allowing to see the visual effect of the applied theme. This package provides the program for Qt 6.} %description -l fr %{expand: La fabrique à widgets est une application d'aperçu de thème pour GTK et Qt. Elle affiche les différents types de widgets dans une seule fenêtre permettant de voir l'effet visuel du thème appliqué. Ce paquet fournit le programme pour Qt 6.} %prep %setup -q -n awf-extended-%{version} %build autoreconf -fi %configure --enable-only-qt6 %make_build %install %make_install install -dm 755 %{buildroot}%{_datadir}/applications/ desktop-file-install --dir=%{buildroot}%{_datadir}/applications/ data/%{name}.desktop install -dm 755 %{buildroot}%{_datadir}/icons/hicolor/ for file in data/icons/*/*/awf.png; do mv $file ${file/\/awf.png/\/%{name}.png}; done for file in data/icons/*/*/awf.svg; do mv $file ${file/\/awf.svg/\/%{name}.svg}; done cp -a data/icons/* %{buildroot}%{_datadir}/icons/hicolor/ install -Dpm 644 data/%{name}.bash %{buildroot}%{bash_completions_dir}/%{name} install -Dpm 644 data/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 install -Dpm 644 data/%{name}.fr.1 %{buildroot}%{_mandir}/fr/man1/%{name}.1 for file in src/po/*.po; do code=$(basename "$file" .po) install -dm 755 %{buildroot}%{_datadir}/locale/$code/LC_MESSAGES/ msgfmt src/po/$code.po -o %{buildroot}%{_datadir}/locale/$code/LC_MESSAGES/%{name}.mo done %find_lang %{name} --with-man %files -f %{name}.lang %license LICENSE %doc README.md %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.png %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{bash_completions_dir}/%{name} %{_mandir}/man1/%{name}.1* %changelog * Tue Mar 03 2026 Fabrice Creuzot - 4.0.0-1 - Initial Fedora package release (Closes: rhbz#2428546)