os/rpm/openttd.spec
author rubidium
Wed, 17 Dec 2008 23:08:11 +0000
changeset 10434 3659467c844c
parent 10274 4173a4a89178
permissions -rw-r--r--
(svn r14687) -Change: log all configure errors to config.log
10274
4173a4a89178 (svn r14509) -Fix (r14507): missing svn:keywords
smatz
parents: 10272
diff changeset
     1
# $Id$
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
     2
#-------------------------------------------------------------------------------
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
     3
# spec file for the openttd rpm package
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
     4
#
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
     5
# Copyright (c) 2007-2008 The OpenTTD developers
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
     6
#
fbc319d415c4 (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.
rubidium
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
fbc319d415c4 (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.
rubidium
parents:
diff changeset
     8
# package are under the same license as the package itself
fbc319d415c4 (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.
rubidium
parents:
diff changeset
     9
#
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    10
#-------------------------------------------------------------------------------
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    11
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
    12
Name:          openttd
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    13
Version:       0.7.0
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    14
Release:       1%{?dist}
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    15
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    16
Group:         Amusements/Games
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    17
License:       GPLv2
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
    18
URL:           http://www.openttd.org
fbc319d415c4 (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.
rubidium
parents:
diff changeset
    19
Summary:       OpenTTD is an Open Source clone of Chris Sawyer's Transport Tycoon Deluxe
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    20
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    21
Source:        %{name}-%{version}.tar.bz2
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    22
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    23
Requires:      fontconfig
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    24
Requires:      libicu
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    25
Requires:      libpng
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    26
Requires:      SDL
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    27
Requires:      zlib
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    28
BuildRequires: fontconfig-devel
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    29
BuildRequires: libpng-devel
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    30
BuildRequires: libicu-devel
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    31
BuildRequires: SDL-devel
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    32
BuildRequires: zlib-devel
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    33
# vendor specific dependencies
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    34
%if %{_vendor}=="alt"
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    35
Requires:      freetype
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    36
BuildRequires: freetype-devel
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    37
%endif
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    38
%if %{_vendor}=="MandrakeSoft" || %{_vendor}=="mandriva"
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    39
Requires:      freetype2
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    40
BuildRequires: libfreetype6-devel
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    41
%endif
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    42
%if %{_vendor}=="redhat" || %{_vendor}=="fedora"
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    43
Requires:      freetype
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    44
BuildRequires: freetype-devel
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    45
BuildRequires: desktop-file-utils
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    46
%endif
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
    47
%if %{_vendor}=="suse"
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    48
Requires:      freetype2
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
    49
BuildRequires: freetype2-devel
fbc319d415c4 (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.
rubidium
parents:
diff changeset
    50
%endif
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    51
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
    52
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-buildroot
fbc319d415c4 (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.
rubidium
parents:
diff changeset
    53
fbc319d415c4 (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.
rubidium
parents:
diff changeset
    54
%description
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    55
OpenTTD is a reimplementation of the Microprose game "Transport Tycoon Deluxe"
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    56
with lots of new features and enhancements. To play the game you need to copy
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    57
the following 6 data files from your Transport Tycoon Deluxe CD to the game
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    58
data directory in %{_datadir}/games/%{name}/data:
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
    59
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    60
From the Windows version of TTD you need:
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    61
sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    62
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    63
Or if you have the DOS version you need:
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    64
sample.cat TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    65
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    66
OpenTTD is licensed under the GNU General Public License version 2.0. For more
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    67
information, see the file 'COPYING' included with every release and source
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    68
download of the game.
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
    69
fbc319d415c4 (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.
rubidium
parents:
diff changeset
    70
%prep
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    71
%setup -q
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
    72
fbc319d415c4 (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.
rubidium
parents:
diff changeset
    73
%build
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    74
./configure \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    75
	--revision=%{version} \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    76
	--prefix-dir="%{_prefix}" \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    77
	--binary-dir="bin" \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    78
	--binary-name="%{name}" \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    79
#	--menu-name="OpenTTD" \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    80
#	--data-dir="share\games\%{name}" \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    81
#	--doc-dir="share\doc\%{name}" \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    82
#	--icon-dir="share/pixmaps" \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    83
#	--icon-theme-dir="share/icons/hicolor" \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    84
#	--man-dir="share/man/man6" \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    85
#	--menu-dir="share/applications" \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    86
	--enable-debug=0 \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    87
#	--menu_group="Game;" \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    88
	--with-sdl \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    89
	--with-zlib \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    90
	--with-png \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    91
	--with-freetype \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    92
	--with-fontconfig \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    93
	--with-icu \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    94
	--enable-strip
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    95
make %{?_smp_mflags}
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
    96
fbc319d415c4 (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.
rubidium
parents:
diff changeset
    97
%install
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    98
rm -rf "%{buildroot}"
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
    99
make install INSTALL_DIR="%{buildroot}"
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
   100
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   101
# Validate menu entrys (vendor specific)
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   102
%if %{_vendor} == "redhat" || %{_vendor}=="fedora"
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   103
desktop-file-install \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   104
#	--delete-original \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   105
	--vendor="%{_vendor}" \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   106
	--remove-key Version \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   107
	--dir="%{buildroot}/%{_datadir}/applications/" \
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   108
	"%{buildroot}/%{_datadir}/applications/%{name}.desktop"
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   109
%endif
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
   110
fbc319d415c4 (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.
rubidium
parents:
diff changeset
   111
%clean
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   112
rm -rf "%{buildroot}"
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   113
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   114
%post
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   115
# Update the icon cache (vendor specific)
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   116
%if %{_vendor}=="MandrakeSoft" || %{_vendor}=="mandriva"
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   117
%update_icon_cache hicolor
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   118
%endif
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   119
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   120
%if %{_vendor} == "redhat" || %{_vendor}=="fedora"
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   121
touch --no-create %{_datadir}/icons/hicolor
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   122
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   123
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   124
fi
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   125
%endif
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   126
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   127
%postun
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   128
# Update the icon cache (vendor specific)
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   129
%if %{_vendor}=="MandrakeSoft" || %{_vendor}=="mandriva"
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   130
%update_icon_cache hicolor
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   131
%endif
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   132
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   133
%if %{_vendor} == "redhat" || %{_vendor}=="fedora"
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   134
touch --no-create %{_datadir}/icons/hicolor
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   135
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   136
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   137
fi
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   138
%endif
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
   139
fbc319d415c4 (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.
rubidium
parents:
diff changeset
   140
%files
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   141
%defattr(-, root, games, -)
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   142
%dir %{_datadir}/doc/%{name}
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
   143
%dir %{_datadir}/games/%{name}
fbc319d415c4 (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.
rubidium
parents:
diff changeset
   144
%dir %{_datadir}/games/%{name}/lang
fbc319d415c4 (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.
rubidium
parents:
diff changeset
   145
%dir %{_datadir}/games/%{name}/data
fbc319d415c4 (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.
rubidium
parents:
diff changeset
   146
%dir %{_datadir}/games/%{name}/gm
fbc319d415c4 (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.
rubidium
parents:
diff changeset
   147
%attr(755, root, games) %{_bindir}/%{name}
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   148
%{_datadir}/doc/%{name}/*
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
   149
%{_datadir}/games/%{name}/lang/*
fbc319d415c4 (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.
rubidium
parents:
diff changeset
   150
%{_datadir}/games/%{name}/data/*
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   151
%{_datadir}/applications/%{name}.desktop
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
   152
%{_datadir}/pixmaps/*
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   153
%{_datadir}/icons/hicolor/*/apps/%{name}.png
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   154
%doc %{_mandir}/man6/%{name}.6.gz
8752
fbc319d415c4 (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.
rubidium
parents:
diff changeset
   155
10272
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   156
%changelog
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   157
* Mon Oct 20 2008 Benedikt Brüggemeier <skidd13@openttd.org>
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   158
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   159
- Added libicu dependency
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   160
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   161
* Thu Sep 23 2008 Benedikt Brüggemeier <skidd13@openttd.org>
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   162
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   163
- Merged both versions of the spec file
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   164
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   165
* Fri Aug 29 2008 Jonathan Coome <maedhros@openttd.org>
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   166
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   167
- Rewrite spec file from scratch.
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   168
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   169
* Sat Aug 02 2008 Benedikt Brüggemeier <skidd13@openttd.org>
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   170
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   171
- Updated spec file
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   172
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   173
* Thu Mar 27 2008 Denis Burlaka <burlaka@yandex.ru>
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   174
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   175
- Universal spec file
e773c78f615c (svn r14507) -Codechange: Update the RPM spec file (futher changes are expected till 0.7)
skidd13
parents: 8752
diff changeset
   176