File QLogo.spec of Package QLogo
#
# spec file for package QLogo
#
# Copyright (c) 2018 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: QLogo
Version: 0.92
Release: 0
Summary: UCBLogo-compatible interpreter
License: GPL-2.0-or-later
Group: Development/Languages/Other
URL: https://www.qlogo.org/
Source0: https://www.qlogo.org/assets/sources/%{name}-%{version}.tgz
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Core) >= 5.6
BuildRequires: pkgconfig(Qt5Help) >= 5.6
BuildRequires: pkgconfig(Qt5Widgets) >= 5.6
%description
A UCBLogo-compatible interpreter with hardware-accelerated graphics and Unicode text.
%prep
%setup -q
%build
qmake-qt5 %{name}.pro -spec linux-g++ QMAKE_CFLAGS+="%{optflags}" QMAKE_CXXFLAGS+="%{optflags}" QMAKE_STRIP="/bin/true";
make %{?_smp_mflags}
%install
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
%suse_update_desktop_file -i %{name}
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp %{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
%files
%license LICENSE
%doc README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog