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



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

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

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

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

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

%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 devel
%defattr(-, root, root)
%{_includedir}/*
%{_libdir}/libeb.so
%{_datadir}/aclocal/*.m4

%changelog