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