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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           eb
BuildRequires:  zlib-devel
License:        GPL v2 or later
Group:          System/Libraries
AutoReqProv:    on
Version:        4.3
Release:        103
Url:            http://www.sra.co.jp/people/m-kasahr/eb/
# original source is gzipped
Source0:        ftp://ftp.sra.co.jp/pub/misc/eb/eb-4.3.tar.bz2
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 <m-kasahr@sra.co.jp>

%description
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.



Authors:
--------
    Motoyuki Kasahara <m-kasahr@sra.co.jp>

%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.



Authors:
--------
    Motoyuki Kasahara <m-kasahr@sra.co.jp>

%define prefix	/usr

%prep
%setup0
%patch1 -p1
%patch2 -p1

%build
autoreconf -fi
export CFLAGS="$RPM_OPT_FLAGS" 
%configure \
            --with-zlib-libraries=/%_lib \
            --with-zlib-includes=/usr/include \
			--disable-static \
			--with-pic
make 

%install
make DESTDIR=$RPM_BUILD_ROOT install
%find_lang %{name}
%find_lang ebutils %{name}.lang
rm -rf %{buildroot}%{_libdir}/libeb.la

%clean
rm -rf $RPM_BUILD_ROOT;

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS COPYING INSTALL* NEWS README* ChangeLog*
%{_bindir}/*
%{_libdir}/libeb.so.*
%{_datadir}/eb/
%config /etc/eb.conf

%files -n ebdev
%defattr(-, root, root)
%{_includedir}/*
%{_libdir}/libeb.so
%{_datadir}/aclocal/*.m4

%changelog
* Mon Feb 25 2008 crrodriguez@suse.de
- 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 ro@suse.de
- added zlib-devel to buildreq
* Tue Feb 06 2007 mfabian@suse.de
- bugzilla #242268: array subscript is above array bounds.
* Tue Feb 06 2007 mfabian@suse.de
- 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 catalogs.app 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,
  EB_HOOK_END_IMAGE_PAGE, EB_HOOK_BEGIN_CLICKABLE_AREA,
  EB_HOOK_END_CLICKABLE_AREA
* Wed Feb 08 2006 ro@suse.de
- workaround glibc(?) problem with localedir being .locale
  in configure
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jun 08 2005 tiwai@suse.de
- updated to version 4.2.
* Wed Apr 13 2005 mfabian@suse.de
- use gt_LC_MESSAGES instead of AM_LC_MESSAGES in gettext.m4
  to make it build.
* Tue Dec 07 2004 pth@suse.de
- Fix quoting in AC_DEFUN
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Sat Aug 23 2003 mfabian@suse.de
- update to eb-3.3.4.
- use %%run_ldconfig.
* 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
- update to eb-3.3
- use %%install_info macro (Bug #23401)
* Tue Aug 13 2002 mfabian@suse.de
- 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 mfabian@suse.de
- update to eb-3.2.1
- use %%{_libdir}
* Sat Oct 13 2001 mfabian@suse.de
- update to eb-3.1
- move .so symbolic links to dev subpackage
* Tue Mar 27 2001 ro@suse.de
- fixed buildrooting
* Wed Aug 16 2000 mfabian@suse.de
- 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 mfabian@suse.de
- changed %%{?suse_update_config} into %%{suse_update_config zlib}
  to make it build on ia64
* Thu Aug 10 2000 mfabian@suse.de
- update to version 2.3.8
* Wed Jul 12 2000 mfabian@suse.de
- new package: eb, Version 2.3.7
openSUSE Build Service is sponsored by