File winegui.spec of Package winegui
#
# spec file for package winegui
#
# Copyright (c) 2023 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: winegui
Version: 2.8.1
Release: 0
Summary: A user-friendly WINE manager
License: AGPL-3.0-only
Group: Amusements/Games/Other
URL: https://gitlab.melroy.org/melroy/winegui
Source0: %{name}-%{version}.tar.gz
Patch1: %{name}-remove_check_new_version.patch
BuildRequires: cmake >= 3.20
# Optional
BuildRequires: doxygen
BuildRequires: git
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gtkmm-3.0)
#
Requires: wine
Requires: winetricks
Recommends: cppcheck
Recommends: graphviz
Recommends: rpm
%if 0%{?suse_version} < 1600
BuildRequires: gcc13
BuildRequires: gcc13-c++
%else
BuildRequires: gcc
BuildRequires: gcc-c++
%endif
%description
At last, a user-interface friendly Wine (A compatibility layer capable of running Windows applications under Linux) Manager.
%prep
%setup -q
%patch -P 1 -p1
%build
%if 0%{?suse_version} < 1600
export CC=gcc-13
export CXX=g++-13
%endif
sed -i -e 's|LOCAL_PROJECT_VERSION "1.0.0"|LOCAL_PROJECT_VERSION "%{version}"|g' CMakeLists.txt
%cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=%{_prefix}
%cmake_build
%install
%cmake_install
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.melroy.%{name}.gschema.xml
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/%{name}/images
%changelog