From fbb3a0271874aaeebec1bfd05c8307606794fd56 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 27 Mar 2008 16:09:15 +0000 Subject: [PATCH] (svn r12448) -Change: add a spec file for RPMs. The spec file replaces the SuSE and Mandrake versions as these distributions are also supported by the new spec file. New spec file by Denis Burlaka. --- os/mandrake/README.urpmi | 9 --- os/mandrake/openttd.spec | 146 --------------------------------------- os/rpm/openttd.spec | 75 ++++++++++++++++++++ os/suse/openttd.spec | Bin 11656 -> 0 bytes 4 files changed, 75 insertions(+), 155 deletions(-) delete mode 100644 os/mandrake/README.urpmi delete mode 100644 os/mandrake/openttd.spec create mode 100644 os/rpm/openttd.spec delete mode 100644 os/suse/openttd.spec diff --git a/os/mandrake/README.urpmi b/os/mandrake/README.urpmi deleted file mode 100644 index 0c8385e66c..0000000000 --- a/os/mandrake/README.urpmi +++ /dev/null @@ -1,9 +0,0 @@ -You require the data files of the original Transport Tycoon Deluxe -for Windows to play the game. You have to manually copy the following -files to %{_gamesdatadir}/openttd/data/ -sample.cat -trg1r.grf -trgcr.grf -trghr.grf -trgir.grf -trgtr.grf diff --git a/os/mandrake/openttd.spec b/os/mandrake/openttd.spec deleted file mode 100644 index 96d666a9c4..0000000000 --- a/os/mandrake/openttd.spec +++ /dev/null @@ -1,146 +0,0 @@ -#------------------------------------------------------------------------------ -# openttd.spec -# This SPEC file controls the building of custom OpenTTD RPM -# packages. -#------------------------------------------------------------------------------ - -%define name openttd -%define version 0.5.0 -%define release 1mdk - -#------------------------------------------------------------------------------ -# Prologue information -#------------------------------------------------------------------------------ -Name: %{name} -Version: %{version} -Release: %{release} -Summary: An open source clone of the Microprose game "Transport Tycoon Deluxe" -Group: Games/Strategy -License: GPL - -URL: http://www.openttd.org - -Source: %{name}-%{version}.tar.gz -Packager: Dominik Scherer -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot -BuildRequires: libSDL1.2-devel >= 1.2.7 -BuildRequires: libpng3-devel >= 1.2.5 -BuildRequires: zlib1-devel >= 1.2.1 - -#------------------------------------------------------------------------------ -# Description -#------------------------------------------------------------------------------ -%description -An enhanced open source clone of the Microprose game "Transport Tycoon Deluxe". -You require the data files of the original Transport Tycoon Deluxe -for Windows to play the game. You have to MANUALLY copy them to the -game data directory! - -#------------------------------------------------------------------------------ -# install scripts -#------------------------------------------------------------------------------ -%prep -rm -rf $RPM_BUILD_ROOT -%setup - -%build -make BINARY_DIR=%{_gamesbindir} PREFIX=%{_gamesdatadir} DATA_DIR=openttd INSTALL_DIR=%{_gamesdatadir}/openttd/ USE_HOMEDIR=1 PERSONAL_DIR=.openttd INSTALL=1 RELEASE=%{version} - -%install -mkdir -p $RPM_BUILD_ROOT%{_gamesbindir} -mkdir -p $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/lang -mkdir -p $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/data -mkdir -p $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/scenario - -cp ./openttd $RPM_BUILD_ROOT%{_gamesbindir}/ -cp -r ./lang/*.lng $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/lang/ -cp -r ./data/*.grf $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/data/ -cp -r ./scenario/*.scn $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/scenario/ -cp -r ./data/opntitle.dat $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/data/ - -# icon -install -m644 media/openttd.32.png -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png -install -m644 media/openttd.64.png -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png -install -m644 media/openttd.128.png -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png - -# menu entry -mkdir -p $RPM_BUILD_ROOT/%{_menudir} -cat << EOF > $RPM_BUILD_ROOT/%{_menudir}/%{name} -?package(%{name}):command="%{_gamesbindir}/openttd" icon="%{name}.png" \ - needs="X11" section="Amusement/Strategy" title="OpenTTD" \ - longtitle="%{Summary}" -EOF - -%clean -rm -rf $RPM_BUILD_ROOT - -%post -%{update_menus} - -%postun -%{clean_menus} - -#------------------------------------------------------------------------------ -# Files listing. -#------------------------------------------------------------------------------ -%files -%defattr(-,root,root,0755) -%{_gamesbindir}/openttd - -%{_gamesdatadir}/openttd/lang/american.lng -%{_gamesdatadir}/openttd/lang/catalan.lng -%{_gamesdatadir}/openttd/lang/czech.lng -%{_gamesdatadir}/openttd/lang/danish.lng -%{_gamesdatadir}/openttd/lang/dutch.lng -%{_gamesdatadir}/openttd/lang/english.lng -%{_gamesdatadir}/openttd/lang/finnish.lng -%{_gamesdatadir}/openttd/lang/french.lng -%{_gamesdatadir}/openttd/lang/galician.lng -%{_gamesdatadir}/openttd/lang/german.lng -%{_gamesdatadir}/openttd/lang/hungarian.lng -%{_gamesdatadir}/openttd/lang/icelandic.lng -%{_gamesdatadir}/openttd/lang/italian.lng -%{_gamesdatadir}/openttd/lang/norwegian.lng -%{_gamesdatadir}/openttd/lang/origveh.lng -%{_gamesdatadir}/openttd/lang/polish.lng -%{_gamesdatadir}/openttd/lang/portuguese.lng -%{_gamesdatadir}/openttd/lang/romanian.lng -%{_gamesdatadir}/openttd/lang/slovak.lng -%{_gamesdatadir}/openttd/lang/spanish.lng -%{_gamesdatadir}/openttd/lang/swedish.lng - -%{_gamesdatadir}/openttd/data/autorail.grf -%{_gamesdatadir}/openttd/data/canalsw.grf -%{_gamesdatadir}/openttd/data/openttd.grf -%{_gamesdatadir}/openttd/data/opntitle.dat -%{_gamesdatadir}/openttd/data/signalsw.grf -%{_gamesdatadir}/openttd/data/trkfoundw.grf - -"%{_gamesdatadir}/openttd/scenario/Linkgame Islands 2004.scn" -"%{_gamesdatadir}/openttd/scenario/Mountain Pass.scn" -"%{_gamesdatadir}/openttd/scenario/Volcano City.scn" - -%{_menudir}/%{name} -%{_iconsdir}/*.png -%{_miconsdir}/*.png -%{_liconsdir}/*.png - -%doc changelog.txt readme.txt COPYING os/linux/README.urpmi - -#------------------------------------------------------------------------------ -# Change Log -#------------------------------------------------------------------------------ -%changelog -* Sun Jan 23 2005 Dominik Scherer 0.3.6-1mdk -- Upgraded to 0.3.6 -- Structured and commented the spec file a bit (inspired by ScummVM) - -* Fri Dec 24 2004 Dominik Scherer 0.3.5-1mdk -- Upgraded to 0.3.5 -- Added a warning message about the additional required files (only displayed when installing via urpmi) - -* Wed Sep 15 2004 Dominik Scherer <> 0.3.4-1mdk -- Upgraded to 0.3.4 - -* Wed Jul 31 2004 Dominik Scherer <> 0.3.3-1mdk -- Initial release diff --git a/os/rpm/openttd.spec b/os/rpm/openttd.spec new file mode 100644 index 0000000000..c505453fbe --- /dev/null +++ b/os/rpm/openttd.spec @@ -0,0 +1,75 @@ +# +# spec file for package openttd (trunk) +# +# Copyright (c) 2007 The OpenTTD team. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself +# +Name: openttd +Version: svn +Release: head +Group: Applications/Games +Source: %{name}-%{version}-%{release}.tar.gz +License: GPL +URL: http://www.openttd.org +Packager: Denis Burlaka +Summary: OpenTTD is an Open Source clone of Chris Sawyer's Transport Tycoon Deluxe +Requires: SDL zlib libpng freetype2 fontconfig +BuildRequires: gcc SDL-devel zlib-devel libpng-devel fontconfig-devel +%if %{_vendor}=="suse" +BuildRequires: freetype2-devel +%endif +%if %{_vendor}=="fedora" +BuildRequires: freetype-devel +%endif +%if %{_vendor}=="mandriva" +BuildRequires: libfreetype6-devel +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +Prefix: /usr + +%description +OpenTTD is a clone of the Microprose game "Transport Tycoon Deluxe", a popular game originally written by Chris Sawyer. It attempts to mimic the original game as closely as possible while extending it with new features. + +OpenTTD is licensed under the GNU General Public License version 2.0. For more information, see the file 'COPYING' included with every release and source download of the game. + +%prep +%setup + +%build +./configure --prefix-dir=%{prefix} --binary-dir=bin --install-dir="$RPM_BUILD_ROOT" +make + +%install +make ROOT="$RPM_BUILD_ROOT" install + +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications +cat << EOF > $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop +[Desktop Entry] +Categories=Games; +Encoding=UTF-8 +Exec=/usr/bin/openttd +Name=OpenTTD +Icon=openttd.32 +Terminal=false +Type=Application +EOF + +%clean +rm -Rf "$RPM_BUILD_ROOT" + +%files +%dir %{_datadir}/games/%{name} +%dir %{_datadir}/games/%{name}/lang +%dir %{_datadir}/games/%{name}/data +%dir %{_datadir}/games/%{name}/gm +%dir %{_datadir}/games/%{name}/docs +%dir %{_datadir}/pixmaps +%defattr(644, root, games, 755) +%attr(755, root, games) %{_bindir}/%{name} +%{_datadir}/games/%{name}/lang/* +%{_datadir}/games/%{name}/data/* +%{_datadir}/games/%{name}/docs/* +%{_datadir}/pixmaps/* +%{_datadir}/applications/%{name}.desktop + diff --git a/os/suse/openttd.spec b/os/suse/openttd.spec deleted file mode 100644 index 431840b2f71eaf4c943103c6c3beb9566d1f89be..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 11656 zcmY%9QdTG~NKIBq%gjktNXsu$C`e4sPE1c#$S+9ED=A4)&?qS?&CAy00;zP)FQ_ca zOwTA$&`8!)FfuSOR|v^SRq!uJ%?k-}Q7B1G%+=#kRtU++EQT1En3tlEn3JQBo1c=I zmYJMbl9``ZtN<2GNy&upO7ay-GEx-^iZY8!GV@Zol;KWDEJ{@<%}Yrw0xKv^%uQ9u z$xKeoD^68NEC!3g9Gh8EoSKuyrOf4*n44;)00&S{aD}B76=&w>!DNcd^0h)%hw9}QrE>*9VxS1B z)HyXLwYVg)NWmr<%5p$bZO0W{nwy(gR0&lLkBm%EID>f#5Cr7vvX}D1=ld=jZ1sxTNNkR-|$Tr52WE7Nr(LO%8VPQK-tv zOj5|nOe)ArS4b;LO)aS`NHtPO%g-xG&d*EBOy_bc&CE$bXiQH|RtR?S(M?G$OU(i6 zhB6^$Ksj)eV0^fF5CJYORhQJ_SJ#B{z@{L7vJ3dkU0>d^3}a@(YSU-b@Fj z79|{BQ_@jLR4B+VD9uSMQUI&WFUm~M%uCG4sZ=O0$}A~K%~MFKL_Jq0Nbxch}FxTof&7A58=1e7M_WF{*> zlbJ#pB#A2+=^5xLxaAiqFMXLu8^6R zoKu>TngVf8YFTPgr9x3EICp@vYB4yyE2QL?=jG%lrhrlqD6m1{rpLvlnv$B9nU|^% zpORRTn37opO4$0P#YOtX8Hq)y`XE)s`l@+}xv5-Sss%-<1zf7dsU@WaTwJP2pv1zZ zrw>UxrA4UIjOptdBr7( zIXPUpiP<2dk+}*m4wq_jPHJKvS5dBlZcv(nk}4#9=I56vS#xozf&!u#?1RLTk|GT= z6B8YUqWt_49dJw*>nNC;nrd>Xf+fvOO;IEjG!<0ilQQ#CGK-+zQw8~66&4QqIf;4c zTxepTFhUng&*kD`7zLvtFd71*Aut*OqaiRF0;3@?8UmvsFd71*Aut*OqaiRF0;3@? z8UmvsFd71*Aut*OqaiRF0;3@?8UmvsFd71*Aut*OqaiRF0;3@?8UmvsFd71*Aut*O NqaiRF0z)nYxBxkG*p~nR