255
|
1 |
%define name openttd
|
|
2 |
%define version 0.3.4
|
|
3 |
%define release 1mdk
|
|
4 |
|
|
5 |
Name: %{name}
|
|
6 |
Summary: An open source clone of the Microprose game "Transport Tycoon Deluxe"
|
|
7 |
Version: %{version}
|
|
8 |
Release: %{release}
|
|
9 |
Source0: %{name}-%{version}.tar.bz
|
|
10 |
Source10: %{name}.64.png
|
|
11 |
URL: http://www.openttd.org
|
|
12 |
Group: Games/Strategy
|
|
13 |
Packager: Dominik Scherer <>
|
|
14 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
15 |
License: GPL
|
|
16 |
BuildRequires: libSDL1.2-devel >= 1.2.7
|
|
17 |
BuildRequires: libpng3-devel >= 1.2.5
|
|
18 |
BuildRequires: zlib1-devel >= 1.2.1
|
|
19 |
|
|
20 |
%description
|
|
21 |
An enhanced open source clone of the Microprose game "Transport Tycoon Deluxe".
|
|
22 |
You require the data files of the original Transport Tycoon Deluxe
|
|
23 |
for Windows to play the game. You have to MANUALLY copy them to the
|
|
24 |
game data directory!
|
|
25 |
|
|
26 |
%prep
|
|
27 |
rm -rf $RPM_BUILD_ROOT
|
|
28 |
%setup
|
|
29 |
|
|
30 |
%build
|
|
31 |
make BINARY_DIR=%{_gamesbindir}/openttd/ INSTALL_DIR=%{_gamesdatadir}/openttd/ GAME_DATA_DIR=%{_gamesdatadir}/openttd/ USE_HOMEDIR=1 PERSONAL_DIR=.openttd
|
|
32 |
|
|
33 |
%install
|
|
34 |
mkdir -p $RPM_BUILD_ROOT%{_gamesbindir}/openttd
|
|
35 |
mkdir -p $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/lang
|
|
36 |
|
|
37 |
cp ./openttd $RPM_BUILD_ROOT%{_gamesbindir}/openttd/openttd
|
|
38 |
cp -r ./lang/*.lng $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/lang/
|
|
39 |
cp -r ./data $RPM_BUILD_ROOT%{_gamesdatadir}/openttd/
|
|
40 |
|
|
41 |
# icon
|
|
42 |
install -m644 %{SOURCE10} -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
|
|
43 |
install -m644 %{SOURCE10} -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
|
|
44 |
install -m644 %{SOURCE10} -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png
|
|
45 |
|
|
46 |
# menu entry
|
|
47 |
mkdir -p $RPM_BUILD_ROOT/%{_menudir}
|
|
48 |
cat << EOF > $RPM_BUILD_ROOT/%{_menudir}/%{name}
|
|
49 |
?package(%{name}):command="%{_gamesbindir}/openttd/openttd" icon="%{name}.png" \
|
|
50 |
needs="X11" section="Amusement/Strategy" title="OpenTTD" \
|
|
51 |
longtitle="%{Summary}"
|
|
52 |
EOF
|
|
53 |
|
|
54 |
%clean
|
|
55 |
rm -rf $RPM_BUILD_ROOT
|
|
56 |
|
|
57 |
%post
|
|
58 |
%{update_menus}
|
|
59 |
|
|
60 |
%postun
|
|
61 |
%{clean_menus}
|
|
62 |
|
|
63 |
%files
|
|
64 |
%defattr(-,root,root,0755)
|
|
65 |
%{_gamesbindir}/openttd/openttd
|
|
66 |
|
|
67 |
%{_gamesdatadir}/openttd/lang/american.lng
|
|
68 |
%{_gamesdatadir}/openttd/lang/czech.lng
|
|
69 |
%{_gamesdatadir}/openttd/lang/danish.lng
|
|
70 |
%{_gamesdatadir}/openttd/lang/dutch.lng
|
|
71 |
%{_gamesdatadir}/openttd/lang/english.lng
|
|
72 |
%{_gamesdatadir}/openttd/lang/finnish.lng
|
|
73 |
%{_gamesdatadir}/openttd/lang/french.lng
|
|
74 |
%{_gamesdatadir}/openttd/lang/galician.lng
|
|
75 |
%{_gamesdatadir}/openttd/lang/german.lng
|
|
76 |
%{_gamesdatadir}/openttd/lang/hungarian.lng
|
|
77 |
%{_gamesdatadir}/openttd/lang/italian.lng
|
|
78 |
%{_gamesdatadir}/openttd/lang/norwegian.lng
|
|
79 |
%{_gamesdatadir}/openttd/lang/origveh.lng
|
|
80 |
%{_gamesdatadir}/openttd/lang/polish.lng
|
|
81 |
%{_gamesdatadir}/openttd/lang/romanian.lng
|
|
82 |
%{_gamesdatadir}/openttd/lang/slovak.lng
|
|
83 |
%{_gamesdatadir}/openttd/lang/swedish.lng
|
|
84 |
|
|
85 |
%{_gamesdatadir}/openttd/data/canalsw.grf
|
|
86 |
%{_gamesdatadir}/openttd/data/openttd.grf
|
|
87 |
%{_gamesdatadir}/openttd/data/opntitle.dat
|
|
88 |
%{_gamesdatadir}/openttd/data/signalsw.grf
|
|
89 |
%{_gamesdatadir}/openttd/data/trkfoundw.grf
|
|
90 |
|
|
91 |
|
|
92 |
%{_menudir}/%{name}
|
|
93 |
%{_iconsdir}/*.png
|
|
94 |
%{_miconsdir}/*.png
|
|
95 |
%{_liconsdir}/*.png
|
|
96 |
|
|
97 |
%doc changelog.txt readme.txt COPYING
|
|
98 |
|
|
99 |
%changelog
|
|
100 |
* Wed Sep 15 2004 Dominik Scherer <> 0.3.4-1mdk
|
|
101 |
- Upgraded to 0.3.4
|
|
102 |
|
|
103 |
* Wed Jul 31 2004 Dominik Scherer <> 0.3.3-1mdk
|
|
104 |
- Initial release |