File: csmash.spec

package info (click to toggle)
csmash 0.6.6-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 13,548 kB
  • ctags: 1,687
  • sloc: cpp: 19,531; sh: 3,515; makefile: 439; ansic: 120; sed: 16
file content (53 lines) | stat: -rw-r--r-- 1,178 bytes parent folder | download | duplicates (6)
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

Summary:	CannonSmash is a 3D tabletennis game.
Name:		csmash
Version:	0.6.5
Release:	1
Group:		Games/Sports
Copyright:	GPL
Source:		%{name}-%{version}.tar.gz
Patch0:		csmash-0.6.5-loadparts.patch
URL:		http://cannonsmash.sourceforge.net/
Packager:	Victor Soroka <gbs@tnss.kharkov.ua>
BuildPreReq:	/usr/include/GL/gl.h
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot

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

%prep
%setup -q
%patch0

%build
CFLAGS=$RPM_OPT_FLAGS
%configure
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Games
cat > $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Games/%{name}.desktop << __EOF__
[Desktop Entry]
Name=CannonSmash
Comment=3D tabletennis game
Exec=%{_prefix}/bin/%{name}
Terminal=0
Type=Applications
__EOF__

strip -s $RPM_BUILD_ROOT%{_bindir}/%{name}


%clean
rm -rf $RPM_BUILD_ROOT

%files
%doc AUTHORS COPYING ChangeLog NEWS README README.nt
%{_bindir}/%{name}
%{_datadir}/games/%{name}
%{_datadir}/gnome/apps/Games/%{name}.desktop
%{_datadir}/locale/*/LC_MESSAGES/*.mo