Package fakenes: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | %define beta beta3 Name: fakenes Version: 0.5.9 Release: alt0.5.%beta Summary: Nintendo Entertainment System emulator Group: Emulators License: Artistic Url: http://fakenes.sourceforge.net/ Source0: http://downloads.sourceforge.net/%name/%name-%version-%beta.tar.gz Source1: %name.desktop Patch0: fakenes-0.5.8-menu-exit.patch Patch1: fakenes-0.5.8-driver-switch.patch Patch2: fakenes-0.5.9-beta3-gcc43.patch Patch3: fakenes-0.5.9-beta3-openal-build.patch Patch4: fakenes-0.5.9-beta3-allegro44-build.patch Patch5: fakenes-0.5.9-beta3-libm-build.patch BuildRequires: liballegro-devel zlib-devel libopenal-devel BuildRequires: libGLU-devel libalut-devel desktop-file-utils BuildRequires: libicns-utils libicns-devel gcc gcc-c++ Requires: icon-theme-hicolor %description FakeNES is an Open Source NES emulator. It uses the excellent Allegro multimedia library for input, graphics, and sound effects/music across various platforms. It is written in 100%% C, and was originally designed to run on DOS and Microsoft Windows, but now features a POSIX build system as well. There are also official builds available for Mac OS X. %prep %setup -n %name-%version-%beta %patch0 -p1 -z .menu %patch1 -p1 -z .driver %patch2 -p1 -z .gcc43 %patch3 -p1 -z .openal-build %patch4 -p1 -z .allegro44-build %patch5 -p1 -z .libm sed -i 's/\r//' docs/faq.html %build export CFLAGS="$RPM_OPT_FLAGS -ffast-math" make cbuild ./cbuild --verbose icns2png -x build/mac/FakeNES.icns touch -r build/mac/FakeNES.icns FakeNES_128x128x32.png %install install -D -m 755 %name $RPM_BUILD_ROOT%_bindir/%name # below is the desktop file and icon stuff. mkdir -p $RPM_BUILD_ROOT%_datadir/applications desktop-file-install \ --dir $RPM_BUILD_ROOT%_datadir/applications \ %SOURCE1 mkdir -p $RPM_BUILD_ROOT%_datadir/icons/hicolor/128x128/apps install -p -m 644 FakeNES_128x128x32.png \ $RPM_BUILD_ROOT%_datadir/icons/hicolor/128x128/apps/%name.png %files %doc docs/CHANGES docs/LICENSE docs/README docs/faq.html %_bindir/%name %_datadir/applications/%name.desktop %_datadir/icons/hicolor/128x128/apps/%name.png %changelog * Tue May 01 2012 Ilya Mashkin <oddity@altlinux.ru> 0.5.9-alt0.5.beta3 - cleanup spec * Wed Apr 04 2012 Ilya Mashkin <oddity@altlinux.ru> 0.5.9-alt0.4.beta3 - build for Sisyphus * Fri Mar 02 2012 Nicolas Chauvet <kwizart@gmail.com> - 0.5.9-0.4.beta3 - Rebuilt for c++ ABI breakage * Sat Dec 10 2011 Hans de Goede <j.w.r.degoede@hhs.nl> - 0.5.9-0.3.beta3 - Fix building with allegro-4.4.x (rf#1969) - Fix the broken icon * Mon Oct 03 2011 Nicolas Chauvet <kwizart@gmail.com> - 0.5.9-0.2.beta3 - Rebuilt for liballeg * Sun Oct 25 2009 Hans de Goede <j.w.r.degoede@hhs.nl> 0.5.9-0.1.beta3 - New upstream release 0.5.9-beta3 * Sat Oct 24 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.5.8-9 - rebuild for new openal * Sat Oct 10 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.5.8-8 - rebuilt * Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.5.8-7 - rebuild for new F11 features * Thu Jul 24 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.5.8-6 - Rebuild for buildsys cflags issue * Thu Jul 24 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.5.8-5 - Release bump for rpmfusion * Sat Mar 10 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.5.8-4%{?dist} - Fixup .desktop file categories for games-menus usage * Sat Aug 12 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.5.8-3%{?dist} - Fix crash when using openAL sound and openAL couldn't open the audiodevice * Fri Aug 11 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.5.8-2%{?dist} - Fix emulator hanging when pressing ESC in the main menu without a rom loaded - Fix emulator crashing when switching between normal and opengl video modes - Use %%{_bindir} instead of /usr/bin in %%install * Thu Aug 3 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.5.8-1%{?dist} - Initial Fedora Extras package |