From 7db16e8cf5939e32b3be32737aa0dda9c9a7cd92 Mon Sep 17 00:00:00 2001 From: musuruan Date: Mar 17 2007 19:42:07 +0000 Subject: - dropped --add-category X-Fedora from desktop-file-install - changed .desktop category to Game;Emulator; - now using sed to fix makefile not to strip binaries during make install - cosmetic changes to BR section --- diff --git a/hatari.spec b/hatari.spec index 1736893..0e91270 100644 --- a/hatari.spec +++ b/hatari.spec @@ -1,17 +1,19 @@ Summary: An Atari ST emulator suitable for playing games Name: hatari Version: 0.90 -Release: 5%{?dist} +Release: 6%{?dist} License: GPL Group: Applications/Emulators URL: http://hatari.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: http://dl.sf.net/%{name}/%{name}-%{version}.tar.gz Source1: hatari.png -Patch0: hatari-0.90-nobinstrip.patch -BuildRequires: SDL-devel >= 1.2.0, zlib-devel, desktop-file-utils +BuildRequires: SDL-devel >= 1.2.0 +BuildRequires: zlib-devel +BuildRequires: desktop-file-utils Requires: hicolor-icon-theme + %description Hatari is an Atari-ST and STE emulator for Linux. More precisely, it is an adaption of the WinSTon source code to Linux, using the UAE CPU @@ -20,9 +22,13 @@ core instead of the original, non-portable assembler CPU core. Unlike other ST emulators which concentrate on desktop compatibility, it is suitable for playing games. + %prep %setup -q -%patch -p1 + +# fix Makefile not to strip binaries during make install +sed -i 's/@INSTALL_PROGRAM@ -s/@INSTALL_PROGRAM@/' Makefile.cnf.in + %build %configure --datadir=%{_datadir}/hatari @@ -58,10 +64,11 @@ Exec=%{name} Icon=%{name}.png Terminal=false Type=Application -Categories=Application;Emulators; +Categories=Game;Emulator; Version=%{version} EOF + %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} @@ -72,26 +79,29 @@ install -m 644 doc/hatari.1 %{buildroot}%{_mandir}/man1 mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install --vendor fedora \ --dir %{buildroot}%{_datadir}/applications \ - --add-category X-Fedora \ %{name}.desktop mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps cp %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps + %clean rm -rf %{buildroot} + %post touch --no-create %{_datadir}/icons/hicolor || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi + %postun touch --no-create %{_datadir}/icons/hicolor || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi + %files %defattr(-,root,root) %{_bindir}/hatari @@ -102,7 +112,14 @@ fi %doc gpl.txt readme.txt doc/{*.txt,*.html,images} %doc doc/README.tos + %changelog +* Sat Mar 17 2007 Andrea Musuruane 0.90-6%{?dist} +- dropped --add-category X-Fedora from desktop-file-install +- changed .desktop category to Game;Emulator; +- now using sed to fix makefile not to strip binaries during make install +- cosmetic changes to BR section + * Mon Oct 23 2006 Andrea Musuruane 0.90-5%{?dist} - added a patch not to strip binaries during make install - added hicolor-icon-theme to Requires