File qzdl.spec of Package qzdl
#
# spec file for package qzdl
#
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# 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: qzdl
Version: 3.3.0.0+git20211008.9c76408
Release: 0
Summary: A Doom WAD Launcher
License: GPL-3.0-or-later
Group: Amusements/Games/Other
URL: https://zdl.vectec.net/
#Git-Clone: https://github.com/qbasicer/qzdl.git
Source: %{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE: 0001-Unbundle-libinih.patch
Patch0: 0001-Unbundle-libinih.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: pkgconfig(inih)
%description
A frontend for multiple Doom source ports.
%prep
%autosetup
%build
%cmake
%make_build
%install
install -Dpm 0755 build/zdl %{buildroot}%{_bindir}/qzdl
for i in 32 64 128 256 512 ; do
install -Dm 0644 res/zdl3-${i}x${i}.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
done
install -Dm 0644 res/zdl3.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%suse_update_desktop_file -c %{name} "A Doom WAD Launcher" %{name} %{name} %{name} Game Amusement
%files
%license LICENSE
%doc AUTHORS CHANGELOG CONFFORMAT.md README
%{_bindir}/qzdl
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%changelog