File kdrill.spec of Package kdrill

#
# spec file for package kdrill (Version 6.4)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           kdrill
BuildRequires:  xorg-x11 xorg-x11-devel
License:        Other uncritical OpenSource License
Group:          Productivity/Office/Dictionary
Requires:       edict, xjdic-indices
AutoReqProv:    on
Version:        6.4
Release:        215
Url:            http://www.bolthole.com/kdrill/
# original source is gzipped
Source0:        http://www.bolthole.com/kdrill/kdrill6.4.tar.bz2
Patch:          kdrill.patch
Patch1:         bugzilla-151088-array-subscript-out-of-range.patch
Patch2:         kdrill6.4-fclose.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        "Kanji Drill"--Kanji Quiz and Japanese Dictionary for the X Window System

%description
KDrill stands for Kanji Drill. It is a program to help people learn
kanji and kana (the Japanese charater set). It uses Jim Breen's EDICT
Japanese-English dictionary and also doubles as a dictionary lookup
program. Kdrill runs under the X Window System.



Authors:
--------
    Philip Brown <phil@bolthole.com>

%prep 
%setup -n %{name}%{version}
%patch -p1
%patch1 -p1
%patch2

%build
xmkmf 
make Makefiles
make depend
make CCOPTIONS="$RPM_OPT_FLAGS"

%install
make install DESTDIR=$RPM_BUILD_ROOT
make install.man  MANSUFFIX=1 LIBMANSUFFIX=3 DESTDIR=$RPM_BUILD_ROOT 

%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%files
%defattr(-,root,root)
%doc INSTALL LICENSE NOTES README TODO PATCHLIST OLD.PATCHLIST
%{_bindir}/kdrill
%{_mandir}/*/*
%{_datadir}/X11/app-defaults/KDrill

%changelog
openSUSE Build Service is sponsored by