%define name x48 %define version 0.6.3 %define release %mkrel 1 #define x11_prefix /usr/X11R6 Name: %name Summary: HP 48 GX emulator Version: %version Release: %release License: GPL Group: Sciences/Mathematics BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot URL: http://x48.berlios.de/ Source0: http://download.berlios.de/x48/%{name}-%{version}.tar.gz Patch0: x48-0.6.1-mdv-fix-string-format.patch BuildRequires: readline-devel BuildRequires: X11-devel BuildRequires: x11-util-cf-files BuildRequires: ncurses-devel Requires: readline %description This is an emulator of the HP 48 SX and GX calculator. Romdumps are available from http://x48.berlios.de/ %prep %setup -q %patch0 -p1 -b .format %build %configure2_5x --with-x %make %install rm -rf %{buildroot} mkdir -p %{buildroot}/%{_datadir}/%{name} mkdir -p %{buildroot}/%{_datadir}/applications/ cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop [Desktop Entry] Type=Application Exec=x48 -rom /usr/share/x48/rom Name=x48 Comment=HP48 Emulator Categories=Office; EOF cat > $RPM_BUILD_DIR/%{name}-%{version}/README.urpmi << EOF x48 needs a rom to function, so please read the README to see how to dump it from your HP48 or just use the rpm x48-gxrom or x48-sxrom from plf. If you dump the rom, please put it in the /usr/share/x48 directory. *** The first time you launch x48, it will copy the rom to ~/.hp48. So if you like to change from sx to gx rom, please remove this directory first EOF %makeinstall_std %if %mdkversion < 200900 %post %update_menus %endif %if %mdkversion < 200900 %postun %clean_menus %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README README.urpmi #%{_sysconfdir}/X11/app-defaults/X48 %{_bindir}/checkrom %{_bindir}/dump2rom %{_bindir}/mkcard %{_bindir}/x48 %{_datadir}/%{name} %{_datadir}/X11/app-defaults/X48 %{_mandir}/man1/x48.* %{_datadir}/applications/mandriva-x48.desktop %changelog * Mon Mar 08 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.6.3-1mdv2010.1 + Revision: 515650 - new upstream release 0.6.3 * Thu Dec 10 2009 Ahmad Samir <ahmadsamir@mandriva.org> 0.6.1-1mdv2010.1 + Revision: 476213 - Update to 0.6.1 - remove imake stuff, not needed any more - add patch1 to fix string format * Sun Sep 20 2009 Thierry Vignaud <tv@mandriva.org> 0.4.3-10mdv2010.0 + Revision: 445862 - rebuild * Tue Mar 03 2009 Guillaume Rousse <guillomovitch@mandriva.org> 0.4.3-9mdv2009.1 + Revision: 347887 - rebuild for latest readline * Sun Aug 03 2008 Thierry Vignaud <tv@mandriva.org> 0.4.3-8mdv2009.0 + Revision: 262225 - rebuild * Thu Jul 31 2008 Thierry Vignaud <tv@mandriva.org> 0.4.3-7mdv2009.0 + Revision: 256558 - rebuild + Pixel <pixel@mandriva.com> - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas * Mon Feb 18 2008 Thierry Vignaud <tv@mandriva.org> 0.4.3-5mdv2008.1 + Revision: 171179 - rebuild - fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake - fix no-buildroot-tag * Wed Jan 02 2008 Thierry Vignaud <tv@mandriva.org> 0.4.3-4mdv2008.1 + Revision: 140791 - auto-convert XDG menu entry - kill re-definition of %%buildroot on Pixel's request + Erwan Velu <erwan@mandriva.org> - Rebuild - Fixing buildrequires - Fixing buildrequires - Fixing buildrequires - Oups, %%files is wrong - /usr/X11R6 conflicts - Fixing buildrequires - Import x48 * Wed Jul 12 2006 Erwan Velu <erwan@seanodes.com> 0.4.3-1 Initial rpm