~ubuntu-branches/ubuntu/trusty/ricochet/trusty-proposed

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
Summary: Ricochet Robots network client and server
Name: ricochet
Version: @VERSION@
Release: 1
Group: Amusements/Games
License: GPL-2
URL: http://rr.nickle.org

Source: http://nickle.org/release/ricochet-%{version}.tar.gz
BuildArch: noarch
Buildroot: %{_tmppath}/%{name}-%{version}-root

%description
Ricochet Robots was originally a board game. This version replicates
the board game with a network server and client applications so that
many people can play the game over the network.

%prep

%setup -q

%build
%configure --bindir=/usr/games --enable-gameman
make

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
#mkdir -p $RPM_BUILD_ROOT%{prefix}
%makeinstall
#make prefix=$RPM_BUILD_ROOT%{prefix} install

%files
%defattr(-,root,root)
%doc LICENSE
%attr(755,root,root) %{_bindir}/ricochet
%attr(755,root,root) %{_bindir}/rrserve
%dir %{_datadir}/ricochet
%{_mandir}/man6/rrserve.6*
%{_mandir}/man6/ricochet.6*
%{_datadir}/ricochet/*

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%changelog
* Tue Mar 20 2012 Keith Packard <keithp@keithp.com>
- Initial rpm spec file