File eb.spec of Package eb

# spec file for package eb (Version 4.3)
# 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

# norootforbuild

Name:           eb
BuildRequires:  zlib-devel
License:        GPL v2 or later
Group:          System/Libraries
AutoReqProv:    on
Version:        4.3
Release:        103
# original source is gzipped
Patch1:         gettext.patch
Patch2:         bugzilla-242268.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        EB is a C Library for Accessing CD-ROM Books
#Summary(ja): EB ライブラリは CD-ROM 書籍にアクセスするための C のライブラリです。
# %description -l ja 
# EB ライブラリは CD-ROM 書籍にアクセスするための C のライブラリです。
# UNIX 系 OS のシステム上で動作させることができます。EB, EBG, EBXA, EBXA-C,
# S-EBXA および EPWING 形式の CD-ROM 書籍に対応しています。これらの形式の
# CD-ROM 書籍は、日本で一般的に使われています。CD-ROM 書籍自体は ISO 9660
# 形式になっていますので、他の ISO 9660 形式と同じ要領でマウントすること
# ができます。
# 著者:
# ----
#     Motoyuki Kasahara <>

EB Library is a C library for accessing CD-ROM books.  It can be built
on UNIX-based systems.	EB Library supports accessing CD-ROM books in
EB, EBG, EBXA, EBXA-C, S-EBXA, and EPWING formats.  CD-ROM books in
those formats are popular in Japan.  Because CD-ROM books themselves
are based on the ISO 9660 format, you can mount the CDs in the same way
as other ISO 9660 CDs.

    Motoyuki Kasahara <>

%package -n ebdev
License:        GPL v2 or later
Summary:        EB Header Files and Libraries
Group:          Development/Libraries/C and C++
Requires:       eb = %{version}
# %description -n ebdev -l ja
# EB ライブラリのヘッダファイル及びライブラリです。

%description -n ebdev
EB header files and libraries.

    Motoyuki Kasahara <>

%define prefix	/usr

%patch1 -p1
%patch2 -p1

autoreconf -fi
%configure \
            --with-zlib-libraries=/%_lib \
            --with-zlib-includes=/usr/include \
			--disable-static \

%find_lang %{name}
%find_lang ebutils %{name}.lang
rm -rf %{buildroot}%{_libdir}/


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-, root, root)
%config /etc/eb.conf

%files -n ebdev
%defattr(-, root, root)

* Mon Feb 25 2008
- fix library-without-ldconfig-postin errors
- spec file cleanup
- remove libtool archives and static libraries
- use find_lang macro where needed
* Fri Mar 30 2007
- added zlib-devel to buildreq
* Tue Feb 06 2007
- bugzilla #242268: array subscript is above array bounds.
* Tue Feb 06 2007
- update to 4.3.
  • fix a problem with shared directories with EPWING dictionaries
  • fix the problem that ‘ebunzip --test’ did overwrite the
  main dictionary file.
  • fix the problem that ebappendix created an appendix in
  electronic book form even when reading a file.
  • make colour illustrations with reference links work.
  • API Additions:
  new functions: eb_have_image_menu(), eb_image_menu().
  new text hooks: EB_HOOK_BEGIN_IMAGE_PAGE,
* Wed Feb 08 2006
- workaround glibc(?) problem with localedir being .locale
  in configure
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Wed Jun 08 2005
- updated to version 4.2.
* Wed Apr 13 2005
- use gt_LC_MESSAGES instead of AM_LC_MESSAGES in gettext.m4
  to make it build.
* Tue Dec 07 2004
- Fix quoting in AC_DEFUN
* Sat Jan 10 2004
- build as user
* Sat Aug 23 2003
- update to eb-3.3.4.
- use %%run_ldconfig.
* Thu Apr 24 2003
- fix install_info --delete call and move from preun to postun
* Thu Feb 13 2003
- I forgot "Prereq:       %%install_info_prereq", sorry.
* Wed Feb 12 2003
- update to eb-3.3
- use %%install_info macro (Bug #23401)
* Tue Aug 13 2002
- update to eb-3.2.2
  according to the NEWS file:
  * Fix bug in handling of appendix.
  * Fix gettext message catalogs.
  and now the Oxford Concise dictionary works perfectly in UTF-8
  for me with eb-3.2.1 I still had problems using the Oxford
  Concise in UTF-8.
* Fri Apr 05 2002
- update to eb-3.2.1
- use %%{_libdir}
* Sat Oct 13 2001
- update to eb-3.1
- move .so symbolic links to dev subpackage
* Tue Mar 27 2001
- fixed buildrooting
* Wed Aug 16 2000
- changed `%%{suse_update_config zlib}' to
  `%%{?suse_update_config:%%{suse_update_config zlib}}'
  to enable building the package outside of the SuSE environment.
* Wed Aug 16 2000
- changed %%{?suse_update_config} into %%{suse_update_config zlib}
  to make it build on ia64
* Thu Aug 10 2000
- update to version 2.3.8
* Wed Jul 12 2000
- new package: eb, Version 2.3.7
openSUSE Build Service is sponsored by