File winetricks.spec of Package winetricks

#
# spec file for package winetricks
#
# Copyright (c) 2022 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:           winetricks-gcs
Version:        20220411
Release:        0
Summary:        A way to work around problems in WINE
License:        LGPL-2.1-or-later
Group:          System/Emulators/PC
URL:            https://github.com/Winetricks/winetricks
Source0:        winetricks-%{version}.tar.gz
BuildRequires:  update-desktop-files
Requires:       cabextract
Requires:       unzip
#Requires:       wine
Requires:       zenity
Provides:       winetricks = %{version}

%description
Winetricks is a way to work around problems in Wine.

It has a menu of supported games/apps for which it can do all the
workarounds automatically. It also allows the installation of missing
DLLs and tweaking of various WINE settings.

%prep
%setup -q -n winetricks-%{version}

%build
%make_build

%install
%make_install

%suse_update_desktop_file -G Winetricks -r winetricks System Emulator

%post
echo "NoDisplay=true" >> %{_datadir}/applications/winetricks.desktop

%files
%license COPYING
%doc README.md
%{_bindir}/winetricks
%{_datadir}/applications/winetricks.desktop
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/winetricks
%{_datadir}/icons/hicolor
%{_datadir}/icons/hicolor/scalable
%{_datadir}/icons/hicolor/scalable/apps
%{_datadir}/icons/hicolor/scalable/apps/winetricks.svg
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/winetricks.appdata.xml
%{_mandir}/man1/winetricks.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by