File eblook.spec of Package eblook

#
# spec file for package eblook (Version 1.6.1)
#
# Copyright (c) 2007 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:           eblook
BuildRequires:  ebdev zlib-devel
License:        GNU General Public License (GPL)
Group:          Productivity/Office/Dictionary
Prereq:         %install_info_prereq
Requires:       eb
Autoreqprov:    on
Version:        1.6.1
Release:        41
URL:            http://openlab.ring.gr.jp/lookup/eblook/
# original source: http://openlab.ring.gr.jp/edict/eblook/dist/eblook-1.5.1.tar.gz
Source0:        http://openlab.ring.gr.jp/edict/eblook/dist/eblook-%{version}.tar.bz2
Patch:          eblook-1.5.1.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Command Line Tool for Searching Electronic Dictionaries
# Summary(ja): eblook は、EB ライブラリを用いた対話型の電子辞書検索コマンドです。
# %description -l ja
# eblook は、EB ライブラリを用いた対話型の電子辞書検索コマンドです。簡単な
# 設定とコマンドにより CD-ROM 書籍が利用出来ます。
# 
# 著者:
# -----
#     Keisuke Nishida <knishida@ring.gr.jp> wrote eblook.c and eblook.texi.
#     Keisuke MORI <ksk@ntts.com> compiled eblook on the Cygwin environment.

%description
eblook is a command line tool that uses the EB library. It provides
easy access to many electronic dictionaries published on CD-ROM.

It is recommended that you install the Emacs interface lookup.el, too.
Although it is possible to use eblook from the command line, using it
with Emacs or XEmacs and lookup.el is much easier and offers many extra
features.

You can get lookup.el from http://lookup.sourceforge.net/.

lookup.el is already included as a package in recent versions of
XEmacs.



Authors:
--------
    Keisuke Nishida <knishida@ring.gr.jp> wrote eblook.c and eblook.texi.
    Keisuke MORI <ksk@ntts.com> compiled eblook on the Cygwin environment.

%prep
%setup
%patch

%build
# update config.{guess,sub}
%{?suse_update_config}
libtoolize --force
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS" 
./configure --prefix=/usr \
            --infodir=%{_infodir} \
            --with-eb-conf=/etc/eb.conf \
            %{_target_cpu}-suse-linux
make 

%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
make transform="" DESTDIR=$RPM_BUILD_ROOT install

%post
%install_info --info-dir=%{_infodir} %{_infodir}/eblook.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/eblook.info.gz

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

%files
%defattr(-, root, root)
%doc AUTHORS COPYING INSTALL NEWS README VERSION ChangeLog
/usr/bin/*
%{_infodir}/eblook*

%changelog
* Mon Apr 02 2007 - ro@suse.de
- added zlib-devel to buildreq
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jun 09 2005 - tiwai@suse.de
- updated to version 1.6.1.
* Mon Aug 16 2004 - ro@suse.de
- fix code aliasing issue
* Sun Jan 11 2004 - adrian@suse.de
- build as user
* Thu Apr 24 2003 - ro@suse.de
- fix install_info --delete call and move from preun to postun
* Thu Feb 13 2003 - mfabian@suse.de
- I forgot "Prereq:       %%install_info_prereq", sorry.
* Wed Feb 12 2003 - mfabian@suse.de
- use %%install_info macro
* Fri Apr 05 2002 - mfabian@suse.de
- update to eblook 1.5.1
- use 'libtoolize --force' and 'autoreconf --force --install'
* Sat Oct 13 2001 - mfabian@suse.de
- update to eblook 1.5
* Mon May 07 2001 - mfabian@suse.de
- bzip2 sources
* Tue Sep 26 2000 - mfabian@suse.de
- add "# neededforbuild automake" to make it build on SuSE 6.4
* Wed Jul 12 2000 - mfabian@suse.de
- new package: eblook, Version 1.3