File: gnome-chess.spec

package info (click to toggle)
gnome-chess 0.3.2-0.5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,756 kB
  • ctags: 1,481
  • sloc: ansic: 10,228; sh: 482; makefile: 332; sed: 93; lex: 82
file content (66 lines) | stat: -rw-r--r-- 1,343 bytes parent folder | download
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
# Note that this is NOT a relocatable package
%define ver      0.3.2
%define rel      1
%define prefix   /usr

Summary: GNOME chess
Name: gnome-chess
Version: %ver
Release: %rel
Copyright: GPL
Group: Games
Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-chess/gnome-chess-%{ver}.tar.gz
BuildRoot: /tmp/gnome-chess-root
URL: http://primates.ximian.com/~jpr/gnome-chess
Docdir: %{prefix}/doc

%description
GNOME Chess

GNOME Chess is part of the GNOME project and is a graphical chess
interface.  It can provide and interface to GNU Chess, Crafty, chess
servers and PGN files.

%prep
%setup

%build
# Needed for snapshot releases.
if [ ! -f configure ]; then
  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --localstatedir=/var/lib
else
  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --localstatedir=/var/lib
fi

if [ "$SMP" != "" ]; then
  (make "MAKE=make -k -j $SMP"; exit 0)
  make
else
  make
fi

%install
rm -rf $RPM_BUILD_ROOT

make prefix=$RPM_BUILD_ROOT%{prefix} \
	localstatedir=$RPM_BUILD_ROOT/var/lib install

strip $RPM_BUILD_ROOT%{prefix}/bin/* || :

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)

%doc AUTHORS COPYING ChangeLog NEWS README
%{prefix}/bin/*
%{prefix}/share/locale/*/*/*
%{prefix}/share/pixmaps/*
%{prefix}/share/gnome-chess/glade/*
%{prefix}/share/gnome/apps/Games/*