File eblook.spec of Package eblook

#
# spec file for package eblook (Version 1.6.1)
#
# 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:           eblook
BuildRequires:  ebdev zlib-devel
License:        GPL v2 or later
Group:          Productivity/Office/Dictionary
PreReq:         %install_info_prereq
Requires:       eb
AutoReqProv:    on
Version:        1.6.1
Release:        135
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
openSUSE Build Service is sponsored by