Name: tilem Version: 2.0 Release: 1 Vendor: CalcForge RPM Repository Packager: Kevin Kofler Group: Applications/Emulators License: GPLv3+ Summary: TI-73/76/81/82/82 STATS/83/83+(SE)/84+(SE)/85/86 emulator Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.bz2 # Fix missing -lm which makes linking fail on Fedora Patch0: tilem-2.0-lm.patch # Fix integer size mismatch between sprintf argument and format string on 64-bit Patch1: tilem-2.0-64bit.patch BuildRequires: libticalcs2-devel BuildRequires: glib2-devel >= 2.12.0, gtk2-devel >= 2.6.0 BuildRequires: desktop-file-utils Requires: hicolor-icon-theme %description TilEm is an emulator and debugger for Texas Instruments Z80-based graphing calculators. It can emulate any of the following calculator models: TI-73 / TI-73 Explorer TI-76.fr TI-81 TI-82 TI-82 STATS / TI-82 STATS.fr TI-83 TI-83 Plus / TI-83 Plus Silver Edition / TI-83 Plus.fr TI-84 Plus / TI-84 Plus Silver Edition / TI-84 pocket.fr TI-85 TI-86 TilEm fully supports all known versions of the above calculators (as of 2012), and attempts to reproduce the behavior of the original calculator hardware as faithfully as possible. In addition, TilEm can emulate the TI-Nspire's virtual TI-84 Plus mode. This is currently experimental, and some programs may not work correctly. %prep %setup -q %patch0 -p1 -b .lm %patch1 -p1 -b .64bit %build %configure make %{?_smp_mflags} %install make install DESTDIR="%{buildroot}" %check desktop-file-validate %{buildroot}%{_datadir}/applications/tilem2.desktop %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : update-desktop-database &> /dev/null || : /usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || : fi update-desktop-database &> /dev/null || : /usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : %posttrans /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || : %files %{_bindir}/tilem2 %{_datadir}/tilem2/ %{_datadir}/applications/tilem2.desktop %{_datadir}/icons/hicolor/*/apps/tilem.png %{_datadir}/mime/packages/tilem2.xml %changelog * Mon Jul 23 2012 Kevin Kofler 2.0-1 - update to 2.0, now Free Software under the GPLv3+ - drop obsolete patches - clean up specfile - fix missing -lm which makes linking fail on Fedora - fix integer size mismatch between sprintf argument and format string on 64-bit * Thu Jul 20 2006 Kevin Kofler 0.973-4 - Libdir fixes for lib64 platforms. - Use libtifoo-devel instead of libtifoo in BuildRequires. - Fix buffer overflow (probably not exploitable, needs writing a ROM in a specific directory to exploit). * Fri Jun 16 2006 Kevin Kofler - Remove redundant %%defattr at the end of %%files. * Wed May 24 2006 Kevin Kofler 0.973-3 - Make sure permissions are set correctly when building as non-root. - Don't hardcode Requires and versions of BuildRequires where not needed. - Apply patch to fix build against latest libticables2. * Mon May 22 2006 Kevin Kofler - Build debuginfo RPM. - Use the system-wide default RPM_OPT_FLAGS instead of my own. - No period at end of summary. - Use BuildRoot recommended by the Fedora packaging guidelines. * Wed Jan 5 2006 Kevin Kofler 0.973-2 - Apply TI-85 keymap fix by Benjamin Moody. * Wed Jan 4 2006 Kevin Kofler 0.973-1 - Remove unneeded makefile patch. * Wed Jan 4 2006 Kevin Kofler - Don't require libticables 0.0.3, even the current SVN claims to be only 0.0.2 (bug reported to Romain, it should be 0.0.3). * Wed Jan 4 2006 Kevin Kofler - First Fedora RPM.