File q4wine.spec of Package q4wine
#
# spec file for package q4wine
#
# Copyright (c) 2021 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/
#
Name: q4wine
Version: 1.3.13
Release: 0
Summary: Qt GUI for WINE
License: GPL-3.0-only
Group: System/Emulators/PC
URL: https://q4wine.brezblock.org.ua/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
BuildRequires: cmake >= 2.8.11
BuildRequires: fdupes
BuildRequires: fuseiso
BuildRequires: hicolor-icon-theme
BuildRequires: icoutils >= 0.26.0
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: pkgconfig(Qt5Core) >= 5.2.1
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
Requires: fuseiso
Requires: icoutils >= 0.26.0
Requires: libqt5-sql-sqlite
Requires: sqlite3 >= 3.5.6
Requires: sudo
Requires: wget
Requires: which >= 2.19
Requires: wine
Recommends: %{name}-lang
%description
Q4Wine is an Qt GUI for WINE. It will help you to manage wine
prefixes and installed applications.
General features:
- Can export Qt color theme into wine colors settings.
- Can easy work with different wine versions at the same time.
- Easy creating, deleting and managing prefixes (WINEPREFIX).
- Easy controlling for wine process.
- Autostart icons support.
- Easy cd-image use.
- You can extract icons from PE files (.exe .dll).
- Easy backup and restore for managed prefixes.
- Wine AppDB browser.
- Logging subsystem.
- Winetricks support.
%lang_package
%prep
%setup -q
%build
mkdir build
cd build
# FIXME: you should use the %%cmake macros
cmake .. \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_C_FLAGS="%{optflags}" \
-DCMAKE_CXX_FLAGS="%{optflags}" \
-DCMAKE_NO_BUILTIN_CHRPATH=ON \
-DQT5=ON
%make_build
%install
pushd build
%make_install
popd
rm %{buildroot}%{_datadir}/icons/ubuntu-mono-dark/scalable/apps/*
%fdupes -s %{buildroot}%{_datadir}/
%find_lang %{name} --with-qt
%suse_update_desktop_file %{name}
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%license COPYING
%doc AUTHORS ChangeLog README
%{_bindir}/%{name}*
%{_datadir}/%{name}/
%exclude %{_datadir}/%{name}/l10n/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}*
%{_libdir}/%{name}/
%{_mandir}/man?/*
%files lang -f %{name}.lang
%dir %{_datadir}/%{name}/l10n/
%changelog