/[packages]/cauldron/openttd/current/SPECS/openttd.spec
ViewVC logotype

Contents of /cauldron/openttd/current/SPECS/openttd.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 650747 - (show annotations) (download)
Tue Jul 8 18:26:27 2014 UTC (9 years, 8 months ago) by wally
File size: 1825 byte(s)
- new version 1.4.2 RC1
- simplify .spec a bit (SILENT)
1 # comment out if not prerelease
2 %define prel RC1
3
4 %define rel 1
5
6 %if 0%{?prel:1}
7 # use lowercase %%prel in %%release
8 # because e.g. RC1 < beta1 (in ASCII R=82 and b=98)
9 %define lpre %(echo %{prel} | tr A-Z a-z)
10 %endif
11
12 Name: openttd
13 Version: 1.4.2
14 Release: %mkrel %{?prel:0.%lpre.}%{rel}
15
16 Summary: An open source clone of the Microprose game "Transport Tycoon Deluxe" game
17 Group: Games/Strategy
18 License: GPLv2
19 URL: http://www.openttd.org
20 Source0: http://binaries.openttd.org/releases/%{version}%{?prel:-%prel}/%{name}-%{version}%{?prel:-%prel}-source.tar.xz
21
22 BuildRequires: libpng-devel
23 BuildRequires: SDL-devel
24 BuildRequires: libz-devel
25 BuildRequires: liblzma-devel
26 BuildRequires: freetype-devel
27 BuildRequires: fontconfig-devel
28 BuildRequires: liblzo-devel
29 BuildRequires: icu-devel
30 BuildRequires: unzip
31 BuildRequires: ccache
32 BuildRequires: desktop-file-utils
33 BuildRequires: grfcodec
34 Requires: TiMidity++
35 Requires: %{name}-opengfx
36 Requires: %{name}-opensfx
37 Requires: %{name}-openmsx
38
39 %description
40 OpenTTD is an open source clone of the Microprose game "Transport Tycoon
41 Deluxe" game.
42
43 %prep
44 %setup -q -n %{name}-%{version}%{?prel:-%prel}
45 %apply_patches
46
47 %build
48 export CFLAGS="%{optflags}"
49 export CXXFLAGS="%{optflags}"
50 export LDFLAGS="%{ldflags}"
51
52 ./configure \
53 --prefix-dir=%{_prefix} \
54 --install-dir=%{buildroot} \
55 --with-ccache
56 %make VERBOSE=1
57
58 %install
59 %makeinstall_std
60
61 #cleanup
62 rm -rf %{buildroot}%{_datadir}/pixmaps
63
64 # fix desktop file
65 desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
66 --add-category=StrategyGame \
67 --remove-key=Version \
68 %{buildroot}%{_datadir}/applications/%{name}.desktop
69
70 %files
71 %doc *.txt COPYING
72 %{_gamesbindir}/%{name}
73 %{_gamesdatadir}/%{name}
74 %{_datadir}/applications/%{name}.desktop
75 %{_datadir}/icons/hicolor/*/apps/%{name}.png
76 %{_mandir}/man6/%{name}.*

  ViewVC Help
Powered by ViewVC 1.1.30