# This spec file was generated using Kpp
# If you find any problems with this spec file please report
# the error to ian geiser <geiseri@msoe.edu>

Summary:   A scramble puzzle board game
Name:      kslide
Version:   1.0.1
Release:   1
License:   GPL
Vendor:    Eric Coquelle <eric.coquelle@gmail.com>
Url:       http://perso.wanadoo.fr/coquelle/karchiver

Packager:  Eric Coquelle <eric.coquelle@gmail.com>
Group:     Graphical desktop/KDE Utilities
Source:    /kslide-%{version}.tar.bz2
BuildRoot: /var/tmp/%{name}-buildroot
#requires: kde >= 3.0

%description
A simple but time consuming game for KDE. An image is scrambled into sliding pieces, and your taks is to move the slides to reconstruct the image


%prep
rm -rf $RPM_BUILD_ROOT

%setup
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
                --prefix=/usr \
                $LOCALFLAGS
%build
# Setup for parallel builds
numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
if [ "$numprocs" = "0" ]; then
  numprocs=1
fi

make -j$numprocs

%install
make install-strip DESTDIR=$RPM_BUILD_ROOT

cd $RPM_BUILD_ROOT
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.karchiver
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.karchiver
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.karchiver

%clean
rm -rf $RPM_BUILD_ROOT/*
rm -rf $RPM_BUILD_DIR/karchiver
rm -rf ../file.list.karchiver


%files -f file.list.kslide
