# Everything dealing with the gtk interface has been commented out; it # needs love from someone who is familiar with libsigc++. Name: VisualBoyAdvance Version: 1.7.2 Release: 1%{?dist} Summary: Nintendo Gameboy (,Advance,Color) Emulator Group: Amusements/Games License: GPLv2+ URL: https://sourceforge.net/projects/vba Source0: http://downloads.sourceforge.net/vba/%{name}-src-%{version}.tar.gz # Patch0 fixes builds on 64-bit platforms; courtesy of SuSE Patch0: VisualBoyAdvance-type.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) #BuildRequires: desktop-file-utils BuildRequires: glibc-common #BuildRequires: gtkmm24-devel #BuildRequires: libglademm24-devel BuildRequires: libpng-devel BuildRequires: nasm BuildRequires: SDL-devel #BuildRequires: libsigc++20-devel BuildRequires: zlib-devel %description VisualBoyAdvance is a Nintendo (TM) Gameboy and GameboyAdvance emulator with debugging capabilities. #%package gtk #Summary: VisualBoyAdvance GTK GUI #Group: Amusements/Games #Requires: %{name} = %{version}-%{release} # # #%description gtk #VisualBoyAdvance compiled with GTK GUI %prep %setup -q %patch0 # convert to utf-8 iconv -f ISO_8859-1 -t UTF-8 -o AUTHORS.conv AUTHORS mv AUTHORS.conv AUTHORS %build %configure --disable-profiling --disable-dev --enable-sdl # --enable-gtk=2.4 make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT #echo -e "[Desktop Entry] #Name=%{name} #Comment=%{summary} #Exec=gvba #Icon=vba-64.png #Terminal=false #Type=Application #Categories=Games" > %{name}.desktop #mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications #desktop-file-install --vendor="fedora" \ # --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{name}.desktop %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING ChangeLog AUTHORS NEWS README %{_bindir}/VisualBoyAdvance %config(noreplace) %{_sysconfdir}/VisualBoyAdvance.cfg #%files gtk #%defattr(-,root,root,-) %changelog * Sun Oct 12 2008 Conrad Meyer - 1.7.2-1 - Initial package.