Name: openttd Version: 0.7.0 Release: 0.1.beta1%{?dist} Summary: An open source reimplementation of the game "Transport Tycoon Deluxe" Group: Amusements/Games License: GPLv2 URL: http://www.openttd.org Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-beta1-source.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils, SDL-devel, libpng-devel, unzip, zlib-devel BuildRequires: fontconfig-devel, libtimidity-devel, libicu-devel BuildRequires: freetype-devel Requires: hicolor-icon-theme %description OpenTTD is modeled after the original Microprose Transport Tycoon game by Chris Sawyer and enhances the game experience dramatically. Many features were inspired by TTDPatch while others are original. It requires the original Transport Tycoon Deluxe data files. %prep %setup -q -n %{name}-%{version}-beta1 %build export CFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$RPM_OPT_FLAGS" ./configure \ --disable-strip \ --prefix-dir= \ --binary-dir=%{_bindir} \ --data-dir=%{_datadir}/%{name} \ --icon-dir=%{_datadir}/pixmaps \ --icon-theme-dir=%{_datadir}/icons/hicolor \ --man-dir=%{_mandir}/man6 \ --menu-dir=%{_datadir}/applications \ --without-shared-dir \ --doc-dir=%{_docdir} \ --install-dir=$RPM_BUILD_ROOT \ --with-ccache make %{?_smp_mflags} VERBOSE=1 %install rm -rf $RPM_BUILD_ROOT make install VERBOSE=1 # Remove the installed docs - we will install subset of those rm -rf $RPM_BUILD_ROOT%{_docdir} # Patch generated desktop file, as desktop-file-install doesn't know 1.1 format yet sed -i 's/Version=1.1/Version=1.0/' media/openttd.desktop desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ --add-category=StrategyGame \ media/openttd.desktop %clean rm -rf $RPM_BUILD_ROOT %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,-) %doc COPYING changelog.txt known-bugs.txt readme.txt docs/{32bpp.txt,Manual.txt,multiplayer.txt} # These are really devel docs, but as we don't have -devel subpackage, we put it here # Could be useful for people making graphics, AI scripts or translations %doc docs/{elrail*,landscape*,ottd*,tileh.png} %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_mandir}/man6/%{name}.6* %{_datadir}/%{name} %{_datadir}/pixmaps/%{name}.32.xpm %{_datadir}/icons/hicolor/*/apps/%{name}.png %changelog * Mon Mar 09 2009 Alexey Torkhov - 0.7.0-0.1.beta1 - Doing big cleanup of package: - Dropping subpackages - Drop .desktop sources in favour of one bundled - Drop server menu entry - one can start server from game menu - Drop suspicious data_patch (what was it needed for?) - Cleanup macro usage - Drop version from freetype build dep - Correcting dirs in configure call: icons paths, disable duplicate shared dir, correct doc dir - And adding few improvements: - Using VERBOSE when doing make - Adding libicu to build requires - Add icons theme require - Drop installation instructions from docs - Use ccache (should speedup the local and mock builds) - Change source url to canonical one * Sun Jan 11 2009 Felix Kaechele - 0.6.3-3 - even more improvements made * Sun Jan 11 2009 Felix Kaechele - 0.6.3-2 - incorporated suggestions made by reviewers * Wed Dec 31 2008 Felix Kaechele - 0.6.3-1 - Initial build based on the SPEC by Peter Hanecak (http://hany.sk/~hany/RPM/)