Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 6b506f2aa4cd1308bcb77c2f8c2e2acf > files > 6

fred-0.1.1-1mdk.src.rpm

%define	name	fred
%define	version	0.1.1
%define	release	1mdk
%define Summary	Free Fallin' Fred

Summary:	%{Summary}
Name:		%{name}
Version:	%{version}
Release:	%{release}
Source0:	http://www.enormousplow.com/projects/fred/%{name}-%{version}.tar.bz2
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
Patch0:		fred-0.1.1-no-windows.patch.bz2
License:	GPL
Url:		http://www.enormousplow.com/projects/fred/
Group:		Games/Arcade
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:	SDL_image-devel zlib-devel SDL_ttf-devel

%description
Free Fallin' Fred is a very simple clicking game.
You see the airplane going across the screen and after a while, Fred jumps.
You click on Fred to open his chute.
If you fail to open the chute in time, poor Fred will be dead.
Don't let Fred die. 

%prep
%setup -q -n %{name}
%patch0 -p1

%build
autoconf
perl -pi -e 's!DATADIR = "/usr/local/share/games/fred/data/";!DATADIR = "%{_gamesdatadir}/%{name}/data/";!g' src/fred.cpp
%configure2_5x	--bindir=%{_gamesbindir}
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

install -d %{buildroot}%{_menudir}
cat <<EOF > %{buildroot}%{_menudir}/%{name}
?package(%{name}):command="%{_gamesbindir}/%{name}" \
		  icon=%{name}.png \
		  needs="x11" \
		  section="Amusement/Arcade" \
		  title="Fred"\
		  longtitle="%{Summary}"
EOF

%{__install} -m644 %{SOURCE11} -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
%{__install} -m644 %{SOURCE12} -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
%{__install} -m644 %{SOURCE13} -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

%post
%update_menus

%postun
%clean_menus

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(755,root,root,755)
%{_gamesbindir}/%{name}
%defattr(644,root,root,755)
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/*
%{_mandir}/man6/fred.6*
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_menudir}/%{name}
%doc AUTHORS ChangeLog INSTALL NEWS README TODO

%changelog
* Tue Feb 15 2005 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.1.1-1mdk
- 0.1.1 (it works!)
- drop P1 (fixed upstream)

* Wed Jun 16 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.1.0-4mdk
- rebuild

* Fri Apr 02 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.1.0-3mdk
- rebuild
- fix buildrequires (lib64..)
- change summary macro to avoid possible conflicts if we were to build debug package

* Thu Mar 20 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.1.0-2mdk
- switched to other unix specific sources
- updated Patch1
- now use configure macro
- updated docs
- dropped Patch0

* Tue Feb 25 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.1.0-1mdk
- Corrected title
- 0.1.0
- Don't use the make macro as it won't support multiple jobs

* Thu Nov 19 2002 Per Øyvind Karlsen <peroyvind@delonic.no> 0.0.4-1mdk
- First release