File q4wine.spec of Package q4wine
#
# spec file for package q4wine
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: q4wine
Version: 1.1+r2
Release: 0
Summary: Qt4 GUI for WINE
License: GPL-3.0
Group: System/Emulators/PC
Url: http://q4wine.brezblock.org.ua/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-1.1-r2.tar.bz2
# PATCH-FIX-UPSTREAM q4wine-fix-documentation-url.patch boo#926859 tehnick-8@yandex.ru -- Fix documentation URL. Use web.archive.org until project website will be repaired. Also disable automatic opening this documentation after initial program configuring.
Patch0: q4wine-fix-documentation-url.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: fuseiso
BuildRequires: hicolor-icon-theme
BuildRequires: icoutils
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(QtCore)
BuildRequires: pkgconfig(QtDBus)
BuildRequires: pkgconfig(QtGui)
BuildRequires: pkgconfig(QtNetwork)
BuildRequires: pkgconfig(QtSql)
BuildRequires: pkgconfig(QtXml)
Requires: fuseiso
Requires: icoutils
Requires: libqt4-sql-sqlite
Requires: sqlite3
Requires: sudo
Requires: wine
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Q4Wine is an Qt4-based 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 -qn %{name}-1.1-r2
%patch0 -p1
%build
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_C_FLAGS="%{optflags}" \
-DCMAKE_CXX_FLAGS="%{optflags}" \
-DCMAKE_NO_BUILTIN_CHRPATH=ON
make %{?_smp_mflags} VERBOSE=1
%install
pushd build
%make_install
popd
%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
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README TODO
%{_bindir}/%{name}*
%{_datadir}/%{name}/
%exclude %{_datadir}/%{name}/i18n/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.*
%{_libdir}/%{name}/
%doc %{_mandir}/man?/*
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%dir %{_datadir}/%{name}/i18n/
%changelog