%define name lkcdutils-qlcrash
%define version 4.1
%define release 1

Name: %{name}
Summary: Qt GUI for Linux Crash
Version: %{version}
Release: %{release}
Copyright: GPL
Group: Utilities/System
Source: %{name}-%{version}-%{release}.tar.gz
URL: http://lkcd.sourceforge.net/
Packager: Matt Robinson <yakker@sourceforge.net>

%description
This software package contains qlcrash, which is a Qt GUI program
for lcrash, which is part of the lkcdutils RPM package.

%package source
Summary: The source code for %{name}-%{version}.
Group: Utilities/System

%description source
This software package includes all source code for qlcrash, for
users to edit and compile their own GUI front-ends to lcrash.

%prep
/bin/rm -r -f $RPM_BUILD_DIR/%{name}
%setup
%build
make -f Makefile.dist
./configure --prefix=/usr
make

%install
make install
PATH="$PATH:/sbin" /sbin/ldconfig -n /usr/share/qlcrash/plugins
PATH="$PATH:/sbin" /sbin/ldconfig -n /usr/share/qlcrash/plugins

%files
/usr/bin/qlcrash
/usr/share/qlcrash/lo16-app-qlcrash.png
/usr/share/qlcrash/lo32-app-qlcrash.png
/usr/share/qlcrash/logo-small.png
/usr/share/qlcrash/logo.png
/usr/share/qlcrash/plugin_activated.png
/usr/share/qlcrash/plugin_configured.png
/usr/share/qlcrash/plugin_unconfigured.png
/usr/share/qlcrash/qlcrash.conf
/usr/share/qlcrash/qlcrash_de.qm
/usr/share/qlcrash/plugins/tcpplugin.so
/usr/share/qlcrash/plugins/tcpplugin.la
/usr/share/qlcrash/plugins/localplugin.so
/usr/share/qlcrash/plugins/localplugin.la
/usr/share/qlcrash/Manual/pics/console.png
/usr/share/qlcrash/Manual/pics/dump.png
/usr/share/qlcrash/Manual/pics/dump_main.png
/usr/share/qlcrash/Manual/pics/dump_toolbar.png
/usr/share/qlcrash/Manual/pics/graphprint.png
/usr/share/qlcrash/Manual/pics/logo-small.png
/usr/share/qlcrash/Manual/pics/logo.png
/usr/share/qlcrash/Manual/pics/marble.png
/usr/share/qlcrash/Manual/pics/options.png
/usr/share/qlcrash/Manual/pics/overview.png
/usr/share/qlcrash/Manual/pics/overview_s.png
/usr/share/qlcrash/Manual/pics/printdialog.png
/usr/share/qlcrash/Manual/pics/taskicon.png
/usr/share/qlcrash/Manual/pics/tasklist.png
/usr/share/qlcrash/Manual/pics/walk.png
/usr/share/qlcrash/Manual/pics/walk_lh.png
/usr/share/qlcrash/Manual/pics/walk_lh_out.png
/usr/share/qlcrash/Manual/dds.html
/usr/share/qlcrash/Manual/dump.html
/usr/share/qlcrash/Manual/howtostart.html
/usr/share/qlcrash/Manual/index.html
/usr/share/qlcrash/Manual/overview.html
/usr/share/qlcrash/Manual/overview_w.html
/usr/share/qlcrash/Manual/s390dbf.html
/usr/share/qlcrash/Manual/task.html
/usr/share/qlcrash/Manual/walk.html
