From 920a93071be4c8a92c99c85679408371fc8feae5 Mon Sep 17 00:00:00 2001 From: dominik Date: Sat, 11 Dec 2004 19:20:00 +0000 Subject: (svn r1021) Updated Spec file for Linux RPM release builds --- os/linux/README.urpmi | 9 ++++ os/linux/openttd-0.3.4.spec | 104 --------------------------------------- os/linux/openttd.spec | 115 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+), 104 deletions(-) create mode 100644 os/linux/README.urpmi delete mode 100644 os/linux/openttd-0.3.4.spec create mode 100644 os/linux/openttd.spec (limited to 'os') diff --git a/os/linux/README.urpmi b/os/linux/README.urpmi new file mode 100644 index 000000000..0c8385e66 --- /dev/null +++ b/os/linux/README.urpmi @@ -0,0 +1,9 @@ +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/linux/openttd-0.3.4.spec b/os/linux/openttd-0.3.4.spec deleted file mode 100644 index e1a64d1eb..000000000 --- a/os/linux/openttd-0.3.4.spec +++ /dev/null @@ -1,104 +0,0 @@ -%define name openttd -%define version 0.3.4 -%define release 1mdk - -Name: %{name} -Summary: An open source clone of the Microprose game "Transport Tycoon Deluxe" -Version: %{version} -Release: %{release} -Source0: %{name}-%{version}.tar.bz -Source10: %{name}.64.png -URL: http://www.openttd.org -Group: Games/Strategy -Packager: Dominik Scherer <> -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot -License: GPL -BuildRequires: libSDL1.2-devel >= 1.2.7 -BuildRequires: libpng3-devel >= 1.2.5 -BuildRequires: zlib1-devel >= 1.2.1 - -%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! - -%prep -rm -rf $RPM_BUILD_ROOT -%setup - -%build -make BINARY_DIR=%{_gamesbindir}/openttd/ INSTALL_DIR=%{_gamesdatadir}/openttd/ GAME_DATA_DIR=%{_gamesdatadir}/openttd/ USE_HOMEDIR=1 PERSONAL_DIR=.openttd - -%install -mkdir -p $RPM_BUILD_ROOT%{_gamesbindir}/openttd -mkdir -p $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/lang - -cp ./openttd $RPM_BUILD_ROOT%{_gamesbindir}/openttd/openttd -cp -r ./lang/*.lng $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/lang/ -cp -r ./data $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/ - -# icon -install -m644 %{SOURCE10} -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png -install -m644 %{SOURCE10} -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png -install -m644 %{SOURCE10} -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/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 -%defattr(-,root,root,0755) -%{_gamesbindir}/openttd/openttd - -%{_gamesdatadir}/openttd/lang/american.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/italian.lng -%{_gamesdatadir}/openttd/lang/norwegian.lng -%{_gamesdatadir}/openttd/lang/origveh.lng -%{_gamesdatadir}/openttd/lang/polish.lng -%{_gamesdatadir}/openttd/lang/romanian.lng -%{_gamesdatadir}/openttd/lang/slovak.lng -%{_gamesdatadir}/openttd/lang/swedish.lng - -%{_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 - - -%{_menudir}/%{name} -%{_iconsdir}/*.png -%{_miconsdir}/*.png -%{_liconsdir}/*.png - -%doc changelog.txt readme.txt COPYING - -%changelog -* 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 \ No newline at end of file diff --git a/os/linux/openttd.spec b/os/linux/openttd.spec new file mode 100644 index 000000000..61eb1007d --- /dev/null +++ b/os/linux/openttd.spec @@ -0,0 +1,115 @@ +%define name openttd +%define version 0.3.5 +%define release 1mdk + +Name: %{name} +Summary: An open source clone of the Microprose game "Transport Tycoon Deluxe" +Version: %{version} +Release: %{release} +Source0: %{name}-%{version}.tar.bz2 +URL: http://www.openttd.org +Group: Games/Strategy +Packager: Dominik Scherer +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +License: GPL +BuildRequires: libSDL1.2-devel >= 1.2.7 +BuildRequires: libpng3-devel >= 1.2.5 +BuildRequires: zlib1-devel >= 1.2.1 + +%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! + +%prep +rm -rf $RPM_BUILD_ROOT +%setup + +%build +make BINARY_DIR=%{_gamesbindir}/openttd/ INSTALL_DIR=%{_gamesdatadir}/openttd/ GAME_DATA_DIR=%{_gamesdatadir}/openttd/ USE_HOMEDIR=1 PERSONAL_DIR=.openttd + +%install +mkdir -p $RPM_BUILD_ROOT%{_gamesbindir}/openttd +mkdir -p $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/lang +mkdir -p $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/data + +cp ./openttd $RPM_BUILD_ROOT%{_gamesbindir}/openttd/openttd +cp -r ./lang/*.lng $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/lang/ +cp -r ./data/*.grf $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/data/ +cp -r ./data/opntitle.dat $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/data/ + +# icon +install -m644 media/openttd.64.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.64.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/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 +%defattr(-,root,root,0755) +%{_gamesbindir}/openttd/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/latvian.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/russian.lng +%{_gamesdatadir}/openttd/lang/slovak.lng +%{_gamesdatadir}/openttd/lang/spanish.lng +%{_gamesdatadir}/openttd/lang/swedish.lng +%{_gamesdatadir}/openttd/lang/turkish.lng + +%{_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 + +%{_menudir}/%{name} +%{_iconsdir}/*.png +%{_miconsdir}/*.png +%{_liconsdir}/*.png + +%doc changelog.txt readme.txt COPYING os/linux/README.urpmi + +%changelog +* Wed Dec ?? 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 \ No newline at end of file -- cgit v1.2.3-70-g09d2