celestar@5968: #------------------------------------------------------------------------------ celestar@5968: # openttd.spec celestar@5968: # This SPEC file controls the building of custom OpenTTD RPM celestar@5968: # packages. celestar@5968: #------------------------------------------------------------------------------ celestar@5968: celestar@5968: %define name openttd celestar@5968: %define version 0.5.0 celestar@5968: %define release 1mdk celestar@5968: celestar@5968: #------------------------------------------------------------------------------ celestar@5968: # Prologue information celestar@5968: #------------------------------------------------------------------------------ celestar@5968: Name: %{name} celestar@5968: Version: %{version} celestar@5968: Release: %{release} celestar@5968: Summary: An open source clone of the Microprose game "Transport Tycoon Deluxe" celestar@5968: Group: Games/Strategy celestar@5968: License: GPL celestar@5968: celestar@5968: URL: http://www.openttd.org celestar@5968: celestar@5968: Source: %{name}-%{version}.tar.gz celestar@5968: Packager: Dominik Scherer celestar@5968: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot celestar@5968: BuildRequires: libSDL1.2-devel >= 1.2.7 celestar@5968: BuildRequires: libpng3-devel >= 1.2.5 celestar@5968: BuildRequires: zlib1-devel >= 1.2.1 celestar@5968: celestar@5968: #------------------------------------------------------------------------------ celestar@5968: # Description celestar@5968: #------------------------------------------------------------------------------ celestar@5968: %description celestar@5968: An enhanced open source clone of the Microprose game "Transport Tycoon Deluxe". celestar@5968: You require the data files of the original Transport Tycoon Deluxe celestar@5968: for Windows to play the game. You have to MANUALLY copy them to the celestar@5968: game data directory! celestar@5968: celestar@5968: #------------------------------------------------------------------------------ celestar@5968: # install scripts celestar@5968: #------------------------------------------------------------------------------ celestar@5968: %prep celestar@5968: rm -rf $RPM_BUILD_ROOT celestar@5968: %setup celestar@5968: celestar@5968: %build celestar@5968: make BINARY_DIR=%{_gamesbindir} PREFIX=%{_gamesdatadir} DATA_DIR=openttd INSTALL_DIR=%{_gamesdatadir}/openttd/ USE_HOMEDIR=1 PERSONAL_DIR=.openttd INSTALL=1 RELEASE=%{version} celestar@5968: celestar@5968: %install celestar@5968: mkdir -p $RPM_BUILD_ROOT%{_gamesbindir} celestar@5968: mkdir -p $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/lang celestar@5968: mkdir -p $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/data celestar@5968: mkdir -p $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/scenario celestar@5968: celestar@5968: cp ./openttd $RPM_BUILD_ROOT%{_gamesbindir}/ celestar@5968: cp -r ./lang/*.lng $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/lang/ celestar@5968: cp -r ./data/*.grf $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/data/ celestar@5968: cp -r ./scenario/*.scn $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/scenario/ celestar@5968: cp -r ./data/opntitle.dat $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/data/ celestar@5968: celestar@5968: # icon celestar@5968: install -m644 media/openttd.32.png -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png celestar@5968: install -m644 media/openttd.64.png -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png celestar@5968: install -m644 media/openttd.128.png -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png celestar@5968: celestar@5968: # menu entry celestar@5968: mkdir -p $RPM_BUILD_ROOT/%{_menudir} celestar@5968: cat << EOF > $RPM_BUILD_ROOT/%{_menudir}/%{name} celestar@5968: ?package(%{name}):command="%{_gamesbindir}/openttd" icon="%{name}.png" \ celestar@5968: needs="X11" section="Amusement/Strategy" title="OpenTTD" \ celestar@5968: longtitle="%{Summary}" celestar@5968: EOF celestar@5968: celestar@5968: %clean celestar@5968: rm -rf $RPM_BUILD_ROOT celestar@5968: celestar@5968: %post celestar@5968: %{update_menus} celestar@5968: celestar@5968: %postun celestar@5968: %{clean_menus} celestar@5968: celestar@5968: #------------------------------------------------------------------------------ celestar@5968: # Files listing. celestar@5968: #------------------------------------------------------------------------------ celestar@5968: %files celestar@5968: %defattr(-,root,root,0755) celestar@5968: %{_gamesbindir}/openttd celestar@5968: celestar@5968: %{_gamesdatadir}/openttd/lang/american.lng celestar@5968: %{_gamesdatadir}/openttd/lang/catalan.lng celestar@5968: %{_gamesdatadir}/openttd/lang/czech.lng celestar@5968: %{_gamesdatadir}/openttd/lang/danish.lng celestar@5968: %{_gamesdatadir}/openttd/lang/dutch.lng celestar@5968: %{_gamesdatadir}/openttd/lang/english.lng celestar@5968: %{_gamesdatadir}/openttd/lang/finnish.lng celestar@5968: %{_gamesdatadir}/openttd/lang/french.lng celestar@5968: %{_gamesdatadir}/openttd/lang/galician.lng celestar@5968: %{_gamesdatadir}/openttd/lang/german.lng celestar@5968: %{_gamesdatadir}/openttd/lang/hungarian.lng celestar@5968: %{_gamesdatadir}/openttd/lang/icelandic.lng celestar@5968: %{_gamesdatadir}/openttd/lang/italian.lng celestar@5968: %{_gamesdatadir}/openttd/lang/norwegian.lng celestar@5968: %{_gamesdatadir}/openttd/lang/origveh.lng celestar@5968: %{_gamesdatadir}/openttd/lang/polish.lng celestar@5968: %{_gamesdatadir}/openttd/lang/portuguese.lng celestar@5968: %{_gamesdatadir}/openttd/lang/romanian.lng celestar@5968: %{_gamesdatadir}/openttd/lang/slovak.lng celestar@5968: %{_gamesdatadir}/openttd/lang/spanish.lng celestar@5968: %{_gamesdatadir}/openttd/lang/swedish.lng celestar@5968: celestar@5968: %{_gamesdatadir}/openttd/data/autorail.grf celestar@5968: %{_gamesdatadir}/openttd/data/canalsw.grf celestar@5968: %{_gamesdatadir}/openttd/data/openttd.grf celestar@5968: %{_gamesdatadir}/openttd/data/opntitle.dat celestar@5968: %{_gamesdatadir}/openttd/data/signalsw.grf celestar@5968: %{_gamesdatadir}/openttd/data/trkfoundw.grf celestar@5968: celestar@5968: "%{_gamesdatadir}/openttd/scenario/Linkgame Islands 2004.scn" celestar@5968: "%{_gamesdatadir}/openttd/scenario/Mountain Pass.scn" celestar@5968: "%{_gamesdatadir}/openttd/scenario/Volcano City.scn" celestar@5968: celestar@5968: %{_menudir}/%{name} celestar@5968: %{_iconsdir}/*.png celestar@5968: %{_miconsdir}/*.png celestar@5968: %{_liconsdir}/*.png celestar@5968: celestar@5968: %doc changelog.txt readme.txt COPYING os/linux/README.urpmi celestar@5968: celestar@5968: #------------------------------------------------------------------------------ celestar@5968: # Change Log celestar@5968: #------------------------------------------------------------------------------ celestar@5968: %changelog celestar@5968: * Sun Jan 23 2005 Dominik Scherer 0.3.6-1mdk celestar@5968: - Upgraded to 0.3.6 celestar@5968: - Structured and commented the spec file a bit (inspired by ScummVM) celestar@5968: celestar@5968: * Fri Dec 24 2004 Dominik Scherer 0.3.5-1mdk celestar@5968: - Upgraded to 0.3.5 celestar@5968: - Added a warning message about the additional required files (only displayed when installing via urpmi) celestar@5968: celestar@5968: * Wed Sep 15 2004 Dominik Scherer <> 0.3.4-1mdk celestar@5968: - Upgraded to 0.3.4 celestar@5968: celestar@5968: * Wed Jul 31 2004 Dominik Scherer <> 0.3.3-1mdk celestar@5968: - Initial release