File kanji-lookup.spec of Package kanji-lookup
#
# spec file for package kanji-lookup (Version 1.0)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: kanji-lookup
BuildRequires: gtk-devel xorg-x11
License: GPL
Group: System/I18n/Japanese
Autoreqprov: on
Version: 1.0
Release: 655
URL: http://www.ne.jp/asahi/linux/timecop/
#Original source: http://www.ne.jp/asahi/linux/timecop/kanji_lookup-1.0.tar.gz
Source0: http://www.ne.jp/asahi/linux/timecop/kanji_lookup-1.0.tar.bz2
Patch0: kanji-lookup.patch
Patch1: force-locale.patch
Patch2: makefile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Simple Program That Allows Kanji Lookup Using Radical Tables
%description
This small program allows Kanji lookup using radicals and common
elements. The design goal of this was to make it as efficient to use as
possible. A possible use for this is looking up unfamiliar characters
for which you cannot remember the reading. The result is placed into
the X11 cut buffer ready to paste into a dictionary program, word
processor, etc.
Authors:
--------
<timecop@japan.co.jp>
Botond Botyanszki <boti@beer.com>
Jim Breen <j.breen@csse.monash.edu.au>
%prep
%setup0 -n kanji_lookup-%{version}
%patch0 -p 1
%patch1 -p 1
%patch2
head -n20 rad.c > credit-list
%build
make
%install
mkdir -p $RPM_BUILD_ROOT/usr/bin/
install -m 755 rad $RPM_BUILD_ROOT/usr/bin/rad
mkdir -p $RPM_BUILD_ROOT/usr/share/kanji-lookup
install -m 644 radkfile $RPM_BUILD_ROOT/usr/share/kanji-lookup/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc AUTHORS COPYING INSTALL README credit-list
/usr/bin/rad
%dir /usr/share/kanji-lookup/
/usr/share/kanji-lookup/radkfile
%changelog -n kanji-lookup
* Wed May 24 2006 - schwab@suse.de
- Use RPM_OPT_FLAGS.
- Don't strip binaries.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 08 2005 - dmueller@suse.de
- don't build as root
* Thu Aug 28 2003 - mfabian@suse.de
- forcing the locale to ja_JP.eucJP as this is the only locale
supported by this program
* Sat Jun 14 2003 - mfabian@suse.de
- fix "directory not owned by any package".
* Sun Sep 16 2001 - mfabian@suse.de
- compare return value of getopt with '-1' instead with EOF.
This makes it work on PPC.
* Tue Sep 04 2001 - mfabian@suse.de
- move radkfile to /usr/share/kanji-lookup/radkfile
to avoid conflict with xjdic-data. The radkfile in xjdic-data
is slightly different, it is better when kanji-lookup uses
it's own radkfile.
* Wed Aug 08 2001 - mfabian@suse.de
- new package: kanji-lookup, Version 1.0