summaryrefslogtreecommitdiff
path: root/ultimatestunts.spec
blob: ff7e405cfdb36b4d3bdf2c595ba5dd004b049322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# TODO:
# - add .desktop file

%define	src_ver	0561

Summary:	Remake of the famous game stunts
Summary(pl):	Nowa wersja sławnej gry stunts
Name:		ultimatestunts
Version:	0.5.6
Release:	0.1
License:	GPL
Group:		X11/Applications/Games
Source0:	http://dl.sourceforge.net/ultimatestunts/%{name}-srcdata-%{src_ver}.tar.gz
# Source0-md5:	9c2bfd6f2e25c98ebe852522afe4ccfa
Patch0:		%{name}-directories.patch
URL:		http://www.ultimatestunts.nl/
BuildRequires:	OpenAL-devel
BuildRequires:	OpenGL-devel
BuildRequires:	SDL-devel >= 1.2.0
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	ode-devel
BuildRequires:	sed >= 4.0
Obsoletes:	ultimatestunts-data
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define		_noautoreqdep	libGL.so.1 libGLU.so.1

%description
UltimateStunts is a remake of the famous game stunts. It was a 3D
racing game, with simple CGA/EGA/VGA graphics and no texture or smooth
shading, but because of the spectacular stunts (loopings, bridges to
jump over, etc.) it was really fun to play.

The remake provides more modern features, like openGL graphics, 3D
sound and Internet multiplaying.

%description -l pl
UltimateStunts jest nową wersją sławnej gry stunts. Była to
trójwymiarowa gra wyścigowa, z prostą grafiką CGA/EGA/VGA bez tekstur
ani bez cieniowania, lecz dzięki spektakularnym akrobacją (obroty,
skoki na mostami, itp.) świetnie się w nią grało.

Ta, nowsza wersja daje więcej nowych urozmaiceń, takich jak grafika
OpenGL, dźwięk 3D, czy gra przez Internet.

%prep
%setup -q -n %{name}-srcdata-%{src_ver}
%patch0 -p1
sed -i 's/fr_FR/fr/' po/LINGUAS
mv po/fr{_FR,}.po

%build
%{__aclocal}
%{__autoconf}
%{__automake}
# config.h.in created manually, touch it so make will not call autoheader
touch config.h.in
%configure
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_datadir}/games/%{name},%{_sysconfdir}}

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT \
	localedir=%{_datadir}/locale \
	usdatadir=$RPM_BUILD_ROOT%{_datadir}/games/%{name}

rm -rf $RPM_BUILD_ROOT%{_datadir}/games/%{name}/lang
find $RPM_BUILD_ROOT%{_datadir}/games/%{name} -name CVS | xargs rm -rf

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS README
%attr(755,root,root) %{_bindir}/*
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
%{_datadir}/games/%{name}