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: 19d84f4a97aab32d350d1f47ea3da0b3
14 Patch0: %{name}-missing.patch
15 URL: http://libebook.sourceforge.net/
16 BuildRequires: boost-devel
17 BuildRequires: doxygen
19 BuildRequires: libCSS-devel >= 0.3.0
20 BuildRequires: libhubbub-devel >= 0.3.0
21 BuildRequires: libicu-devel
22 BuildRequires: libmspack-devel
23 BuildRequires: libparserutils-devel
24 BuildRequires: librevenge-devel >= 0.0
25 BuildRequires: libstdc++-devel
26 BuildRequires: libwapcaplet-devel
27 BuildRequires: libxml2-devel >= 2.0
28 BuildRequires: pkgconfig >= 1:0.20
29 BuildRequires: tar >= 1:1.22
31 BuildRequires: zlib-devel
32 Requires: libCSS >= 0.3.0
33 Requires: libhubbub >= 0.3.0
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 libe-book is a library and a set of tools for reading and converting
38 various non-HTML reflowable e-book formats.
40 Currently supported are:
42 - FictionBook v. 2 (including zipped files)
45 - QiOO (mobile format, for java-enabled cellphones)
46 - TCR (simple compressed text format)
49 - ZVR (simple compressed text format)
51 %description -l pl.UTF-8
52 libe-book to biblioteka i zestaw narzędzi do odczytu i konwersji
53 różnych nie-HTML-owych, tekstowych formatów e-booków.
55 Obecnie obsługiwane są:
57 - FictionBook w wersji 2 (wraz z plikami skompresowanymi zipem)
60 - QiOO (format przenośny, dla telefonów z Javą)
61 - TCR (prosty skompresowany format tekstowy)
64 - ZVR (prosty skompresowany format tekstowy)
67 Summary: Header files for libe-book library
68 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libe-book
69 Group: Development/Libraries
70 Requires: %{name} = %{version}-%{release}
71 Requires: libCSS-devel >= 0.3.0
72 Requires: libhubbub-devel >= 0.3.0
73 Requires: libicu-devel
74 Requires: libmspack-devel
75 Requires: librevenge-devel >= 0.0
76 Requires: libstdc++-devel
77 Requires: libxml2-devel >= 2.0
81 Header files for libe-book library.
83 %description devel -l pl.UTF-8
84 Pliki nagłówkowe biblioteki libe-book.
87 Summary: Static libe-book library
88 Summary(pl.UTF-8): Statyczna biblioteka libe-book
89 Group: Development/Libraries
90 Requires: %{name}-devel = %{version}-%{release}
93 Static libe-book library.
95 %description static -l pl.UTF-8
96 Statyczna biblioteka libe-book.
99 Summary: libe-book API documentation
100 Summary(pl.UTF-8): Dokumentacja API biblioteki libe-book
102 %if "%{_rpmversion}" >= "5"
107 API documentation for libe-book library.
109 %description apidocs -l pl.UTF-8
110 Dokumentacja API biblioteki libe-book.
113 Summary: Tools to transform e-books into other formats
114 Summary(pl.UTF-8): Programy przekształcania e-booków do innych formatów
115 Group: Applications/Publishing
116 Requires: %{name} = %{version}-%{release}
119 Tools to transform e-books into other formats. Currently supported:
122 %description tools -l pl.UTF-8
123 Narzędzia do przekształcania e-booków do innych formatów. Aktualnie
124 obsługiwane są HTML, tekst i format surowy.
132 --enable-experimental \
133 --disable-silent-rules \
134 %{?with_static_libs:--enable-static}
138 rm -rf $RPM_BUILD_ROOT
141 DESTDIR=$RPM_BUILD_ROOT
143 # obsoleted by pkg-config
144 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libe-book-*.la
145 # packaged as %doc in -apidocs
146 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libe-book
149 rm -rf $RPM_BUILD_ROOT
151 %post -p /sbin/ldconfig
152 %postun -p /sbin/ldconfig
155 %defattr(644,root,root,755)
156 %doc AUTHORS ChangeLog NEWS README TODO
157 %attr(755,root,root) %{_libdir}/libe-book-0.1.so.*.*.*
158 %attr(755,root,root) %ghost %{_libdir}/libe-book-0.1.so.1
159 %{_datadir}/libe-book
162 %defattr(644,root,root,755)
163 %attr(755,root,root) %{_libdir}/libe-book-0.1.so
164 %{_includedir}/libe-book-0.1
165 %{_pkgconfigdir}/libe-book-0.1.pc
167 %if %{with static_libs}
169 %defattr(644,root,root,755)
170 %{_libdir}/libe-book-0.1.a
174 %defattr(644,root,root,755)
175 %doc docs/doxygen/html/*
178 %defattr(644,root,root,755)
179 %attr(755,root,root) %{_bindir}/ebook2html
180 %attr(755,root,root) %{_bindir}/ebook2raw
181 %attr(755,root,root) %{_bindir}/ebook2text