File ebook-tools.spec of Package ebook-tools

# spec file for package ebook-tools (Version 0.2.0)
# Copyright (c) 2010 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:           ebook-tools
License:        MIT License
Group:          Development/Libraries/C and C++
Summary:        A library for reading ebook files
Version:        0.2.0
Release:        1
BuildRequires:  cmake gcc-c++ libxml2-devel libzip-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         %name-%{version}.tar.bz2
Patch1:         ebook-tools-64bit-installation.diff

ebook-tools provides some tools to handle ebook files

%package -n libepub0
License:        MIT License
Summary:        A library for reading ebook files
Group:          Development/Libraries/C and C++

%description -n libepub0
libepub library is needed for okular to support ebook format.

%package -n libepub-devel
License:        MIT License
Summary:        Header files for libepub library
Group:          Development/Libraries/C and C++
Requires:       libepub0 = %{version} glibc-devel

%description -n libepub-devel
Header files for the libepub library

%patch1 -p1

mkdir build
cd build
  export LDFLAGS="-Wl,-Bsymbolic-functions $LDFLAGS"
  _libsuffix=$(echo %_lib | cut -b4-)
%{__make} %{?jobs:-j %jobs}

cd build
%{__make} install DESTDIR=%{buildroot}

/bin/rm -rf %{buildroot}

%post -n libepub0 -p /sbin/ldconfig

%postun -n libepub0 -p /sbin/ldconfig


%files -n libepub0

%files -n libepub-devel