(svn r22256) -Update [FS#3375]: RPM spec file (Ammler)
This commit is contained in:
		
							
								
								
									
										6
									
								
								os/rpm/openttd-rpmlintrc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								os/rpm/openttd-rpmlintrc
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					# the man page is in the subpackage data
 | 
				
			||||||
 | 
					addFilter("openttd.*: W: no-manual-page-for-binary openttd")
 | 
				
			||||||
 | 
					# no other package depends on this package, so this should not matter
 | 
				
			||||||
 | 
					addFilter("openttd.*: W: file-contains-date-and-time /usr/bin/openttd")
 | 
				
			||||||
 | 
					addFilter("openttd.*: W: file-contains-current-date /usr/bin/openttd")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										100
									
								
								os/rpm/openttd.changes
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										100
									
								
								os/rpm/openttd.changes
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,100 @@
 | 
				
			|||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Sun Mar  6 09:36:55 UTC 2011 - ammler@openttdcoop.org
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- upstream update 1.1.0-RC2
 | 
				
			||||||
 | 
					  * Feature: XZ/LZMA2 savegame support. New default reduces
 | 
				
			||||||
 | 
					    savegame size by 10 to 30% with slightly more CPU usage.
 | 
				
			||||||
 | 
					    (requires xz-devel)
 | 
				
			||||||
 | 
					  * Feature: Remote administration
 | 
				
			||||||
 | 
					  * Feature: a lot improvements with GUI
 | 
				
			||||||
 | 
					  * Feature: Customizable hotkeys
 | 
				
			||||||
 | 
					  * Sources for openttd.grf are pngs (requires grfcodec >= 5.1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Sun Nov 21 11:11:38 UTC 2010 - ammler@openttdcoop.org
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- upstream update 1.0.5
 | 
				
			||||||
 | 
					  * Fix: Reading (very) recently freed memory [CVE-2010-4168]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Sun Oct 31 17:53:41 UTC 2010 - ammler@openttdcoop.org
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- upstream update 1.0.4
 | 
				
			||||||
 | 
					  * build openttd.grf from source
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Tue Aug 10 20:16:03 UTC 2010 - ammler@openttdcoop.org
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- upstream update 1.0.3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Wed Jun 23 11:42:59 UTC 2010 - Marcel Gmür <ammler@openttdcoop.org>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- upstream update 1.0.2
 | 
				
			||||||
 | 
					  * Feature: Translated desktop shortcut comments (r19884)
 | 
				
			||||||
 | 
					  * many minor Bugfixes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Sat May  1 15:59:32 UTC 2010 - Marcel Gmür <ammler@openttdcoop.org>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- upstream update 1.0.1
 | 
				
			||||||
 | 
					  * Fix: Leaking a file descriptor
 | 
				
			||||||
 | 
					  * Fix a lot small bugs, like minor desync issues on Mulitplayer
 | 
				
			||||||
 | 
					- no strip on make
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Thu Apr  1 08:53:54 UTC 2010 - Marcel Gmür <ammler@openttdcoop.org>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- upstream update 1.0.0 (finally!)
 | 
				
			||||||
 | 
					  * completely independend game but still working also
 | 
				
			||||||
 | 
					    with ttd original gaphics, sounds and music
 | 
				
			||||||
 | 
					- Add: Recommends openmsx
 | 
				
			||||||
 | 
					- requires lzo2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Fri Dec 18 2009 Marcel Gmür <ammler@openttdcoop.org> - 0.7.4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- support for differen branches
 | 
				
			||||||
 | 
					- easy support for dedicated branch
 | 
				
			||||||
 | 
					- let openttd build system make the dektop file
 | 
				
			||||||
 | 
					- split the package to data and gui
 | 
				
			||||||
 | 
					- disable requires
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Thu Oct 01 2009 Marcel Gmür <ammler@openttdcoop.org> - 0.7.3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- disable libicu for RHEL4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Sat Sep 26 2009 Marcel Gmür <ammler@openttdcoop.org> - 0.7.2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- no subfolder games for datadir
 | 
				
			||||||
 | 
					- cleanup: no post and postun anymore
 | 
				
			||||||
 | 
					- Recommends: opengfx (for suse and mandriva)
 | 
				
			||||||
 | 
					- add SUSE support
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Mon Oct 20 2008 Benedikt Brüggemeier <skidd13@openttd.org>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Added libicu dependency
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Thu Sep 23 2008 Benedikt Brüggemeier <skidd13@openttd.org>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Merged both versions of the spec file
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Fri Aug 29 2008 Jonathan Coome <maedhros@openttd.org>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Rewrite spec file from scratch.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Sat Aug 02 2008 Benedikt Brüggemeier <skidd13@openttd.org>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Updated spec file
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Thu Mar 27 2008 Denis Burlaka <burlaka@yandex.ru>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Universal spec file
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1,202 +1,199 @@
 | 
				
			|||||||
# $Id$
 | 
					%define dedicated       0
 | 
				
			||||||
#-------------------------------------------------------------------------------
 | 
					 | 
				
			||||||
# spec file for the openttd rpm package
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# Copyright (c) 2007-2011 The OpenTTD developers
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# This file and all modifications and additions to the pristine
 | 
					 | 
				
			||||||
# package are under the same license as the package itself
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# Note: for (at least) CentOS '#' comments end '\' continue command on new line.
 | 
					 | 
				
			||||||
#       So place all '#' commented parameters of e.g. configure to the end.
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
#-------------------------------------------------------------------------------
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
Name:          openttd
 | 
					%define binname         openttd
 | 
				
			||||||
Version:       1.2.0
 | 
					 | 
				
			||||||
Release:       1%{?dist}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
Group:         Amusements/Games
 | 
					%define srcver          1.2.0
 | 
				
			||||||
License:       GPLv2
 | 
					 | 
				
			||||||
URL:           http://www.openttd.org
 | 
					 | 
				
			||||||
Summary:       OpenTTD is an Open Source clone of Chris Sawyer's Transport Tycoon Deluxe
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
Source:        %{name}-%{version}-source.tar.bz2
 | 
					%if %{dedicated}
 | 
				
			||||||
 | 
					Name:           %{binname}-dedicated
 | 
				
			||||||
 | 
					%else
 | 
				
			||||||
 | 
					Name:           %{binname}
 | 
				
			||||||
 | 
					%endif
 | 
				
			||||||
 | 
					Version:        %{srcver}
 | 
				
			||||||
 | 
					Release:        1%{?dist}
 | 
				
			||||||
 | 
					Group:          Amusements/Games/Strategy/Other
 | 
				
			||||||
 | 
					License:        GPLv2
 | 
				
			||||||
 | 
					URL:            http://www.openttd.org
 | 
				
			||||||
 | 
					Summary:        An open source clone of Chris Sawyer's Transport Tycoon Deluxe
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Source:         openttd%{?branch:-%{branch}}-%{srcver}-source.tar.bz2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# the main package works with the exact same data package version only
 | 
				
			||||||
 | 
					Requires:       %{binname}-data = %{version}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					BuildRequires:  gcc-c++
 | 
				
			||||||
 | 
					BuildRequires:  libpng-devel
 | 
				
			||||||
 | 
					BuildRequires:  zlib-devel
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%if 0%{?mdkversion}
 | 
				
			||||||
 | 
					BuildRequires:  liblzo-devel
 | 
				
			||||||
 | 
					BuildRequires:  liblzma-devel
 | 
				
			||||||
 | 
					%else
 | 
				
			||||||
 | 
					BuildRequires:  lzo-devel
 | 
				
			||||||
 | 
					BuildRequires:  xz-devel
 | 
				
			||||||
 | 
					%endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#needed by libdrm
 | 
				
			||||||
 | 
					%if 0%{?rhel_version} >= 600
 | 
				
			||||||
 | 
					BuildRequires:  kernel
 | 
				
			||||||
 | 
					%endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# for lzma detection
 | 
				
			||||||
 | 
					%if 0%{?suse_version}
 | 
				
			||||||
 | 
					BuildRequires:  pkg-config
 | 
				
			||||||
 | 
					%endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Desktop specific tags, not needed for dedicated
 | 
				
			||||||
 | 
					%if !%{dedicated}
 | 
				
			||||||
 | 
					BuildRequires:  fontconfig-devel
 | 
				
			||||||
 | 
					BuildRequires:  SDL-devel
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					BuildRequires:  grfcodec
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Requires:      fontconfig
 | 
					 | 
				
			||||||
Requires:      SDL
 | 
					 | 
				
			||||||
Requires:      zlib
 | 
					 | 
				
			||||||
Requires:      xz-devel
 | 
					 | 
				
			||||||
BuildRequires: gcc-c++
 | 
					 | 
				
			||||||
BuildRequires: fontconfig-devel
 | 
					 | 
				
			||||||
BuildRequires: libpng-devel
 | 
					 | 
				
			||||||
BuildRequires: libicu-devel
 | 
					 | 
				
			||||||
BuildRequires: SDL-devel
 | 
					 | 
				
			||||||
BuildRequires: zlib-devel
 | 
					 | 
				
			||||||
# vendor specific dependencies
 | 
					# vendor specific dependencies
 | 
				
			||||||
%if %{_vendor}=="alt"
 | 
					 %if !0%{?rhel_version}
 | 
				
			||||||
Requires:      freetype
 | 
					BuildRequires:  libicu-devel
 | 
				
			||||||
BuildRequires: freetype-devel
 | 
					 %endif
 | 
				
			||||||
%endif
 | 
					 %if 0%{?rhel_version} || 0%{?fedora}
 | 
				
			||||||
%if %{_vendor}=="redhat" || %{_vendor}=="fedora"
 | 
					BuildRequires:  freetype-devel
 | 
				
			||||||
Requires:      freetype
 | 
					 %endif
 | 
				
			||||||
BuildRequires: freetype-devel
 | 
					 %if 0%{?suse_version} || 0%{?mdkversion}
 | 
				
			||||||
BuildRequires: desktop-file-utils
 | 
					BuildRequires:  freetype2-devel
 | 
				
			||||||
%endif
 | 
					 %endif
 | 
				
			||||||
%if %{_vendor}=="suse" || %{_vendor}=="mandriva"
 | 
					 %if 0%{?suse_version}
 | 
				
			||||||
Requires:      freetype2
 | 
					BuildRequires:  update-desktop-files
 | 
				
			||||||
BuildRequires: freetype2-devel
 | 
					 %endif
 | 
				
			||||||
%endif
 | 
					 | 
				
			||||||
%if %{_vendor}=="suse"
 | 
					 | 
				
			||||||
BuildRequires: update-desktop-files
 | 
					 | 
				
			||||||
%endif
 | 
					%endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%if %{dedicated}
 | 
				
			||||||
 | 
					Conflicts:      %{binname} %{binname}-gui
 | 
				
			||||||
 | 
					%else
 | 
				
			||||||
 | 
					Provides:       %{binname}-gui
 | 
				
			||||||
 | 
					Conflicts:      %{binname}-dedicated
 | 
				
			||||||
 | 
					Requires:       openttd-opensfx
 | 
				
			||||||
# recommends works for suse (not sles9) and mandriva, only
 | 
					# recommends works for suse (not sles9) and mandriva, only
 | 
				
			||||||
%if 0%{?suse_version} > 910  || %{_vendor}=="mandriva"
 | 
					 %if 0%{?suse_version} || 0%{?mdkversion}
 | 
				
			||||||
Recommends:	opengfx
 | 
					# require timidity is part of openmsx
 | 
				
			||||||
# for 0.8.0
 | 
					Recommends:     openttd-openmsx
 | 
				
			||||||
#Recommends:	opensfx
 | 
					 %endif
 | 
				
			||||||
%endif
 | 
					%endif
 | 
				
			||||||
 | 
					# Recommends would fit better but not well supported...
 | 
				
			||||||
 | 
					Requires:       openttd-opengfx >= 0.3.2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-buildroot
 | 
					BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%description
 | 
					%description
 | 
				
			||||||
OpenTTD is a reimplementation of the Microprose game "Transport Tycoon Deluxe"
 | 
					OpenTTD is a reimplementation of the Microprose game "Transport Tycoon Deluxe"
 | 
				
			||||||
with lots of new features and enhancements. To play the game you need either
 | 
					with lots of new features and enhancements. To play the game you need either
 | 
				
			||||||
the original data from the game or install the recommend package OpenGFX.
 | 
					the original data from the game or install the recommend subackages OpenGFX for
 | 
				
			||||||
 | 
					free graphics, OpenSFX for free sounds and OpenMSX for free music.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
OpenTTD is licensed under the GNU General Public License version 2.0. For more
 | 
					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
 | 
					information, see the file 'COPYING' included with every release and source
 | 
				
			||||||
download of the game.
 | 
					download of the game.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# the subpackage data needs only to build once, the dedicated version
 | 
				
			||||||
 | 
					# can reuse the data package of the gui package
 | 
				
			||||||
 | 
					%if !%{dedicated}
 | 
				
			||||||
 | 
					%package data
 | 
				
			||||||
 | 
					Summary:        Data package for OpenTTD
 | 
				
			||||||
 | 
					Group:          Amusements/Games/Strategy/Other
 | 
				
			||||||
 | 
					 %if 0%{?suse_version} >= 1120 || 0%{?fedora} || 0%{?mdkversion}
 | 
				
			||||||
 | 
					BuildArch:      noarch
 | 
				
			||||||
 | 
					 %endif
 | 
				
			||||||
 | 
					BuildRequires:  grfcodec
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%description data
 | 
				
			||||||
 | 
					OpenTTD is a reimplementation of the Microprose game "Transport Tycoon Deluxe"
 | 
				
			||||||
 | 
					with lots of new features and enhancements. To play the game you need either
 | 
				
			||||||
 | 
					the original data from the game or the required package OpenGFX and OpenSFX.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					This package is required by openttd gui and openttd dedicated package. This
 | 
				
			||||||
 | 
					way it is possible to install a openttd version without SDL requirement.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%prep
 | 
					%prep
 | 
				
			||||||
%setup -q
 | 
					%setup -qn openttd%{?branch:-%{branch}}-%{srcver}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# we build the grfs from sources but validate the result with the existing data
 | 
				
			||||||
 | 
					md5sum bin/data/* > validate.data
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%build
 | 
					%build
 | 
				
			||||||
# suse sle <10 has no support for makedepend
 | 
					 | 
				
			||||||
%if 0%{?sles_version} == 9 || 0%{?sles_version} == 10
 | 
					 | 
				
			||||||
%define 	do_makedepend	0
 | 
					 | 
				
			||||||
%else
 | 
					 | 
				
			||||||
%define 	do_makedepend	1
 | 
					 | 
				
			||||||
%endif
 | 
					 | 
				
			||||||
./configure \
 | 
					./configure \
 | 
				
			||||||
	--prefix-dir="%{_prefix}" \
 | 
					        --prefix-dir="%{_prefix}" \
 | 
				
			||||||
	--binary-name="%{name}" \
 | 
					        --binary-name="%{binname}" \
 | 
				
			||||||
	--enable-strip \
 | 
					        --binary-dir="bin" \
 | 
				
			||||||
	--binary-dir="bin" \
 | 
					        --data-dir="share/%{binname}" \
 | 
				
			||||||
	--data-dir="share/%{name}" \
 | 
					        --doc-dir="share/doc/%{binname}" \
 | 
				
			||||||
	--with-makedepend="%{do_makedepend}" \
 | 
					        --menu-name="OpenTTD%{?branch: %{branch}}" \
 | 
				
			||||||
#	--revision="%{ver}%{?prever:-%{prever}}" \
 | 
					        --menu-group="Game;StrategyGame;" \
 | 
				
			||||||
#	--enable-debug=0 \
 | 
					        --enable-dedicated="%{dedicated}" \
 | 
				
			||||||
#	--with-sdl \
 | 
					 | 
				
			||||||
#	--with-zlib \
 | 
					 | 
				
			||||||
#	--with-png \
 | 
					 | 
				
			||||||
#	--with-freetype \
 | 
					 | 
				
			||||||
#	--with-fontconfig \
 | 
					 | 
				
			||||||
#	--with-icu \
 | 
					 | 
				
			||||||
#	--menu_group="Game;" \
 | 
					 | 
				
			||||||
#	--menu-name="OpenTTD" \
 | 
					 | 
				
			||||||
#	--doc-dir="share\doc\%{name}" \
 | 
					 | 
				
			||||||
#	--icon-dir="share/pixmaps" \
 | 
					 | 
				
			||||||
#	--icon-theme-dir="share/icons/hicolor" \
 | 
					 | 
				
			||||||
#	--man-dir="share/man/man6" \
 | 
					 | 
				
			||||||
#	--menu-dir="share/applications"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
make %{?_smp_mflags}
 | 
					make %{?_smp_mflags}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%install
 | 
					%install
 | 
				
			||||||
 | 
					%if %{dedicated}
 | 
				
			||||||
 | 
					# dedicated package needs binary only
 | 
				
			||||||
 | 
					install -D -m0755 bin/openttd %{buildroot}/%{_bindir}/%{binname}
 | 
				
			||||||
 | 
					%else
 | 
				
			||||||
make install INSTALL_DIR="%{buildroot}"
 | 
					make install INSTALL_DIR="%{buildroot}"
 | 
				
			||||||
 | 
					 %if 0%{?suse_version}
 | 
				
			||||||
# Validate menu entrys (vendor specific)
 | 
					%suse_update_desktop_file -r %{binname} Game StrategyGame
 | 
				
			||||||
%if %{_vendor} == "redhat" || %{_vendor}=="fedora"
 | 
					 %endif
 | 
				
			||||||
desktop-file-install \
 | 
					 | 
				
			||||||
	--vendor="%{_vendor}" \
 | 
					 | 
				
			||||||
	--remove-key Version \
 | 
					 | 
				
			||||||
	--dir="%{buildroot}/%{_datadir}/applications/" \
 | 
					 | 
				
			||||||
	"%{buildroot}/%{_datadir}/applications/%{name}.desktop" \
 | 
					 | 
				
			||||||
#	--delete-original
 | 
					 | 
				
			||||||
%endif
 | 
					 | 
				
			||||||
%if %{_vendor}=="suse"
 | 
					 | 
				
			||||||
%__cat > %{name}.desktop << EOF
 | 
					 | 
				
			||||||
[Desktop Entry]
 | 
					 | 
				
			||||||
Encoding=UTF-8
 | 
					 | 
				
			||||||
Name=OpenTTD
 | 
					 | 
				
			||||||
Comment=OpenTTD - A clone of the Microprose game 'Transport Tycoon Deluxe'
 | 
					 | 
				
			||||||
GenericName=OpenTTD
 | 
					 | 
				
			||||||
Type=Application
 | 
					 | 
				
			||||||
Terminal=false
 | 
					 | 
				
			||||||
Exec=%{name}
 | 
					 | 
				
			||||||
Icon=%{name}
 | 
					 | 
				
			||||||
Categories=Game;StrategyGame;
 | 
					 | 
				
			||||||
EOF
 | 
					 | 
				
			||||||
%suse_update_desktop_file -i %{name} Game StrategyGame
 | 
					 | 
				
			||||||
%endif
 | 
					%endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%clean
 | 
					%clean
 | 
				
			||||||
#rm -rf "%{buildroot}"
 | 
					rm -rf "%{buildroot}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%post
 | 
					%check
 | 
				
			||||||
# Update the icon cache (vendor specific)
 | 
					md5sum -c validate.data
 | 
				
			||||||
%if %{_vendor}=="mandriva"
 | 
					 | 
				
			||||||
%update_icon_cache hicolor
 | 
					 | 
				
			||||||
%endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
%if %{_vendor} == "redhat" || %{_vendor}=="fedora"
 | 
					 | 
				
			||||||
touch --no-create %{_datadir}/icons/hicolor
 | 
					 | 
				
			||||||
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
 | 
					 | 
				
			||||||
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
%endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
%postun
 | 
					 | 
				
			||||||
# Update the icon cache (vendor specific)
 | 
					 | 
				
			||||||
%if %{_vendor}=="mandriva"
 | 
					 | 
				
			||||||
%update_icon_cache hicolor
 | 
					 | 
				
			||||||
%endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
%if %{_vendor} == "redhat" || %{_vendor}=="fedora"
 | 
					 | 
				
			||||||
touch --no-create %{_datadir}/icons/hicolor
 | 
					 | 
				
			||||||
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
 | 
					 | 
				
			||||||
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
%endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
%files
 | 
					%files
 | 
				
			||||||
%defattr(-, root, games, -)
 | 
					%attr(755, root, root) %{_bindir}/%{binname}
 | 
				
			||||||
%dir %{_datadir}/doc/%{name}
 | 
					
 | 
				
			||||||
%dir %{_datadir}/%{name}
 | 
					# all other files are for the gui version only, also no
 | 
				
			||||||
%dir %{_datadir}/%{name}/lang
 | 
					# subpackage needed for the dedicated version
 | 
				
			||||||
%dir %{_datadir}/%{name}/data
 | 
					%if !%{dedicated}
 | 
				
			||||||
%dir %{_datadir}/%{name}/gm
 | 
					%defattr(-, root, root)
 | 
				
			||||||
%dir %{_datadir}/%{name}/scripts
 | 
					%dir %{_datadir}/icons/hicolor
 | 
				
			||||||
%attr(755, root, games) %{_bindir}/%{name}
 | 
					%dir %{_datadir}/icons/hicolor/16x16
 | 
				
			||||||
%{_datadir}/doc/%{name}/*
 | 
					%dir %{_datadir}/icons/hicolor/16x16/apps
 | 
				
			||||||
%{_datadir}/%{name}/lang/*
 | 
					%dir %{_datadir}/icons/hicolor/32x32
 | 
				
			||||||
%{_datadir}/%{name}/data/*
 | 
					%dir %{_datadir}/icons/hicolor/32x32/apps
 | 
				
			||||||
%{_datadir}/%{name}/scripts/*
 | 
					%dir %{_datadir}/icons/hicolor/48x48
 | 
				
			||||||
%{_datadir}/applications/*%{name}.desktop
 | 
					%dir %{_datadir}/icons/hicolor/48x48/apps
 | 
				
			||||||
%{_datadir}/pixmaps/*
 | 
					%dir %{_datadir}/icons/hicolor/64x64
 | 
				
			||||||
%{_datadir}/icons/*
 | 
					%dir %{_datadir}/icons/hicolor/64x64/apps
 | 
				
			||||||
%doc %{_mandir}/man6/%{name}.6.*
 | 
					%dir %{_datadir}/icons/hicolor/128x128
 | 
				
			||||||
 | 
					%dir %{_datadir}/icons/hicolor/128x128/apps
 | 
				
			||||||
 | 
					%dir %{_datadir}/icons/hicolor/256x256
 | 
				
			||||||
 | 
					%dir %{_datadir}/icons/hicolor/256x256/apps
 | 
				
			||||||
 | 
					%{_datadir}/applications/%{binname}.desktop
 | 
				
			||||||
 | 
					%{_datadir}/icons/hicolor/16x16/apps/%{binname}.png
 | 
				
			||||||
 | 
					%{_datadir}/icons/hicolor/32x32/apps/%{binname}.png
 | 
				
			||||||
 | 
					%{_datadir}/icons/hicolor/48x48/apps/%{binname}.png
 | 
				
			||||||
 | 
					%{_datadir}/icons/hicolor/64x64/apps/%{binname}.png
 | 
				
			||||||
 | 
					%{_datadir}/icons/hicolor/128x128/apps/%{binname}.png
 | 
				
			||||||
 | 
					%{_datadir}/icons/hicolor/256x256/apps/%{binname}.png
 | 
				
			||||||
 | 
					%{_datadir}/pixmaps/%{binname}.32.xpm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%files data
 | 
				
			||||||
 | 
					%defattr(-, root, root)
 | 
				
			||||||
 | 
					%dir %{_datadir}/doc/%{binname}
 | 
				
			||||||
 | 
					%dir %{_datadir}/%{binname}
 | 
				
			||||||
 | 
					%dir %{_datadir}/%{binname}/lang
 | 
				
			||||||
 | 
					%dir %{_datadir}/%{binname}/data
 | 
				
			||||||
 | 
					%dir %{_datadir}/%{binname}/gm
 | 
				
			||||||
 | 
					%dir %{_datadir}/%{binname}/scripts
 | 
				
			||||||
 | 
					%dir %{_datadir}/%{binname}/ai
 | 
				
			||||||
 | 
					%{_datadir}/doc/%{binname}/*
 | 
				
			||||||
 | 
					%{_datadir}/%{binname}/lang/*
 | 
				
			||||||
 | 
					%{_datadir}/%{binname}/data/*
 | 
				
			||||||
 | 
					%{_datadir}/%{binname}/scripts/*
 | 
				
			||||||
 | 
					%{_datadir}/%{binname}/ai/*
 | 
				
			||||||
 | 
					%{_datadir}/%{binname}/gm/*
 | 
				
			||||||
 | 
					%doc %{_mandir}/man6/%{binname}.6.*
 | 
				
			||||||
 | 
					%endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%changelog
 | 
					%changelog
 | 
				
			||||||
* Sat Sep 26 2009 Marcel Gmür <ammler@openttdcoop.org> - 0.7.2
 | 
					 | 
				
			||||||
- no subfolder games for datadir
 | 
					 | 
				
			||||||
- cleanup: no post and postun anymore
 | 
					 | 
				
			||||||
- Recommends: opengfx (for suse and mandriva)
 | 
					 | 
				
			||||||
- add SUSE support
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
* Mon Oct 20 2008 Benedikt Brüggemeier <skidd13@openttd.org>
 | 
					 | 
				
			||||||
- Added libicu dependency
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
* Thu Sep 23 2008 Benedikt Brüggemeier <skidd13@openttd.org>
 | 
					 | 
				
			||||||
- Merged both versions of the spec file
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
* Fri Aug 29 2008 Jonathan Coome <maedhros@openttd.org>
 | 
					 | 
				
			||||||
- Rewrite spec file from scratch.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
* Sat Aug 02 2008 Benedikt Brüggemeier <skidd13@openttd.org>
 | 
					 | 
				
			||||||
- Updated spec file
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
* Thu Mar 27 2008 Denis Burlaka <burlaka@yandex.ru>
 | 
					 | 
				
			||||||
- Universal spec file
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user