Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > media > contrib-src > by-pkgid > e839c5cd1f49b33f263ea16ae0f56ad1 > files > 5

grustibus-0.43-3mdk.src.rpm

%define name	grustibus
%define version	0.43
%define release 3mdk

Release:	%release
Summary:	A Gnome frontend for M.A.M.E.
Name:     	%name
Version: 	%version
License:	GPL
Group:		Emulators
URL:		http://grustibus.sourceforge.net/
Source:		http://download.sourceforge.net/gRustibus/%{name}-%{version}.tar.bz2
#Patch:          grustibus-0.42-defaultsettings.patch.bz2
Source1: %{name}-48x48.png.bz2
Source2: %{name}-32x32.png.bz2
Source3: %{name}-16x16.png.bz2
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
Prefix:         %{_prefix}
Requires: xmame

%description 
A frontend for the M.A.M.E. arcade emulator designed to run under the GNOME
desktop environment. Supported games are listed along with various information
about the game, including its status (installed, missing, incorrect etc).
Screenshots, flyer images and cabinet photos for the games can be shown. It
lets you configure your games using the gui.           

%prep
rm -rf $RPM_BUILD_ROOT

%setup -q
#%patch

%build

export CFLAGS="$RPM_OPT_FLAGS -I/usr/include/gdk-pixbuf-1.0"
export CXXFLAGS="$RPM_OPT_FLAGS -I/usr/include/gdk-pixbuf-1.0"

%configure --without-bonobo

%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
%{find_lang} %{name}
#menu and icons
mkdir -p $RPM_BUILD_ROOT%{_menudir}
cat > $RPM_BUILD_ROOT%{_menudir}/%{name} << EOF
?package(%{name}): section="Applications/Emulators" title="Grustibus" longtitle="A Gnome frontend for M.A.M.E." icon="grustibus.png" needs="X11" command="grustibus"
EOF
mkdir -p $RPM_BUILD_ROOT{%{_iconsdir},%{_liconsdir},%{_miconsdir}}
bzcat %{SOURCE1} > $RPM_BUILD_ROOT%{_liconsdir}/grustibus.png
bzcat %{SOURCE2} > $RPM_BUILD_ROOT%{_iconsdir}/grustibus.png
bzcat %{SOURCE3} > $RPM_BUILD_ROOT%{_miconsdir}/grustibus.png

%clean
rm -rf $RPM_BUILD_ROOT

%post
%{update_menus}

%postun
%{clean_menus}

%files -f %{name}.lang
%defattr(-, root, root)
%doc COPYING ChangeLog INSTALL NEWS README TODO BUGS
%config(noreplace) %{_sysconfdir}/gnome/config/gRustibus.d/*
%{_bindir}/*
%{_datadir}/gnome/apps/*
%{_datadir}/pixmaps/*
%{_menudir}/grustibus
%{_iconsdir}/grustibus.png
%{_liconsdir}/grustibus.png
%{_miconsdir}/grustibus.png

%changelog
* Fri Jun 14 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.43-3mdk
- fix gdk-pixbuf path
- png icons

* Tue Jul 24 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.43-2mdk
- rebuild

* Tue Jan 05 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.43-1mdk
- added in contribs by Götz Waschk <waschk@linux-mandrake.com> :
	- initial Mandrake spec