os/rpm/openttd.spec
author convert-repo
Mon, 07 Apr 2008 16:21:55 +0000
changeset 10076 dfd70e42c4ae
parent 9248 4eefa214ae1f
permissions -rw-r--r--
update tags
9248
4eefa214ae1f (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
     1
#
4eefa214ae1f (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
     2
# spec file for package openttd (trunk)
4eefa214ae1f (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
     3
#
4eefa214ae1f (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
# Copyright (c) 2007 The OpenTTD team.
4eefa214ae1f (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
     5
# This file and all modifications and additions to the pristine
4eefa214ae1f (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
# package are under the same license as the package itself
4eefa214ae1f (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
#
4eefa214ae1f (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
Name:          openttd
4eefa214ae1f (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
Version:       svn
4eefa214ae1f (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
    10
Release:       head
4eefa214ae1f (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
    11
Group:         Applications/Games
4eefa214ae1f (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
Source:        %{name}-%{version}-%{release}.tar.gz
4eefa214ae1f (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
    13
License:       GPL
4eefa214ae1f (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
    14
URL:           http://www.openttd.org
4eefa214ae1f (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
    15
Packager:      Denis Burlaka <burlaka@yandex.ru>
4eefa214ae1f (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
    16
Summary:       OpenTTD is an Open Source clone of Chris Sawyer's Transport Tycoon Deluxe
4eefa214ae1f (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
    17
Requires:      SDL zlib libpng freetype2 fontconfig
4eefa214ae1f (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
BuildRequires: gcc SDL-devel zlib-devel libpng-devel fontconfig-devel
4eefa214ae1f (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
%if %{_vendor}=="suse"
4eefa214ae1f (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
    20
BuildRequires: freetype2-devel
4eefa214ae1f (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
    21
%endif
4eefa214ae1f (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
    22
%if %{_vendor}=="fedora"
4eefa214ae1f (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
    23
BuildRequires: freetype-devel
4eefa214ae1f (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
    24
%endif
4eefa214ae1f (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
    25
%if %{_vendor}=="mandriva"
4eefa214ae1f (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
    26
BuildRequires: libfreetype6-devel
4eefa214ae1f (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
    27
%endif
4eefa214ae1f (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
    28
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-buildroot
4eefa214ae1f (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
    29
Prefix:        /usr
4eefa214ae1f (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
    30
4eefa214ae1f (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
    31
%description
4eefa214ae1f (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
    32
OpenTTD is a clone of the Microprose game "Transport Tycoon Deluxe", a popular game originally written by Chris Sawyer. It attempts to mimic the original game as closely as possible while extending it with new features.
4eefa214ae1f (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
    33
4eefa214ae1f (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
    34
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 download of the game.
4eefa214ae1f (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
    35
4eefa214ae1f (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
    36
%prep
4eefa214ae1f (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
    37
%setup
4eefa214ae1f (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
    38
4eefa214ae1f (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
    39
%build
4eefa214ae1f (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
    40
./configure --prefix-dir=%{prefix} --binary-dir=bin --install-dir="$RPM_BUILD_ROOT"
4eefa214ae1f (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
    41
make
4eefa214ae1f (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
    42
4eefa214ae1f (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
    43
%install
4eefa214ae1f (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
    44
make ROOT="$RPM_BUILD_ROOT" install
4eefa214ae1f (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
    45
4eefa214ae1f (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
    46
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
4eefa214ae1f (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
cat << EOF > $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
4eefa214ae1f (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
    48
[Desktop Entry]
4eefa214ae1f (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
Categories=Games;
4eefa214ae1f (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
Encoding=UTF-8
4eefa214ae1f (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
    51
Exec=/usr/bin/openttd
4eefa214ae1f (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
Name=OpenTTD
4eefa214ae1f (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
Icon=openttd.32
4eefa214ae1f (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
Terminal=false
4eefa214ae1f (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
    55
Type=Application
4eefa214ae1f (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
    56
EOF
4eefa214ae1f (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
    57
4eefa214ae1f (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
    58
%clean
4eefa214ae1f (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
rm -Rf "$RPM_BUILD_ROOT"
4eefa214ae1f (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
    60
4eefa214ae1f (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
    61
%files
4eefa214ae1f (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
    62
%dir %{_datadir}/games/%{name}
4eefa214ae1f (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
    63
%dir %{_datadir}/games/%{name}/lang
4eefa214ae1f (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
    64
%dir %{_datadir}/games/%{name}/data
4eefa214ae1f (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
    65
%dir %{_datadir}/games/%{name}/gm
4eefa214ae1f (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
    66
%dir %{_datadir}/games/%{name}/docs
4eefa214ae1f (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
    67
%dir %{_datadir}/pixmaps
4eefa214ae1f (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
    68
%defattr(644, root, games, 755)
4eefa214ae1f (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
%attr(755, root, games) %{_bindir}/%{name}
4eefa214ae1f (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
%{_datadir}/games/%{name}/lang/*
4eefa214ae1f (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
    71
%{_datadir}/games/%{name}/data/*
4eefa214ae1f (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
%{_datadir}/games/%{name}/docs/*
4eefa214ae1f (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
%{_datadir}/pixmaps/*
4eefa214ae1f (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
    74
%{_datadir}/applications/%{name}.desktop
4eefa214ae1f (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
    75