Changeset - r1159:f98440f40268
[Not reviewed]
master
0 1 0
dominik - 20 years ago 2005-01-24 23:58:12
dominik@openttd.org
(svn r1660) Added scenarios to Mandrakelinux specs file
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
os/linux/openttd.spec
Show inline comments
 
@@ -41,28 +41,30 @@ game data directory!
 
#------------------------------------------------------------------------------
 
%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" \
 
@@ -105,24 +107,28 @@ rm -rf $RPM_BUILD_ROOT
 
%{_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 <dominik@openttd.com> 0.3.6-1mdk
0 comments (0 inline, 0 general)