File eb.spec of Package eb

# spec file for package eb
# Copyright (c) 2011 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

Name:           eb
BuildRequires:  zlib-devel
BuildRequires:  libtool
License:        GPL-2.0+
Group:          System/Libraries
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.

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

%description devel
EB header files and libraries.

%patch1 -p1
%patch2 -p1

autoreconf -fi
%configure \
            --with-zlib-libraries=/%_lib \
            --with-zlib-includes=%_includedir \
			--disable-static \
make %{?_smp_mflags}

%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 devel
%defattr(-, root, root)