3 %bcond_without static_libs # don't build static libraries
5 Summary: Library and tools for reading and converting various non-HTML reflowable e-book formats
6 Summary(pl.UTF-8): Biblioteka i narzedzia do odczytu i konwersji różnych formatów e-booków
10 License: LGPL v2.1+ or MPL v2.0+
12 Source0: http://downloads.sourceforge.net/libebook/%{name}-%{version}.tar.xz
13 # Source0-md5: 0a49e90b46193c1ae1e55ff0486b5090
14 URL: http://libebook.sourceforge.net/
15 BuildRequires: boost-devel
16 BuildRequires: doxygen
18 BuildRequires: libCSS-devel >= 0.3.0
19 BuildRequires: libhubbub-devel >= 0.3.0
20 BuildRequires: libicu-devel
21 BuildRequires: libmspack-devel
22 BuildRequires: libparserutils-devel
23 BuildRequires: librevenge-devel >= 0.0
24 BuildRequires: libstdc++-devel
25 BuildRequires: libwapcaplet-devel
26 BuildRequires: libxml2-devel >= 2.0
27 BuildRequires: pkgconfig >= 1:0.20
28 BuildRequires: tar >= 1:1.22
30 BuildRequires: zlib-devel
31 Requires: libwpd >= 0.9.5
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 libe-book is a library and a set of tools for reading and converting
36 various non-HTML reflowable e-book formats.
38 Currently supported are:
40 - FictionBook v. 2 (including zipped files)
43 - QiOO (mobile format, for java-enabled cellphones)
44 - TCR (simple compressed text format)
47 - ZVR (simple compressed text format)
49 %description -l pl.UTF-8
50 libe-book to biblioteka i zestaw narzędzi do odczytu i konwersji
51 różnych nie-HTML-owych, tekstowych formatów e-booków.
53 Obecnie obsługiwane są:
55 - FictionBook w wersji 2 (wraz z plikami skompresowanymi zipem)
58 - QiOO (format przenośny, dla telefonów z Javą)
59 - TCR (prosty skompresowany format tekstowy)
62 - ZVR (prosty skompresowany format tekstowy)
65 Summary: Header files for libe-book library
66 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libe-book
67 Group: Development/Libraries
68 Requires: %{name} = %{version}-%{release}
69 Requires: libCSS-devel >= 0.3.0
70 Requires: libhubbub-devel >= 0.3.0
71 Requires: libicu-devel
72 Requires: libmspack-devel
73 Requires: librevenge-devel >= 0.0
74 Requires: libstdc++-devel
75 Requires: libxml2-devel >= 2.0
79 Header files for libe-book library.
81 %description devel -l pl.UTF-8
82 Pliki nagłówkowe biblioteki libe-book.
85 Summary: Static libe-book library
86 Summary(pl.UTF-8): Statyczna biblioteka libe-book
87 Group: Development/Libraries
88 Requires: %{name}-devel = %{version}-%{release}
91 Static libe-book library.
93 %description static -l pl.UTF-8
94 Statyczna biblioteka libe-book.
97 Summary: libe-book API documentation
98 Summary(pl.UTF-8): Dokumentacja API biblioteki libe-book
102 API documentation for libe-book library.
104 %description apidocs -l pl.UTF-8
105 Dokumentacja API biblioteki libe-book.
108 Summary: Tools to transform e-books into other formats
109 Summary(pl.UTF-8): Programy przekształcania e-booków do innych formatów
110 Group: Applications/Publishing
111 Requires: %{name} = %{version}-%{release}
114 Tools to transform e-books into other formats. Currently supported:
117 %description tools -l pl.UTF-8
118 Narzędzia do przekształcania e-booków do innych formatów. Aktualnie
119 obsługiwane są HTML, tekst i format surowy.
126 --enable-experimental \
127 --disable-silent-rules \
128 %{?with_static_libs:--enable-static}
132 rm -rf $RPM_BUILD_ROOT
135 DESTDIR=$RPM_BUILD_ROOT
137 # obsoleted by pkg-config
138 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libe-book-*.la
139 # packaged as %doc in -apidocs
140 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libe-book
143 rm -rf $RPM_BUILD_ROOT
145 %post -p /sbin/ldconfig
146 %postun -p /sbin/ldconfig
149 %defattr(644,root,root,755)
150 %doc AUTHORS ChangeLog NEWS README TODO
151 %attr(755,root,root) %{_libdir}/libe-book-0.1.so.*.*.*
152 %attr(755,root,root) %ghost %{_libdir}/libe-book-0.1.so.1
153 %{_datadir}/libe-book
156 %defattr(644,root,root,755)
157 %attr(755,root,root) %{_libdir}/libe-book-0.1.so
158 %{_includedir}/libe-book-0.1
159 %{_pkgconfigdir}/libe-book-0.1.pc
161 %if %{with static_libs}
163 %defattr(644,root,root,755)
164 %{_libdir}/libe-book-0.1.a
168 %defattr(644,root,root,755)
169 %doc docs/doxygen/html/*
172 %defattr(644,root,root,755)
173 %attr(755,root,root) %{_bindir}/ebook2html
174 %attr(755,root,root) %{_bindir}/ebook2raw
175 %attr(755,root,root) %{_bindir}/ebook2text