commit bddd2f4d5a7beb721663e7c231a61513a20b6dea
Author: Ben Rosser <rosser.bjr(a)gmail.com>
Date: Tue Mar 27 11:20:35 2018 -0400
Initial import (#4444).
.gitignore | 2 ++
firebird-emu.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 2 ++
3 files changed, 73 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6799679 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/firebird-1.4.tar.gz
+/gif-h-8cb648f.tar.gz
diff --git a/firebird-emu.spec b/firebird-emu.spec
new file mode 100644
index 0000000..1833cb9
--- /dev/null
+++ b/firebird-emu.spec
@@ -0,0 +1,69 @@
+%global commit1 8cb648fb02d3f18fb7f325cbe71bbb0a56a0bbe7
+%global shortcommit1 %(c=%{commit1}; echo ${c:0:7})
+
+Name: firebird-emu
+Version: 1.4
+Release: 1%{?dist}
+Summary: Third-party emulator for ARM-based TI calculators
+
+License: GPLv3 and Public Domain
+URL:
https://github.com/nspire-emus/firebird
+Source0:
https://github.com/nspire-emus/firebird/archive/v%{version}/firebird-%{ve...
+
+# Bundled gif-h as submodule.
+Source1:
https://github.com/jacobly0/gif-h/archive/%{commit1}.tar.gz#/gif-h-%{shor...
+
+BuildRequires: qt5-qtbase-devel
+BuildRequires: qt5-qtquickcontrols2-devel
+BuildRequires: zlib-devel
+BuildRequires: desktop-file-utils
+
+Requires: hicolor-icon-theme
+
+# Bundled copy of gif-h, an unversioned, one-file header-only C++ library
+# that was forked by the firebird-emu developers.
+# There is no version, so just use YYYYMMDD.revision.
+Provides: bundled(gif-h) = 20180321.%{commit1}
+
+%description
+This project is the community, third-party TI Nspire emulator,
+Texas Instruments' ARM-based series of graphing calculators.
+It supports the emulation of Touchpad, CX and CX CAS calcs on
+Android, iOS, Linux, Mac and Windows.
+
+%prep
+%autosetup -n firebird-%{version}
+
+# Fix up desktop file.
+sed 's/DesktopUtility/X-DesktopUtility/g' -i
resources/org.firebird.firebird-emu.desktop
+
+# Install gif-h submodule from source1 tarball.
+cd core/
+rm -rf gif-h/
+tar xfz %SOURCE1
+mv gif-h-%{commit1} gif-h
+
+%build
+%qmake_qt5
+%make_build
+
+%install
+%make_install INSTALL_ROOT=%{buildroot}
+
+# Validate desktop file.
+desktop-file-validate
%{buildroot}/%{_datadir}/applications/org.firebird.firebird-emu.desktop
+
+%files
+%license LICENSE
+%doc README.md TODO.md
+%{_bindir}/firebird-emu
+%{_bindir}/firebird-send
+%{_datadir}/applications/org.firebird.firebird-emu.desktop
+%{_datadir}/icons/hicolor/*/apps/firebird.png
+
+%changelog
+* Wed Mar 21 2018 Ben Rosser <rosser.bjr(a)gmail.com> - 1.4-1
+- Update to latest release.
+
+* Mon Feb 6 2017 Ben Rosser <rosser.bjr(a)gmail.com> - 1.2-1
+- Initial package for Fedora.
diff --git a/sources b/sources
index e69de29..ffd1bd5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+6e93f4d933991010677e7a88aab1caf7 firebird-1.4.tar.gz
+08f1ce41877da480875b4f10552a9bc5 gif-h-8cb648f.tar.gz