summaryrefslogtreecommitdiffstats
path: root/knights.spec
blob: 544227f4c17bf85532d6e5b06801730e28c40822 (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
85
86
87
88
89
90
91
92
93
94
95
#
# Knights Spec File
#
# Writen with Knights 0.4.9
#
%define name knights
%define version 0.4.9
%define release 1mdk

Summary:  A chess interface for the Trinity Desktop Environment
Name: %{name}
Version: %{version}
Release: %{release}
Copyright: GPL
Group: Games/Boards
Source:%{name}-%{version}.tar.gz 
URL: http://knights.sourceforge.net/
Distribution: Mandrake Linux
Vendor: Mandrake
Packager: Troy Corbin Jr. <tcorbin@users.sourceforge.net>
Requires: kde
BuildRoot: %{_tmppath}/%{name}-buildroot

%description
A chess interface for the Trinity Desktop Environment. Knights works with all
XBoard compatible chess engines, FICS, and .pgn files.

%prep
rm -rf $RPM_BUILD_ROOT 
%setup -a 0

%build
./configure i586-mandrake-linux \
    --prefix=/usr \
    --exec-prefix=/usr \
    --bindir=/usr/bin \
    --sbindir=/usr/sbin \
    --sysconfdir=/etc \
    --datadir=/usr/share \
    --includedir=/usr/include \
    --libdir=/usr/lib \
    --libexecdir=/usr/lib \
    --localstatedir=/var/lib \
    --sharedstatedir=/usr/com \
    --mandir=/usr/share/man \
    --infodir=/usr/share/info
%make
%install
# The menu entry used by debian and mandrake
cat << EOF > $RPM_BUILD_ROOT/%{_menudir}/knights
command="/usr/bin/knights"
icon="knights.pgn"
needs="kde"
section="Amusement/Boards"
title="Knights"
longtitle="A graphical chess interface for KDE"
EOF
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,0755)
%doc README COPYING AUTHORS ChangeLog CreatingThemes TODO INSTALL
/usr/bin/knights
/usr/share/doc/tde/HTML/en/knights/knights-01.png
/usr/share/doc/tde/HTML/en/knights/knights-02.png
/usr/share/doc/tde/HTML/en/knights/configure-02.png
/usr/share/doc/tde/HTML/en/knights/configure-1.png
/usr/share/doc/tde/HTML/en/knights/configure-3.png
/usr/share/doc/tde/HTML/en/knights/index.docbook
/usr/share/apps/knights/splash.png
/usr/share/apps/knights/wizard.png
/usr/share/apps/knights/themes/KBDefault.tar.gz
/usr/share/apps/knights/themes/KCDefault.tar.gz
/usr/share/apps/knights/icon-display.png
/usr/share/apps/knights/icon-general.png
/usr/share/apps/knights/icon-console-bottom.png
/usr/share/apps/knights/icon-console-detach.png
/usr/share/apps/knights/icon-console-side.png
/usr/share/icons/locolor/16x16/apps/knights.png
/usr/share/icons/locolor/32x32/apps/knights.png
/usr/share/icons/hicolor/16x16/apps/knights.png
/usr/share/icons/hicolor/32x32/apps/knights.png
/usr/share/icons/hicolor/48x48/apps/knights.png
/usr/share/icons/hicolor/64x64/apps/knights.png
/usr/share/icons/locolor/16x16/mimetypes/pgn.png
/usr/share/icons/locolor/32x32/mimetypes/pgn.png
/usr/share/icons/hicolor/16x16/mimetypes/pgn.png
/usr/share/icons/hicolor/32x32/mimetypes/pgn.png
/usr/share/icons/hicolor/48x48/mimetypes/pgn.png
/usr/share/icons/hicolor/64x64/mimetypes/pgn.png
/usr/share/applnk/Amusement/Boards/knights.desktop