summaryrefslogtreecommitdiff
path: root/csmash.spec
blob: 045d5c3065d5f83370d1f1f82d84b6932c7f9c7d (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
Summary:	3D tabletennis game
Summary(pl.UTF-8):	Trójwymiarowy tenis stołowy
Name:		csmash
Version:	0.6.6
Release:	3
License:	GPL
Group:		X11/Applications/Games
Source0:	http://dl.sourceforge.net/cannonsmash/%{name}-%{version}.tar.gz
# Source0-md5:	bcf2eddd0f04d58e5dac6d767f41d9af
Source1:	%{name}.desktop
Source2:	%{name}.png
Patch0:		%{name}-types.patch
URL:		http://CannonSmash.Sourceforge.net/
BuildRequires:	OpenGL-devel
BuildRequires:	SDL-devel >= 1.2.0
BuildRequires:	SDL_image-devel
BuildRequires:	SDL_mixer-devel
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	gettext-tools
BuildRequires:	gtk+-devel >= 1.2.0
BuildRequires:	libjpeg-devel
BuildRequires:	libstdc++-devel
Requires:	OpenGL
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

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

%description
CannonSmash is a 3D tabletennis game. The goal of this project is to
represent various strategy of tabletennis on computer game.

%description -l pl.UTF-8
CannonSmash to trójwymiarowy tenis stołowy. Celem tego projektu jest
przedstawienie różnych strategii tenisa stołowego w grze komputerowej.

%prep
%setup -q
%patch0 -p1

%build
rm -f acinclude.m4
%{__gettextize}
%{__aclocal}
%{__autoconf}
%{__automake} -i
%configure
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS CREDITS ChangeLog NEWS README.en
%lang(ja) %doc README
%attr(755,root,root) %{_bindir}/*
%{_datadir}/games/csmash
%{_desktopdir}/*.desktop
%{_pixmapsdir}/*