You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
knights/knights.spec

96 lines
2.7 KiB

#
# 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 K 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 K 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/HTML/en/knights/knights-01.png
/usr/share/doc/HTML/en/knights/knights-02.png
/usr/share/doc/HTML/en/knights/configure-02.png
/usr/share/doc/HTML/en/knights/configure-1.png
/usr/share/doc/HTML/en/knights/configure-3.png
/usr/share/doc/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