File firebird-emu.spec of Package firebird-emu
#
# spec file for package firebird-emu
#
# Copyright (c) 2017 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: firebird-emu
Version: 1.5
Release: 0
Summary: Multi-platform emulator of TI-Nspire calculators
License: GPL-3.0
Group: Amusements/Teaching/Other
Url: https://github.com/nspire-emus/firebird
Source: %{name}-%{version}.tar.xz
BuildRequires: zlib-devel
BuildRequires: hicolor-icon-theme
Requires: hicolor-icon-theme
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: qt5-qtbase-devel >= 5.9
BuildRequires: qt5-qtdeclarative-devel
Requires: qt5-qtquickcontrols
%else
BuildRequires: libqt5-qtbase-devel >= 5.9
BuildRequires: libqt5-qtdeclarative-devel
BuildRequires: update-desktop-files
Requires: libqt5-qtquickcontrols
%endif
%description
This project is a community TI-Nspire emulator, originally created by Goplat.
It supports the emulation of Touchpad, TPad CAS, CX and CX CAS calcs on Android, iOS, Linux, macOS and Windows.
%prep
%autosetup
%build
%if 0%{?suse_version}
%qmake5 PREFIX=%{_prefix}
%else
%qmake_qt5 PREFIX=%{_prefix}
%endif
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install INSTALL_ROOT=%{buildroot}
%files
%{_bindir}/firebird-emu
%{_bindir}/firebird-send
%{_datadir}/icons/hicolor/512x512/apps/org.firebird-emus.firebird-emu.png
%{_datadir}/applications/org.firebird-emus.firebird-emu.desktop
%changelog