]>
Commit | Line | Data |
---|---|---|
75545c4e JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
022c47f4 | 4 | |
75545c4e JB |
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 | |
7 | Name: libe-book | |
9cfa72af | 8 | Version: 0.1.2 |
231f14ae | 9 | Release: 5 |
75545c4e JB |
10 | License: LGPL v2.1+ or MPL v2.0+ |
11 | Group: Libraries | |
12 | Source0: http://downloads.sourceforge.net/libebook/%{name}-%{version}.tar.xz | |
9cfa72af | 13 | # Source0-md5: 19d84f4a97aab32d350d1f47ea3da0b3 |
a4de6bad | 14 | Patch0: %{name}-missing.patch |
231f14ae | 15 | Patch1: boost-1.59.patch |
75545c4e JB |
16 | URL: http://libebook.sourceforge.net/ |
17 | BuildRequires: boost-devel | |
18 | BuildRequires: doxygen | |
19 | BuildRequires: gperf | |
3245cf7c JB |
20 | BuildRequires: libCSS-devel >= 0.3.0 |
21 | BuildRequires: libhubbub-devel >= 0.3.0 | |
75545c4e | 22 | BuildRequires: libicu-devel |
3245cf7c JB |
23 | BuildRequires: libmspack-devel |
24 | BuildRequires: libparserutils-devel | |
25 | BuildRequires: librevenge-devel >= 0.0 | |
75545c4e | 26 | BuildRequires: libstdc++-devel |
3245cf7c | 27 | BuildRequires: libwapcaplet-devel |
75545c4e JB |
28 | BuildRequires: libxml2-devel >= 2.0 |
29 | BuildRequires: pkgconfig >= 1:0.20 | |
30 | BuildRequires: tar >= 1:1.22 | |
31 | BuildRequires: xz | |
32 | BuildRequires: zlib-devel | |
9cfa72af JB |
33 | Requires: libCSS >= 0.3.0 |
34 | Requires: libhubbub >= 0.3.0 | |
75545c4e JB |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
38 | libe-book is a library and a set of tools for reading and converting | |
39 | various non-HTML reflowable e-book formats. | |
40 | ||
41 | Currently supported are: | |
42 | - eReader .pdb | |
43 | - FictionBook v. 2 (including zipped files) | |
44 | - PalmDoc Ebook | |
45 | - Plucker .pdb | |
46 | - QiOO (mobile format, for java-enabled cellphones) | |
47 | - TCR (simple compressed text format) | |
48 | - TealDoc | |
49 | - zTXT | |
50 | - ZVR (simple compressed text format) | |
51 | ||
52 | %description -l pl.UTF-8 | |
53 | libe-book to biblioteka i zestaw narzędzi do odczytu i konwersji | |
54 | różnych nie-HTML-owych, tekstowych formatów e-booków. | |
55 | ||
56 | Obecnie obsługiwane są: | |
57 | - eReader .pdb | |
58 | - FictionBook w wersji 2 (wraz z plikami skompresowanymi zipem) | |
59 | - PalmDoc Ebook | |
60 | - Plucker .pdb | |
61 | - QiOO (format przenośny, dla telefonów z Javą) | |
62 | - TCR (prosty skompresowany format tekstowy) | |
63 | - TealDoc | |
64 | - zTXT | |
65 | - ZVR (prosty skompresowany format tekstowy) | |
66 | ||
67 | %package devel | |
68 | Summary: Header files for libe-book library | |
69 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libe-book | |
70 | Group: Development/Libraries | |
71 | Requires: %{name} = %{version}-%{release} | |
3245cf7c JB |
72 | Requires: libCSS-devel >= 0.3.0 |
73 | Requires: libhubbub-devel >= 0.3.0 | |
74 | Requires: libicu-devel | |
75 | Requires: libmspack-devel | |
76 | Requires: librevenge-devel >= 0.0 | |
75545c4e | 77 | Requires: libstdc++-devel |
3245cf7c | 78 | Requires: libxml2-devel >= 2.0 |
75545c4e JB |
79 | Requires: zlib-devel |
80 | ||
81 | %description devel | |
82 | Header files for libe-book library. | |
83 | ||
84 | %description devel -l pl.UTF-8 | |
85 | Pliki nagłówkowe biblioteki libe-book. | |
86 | ||
87 | %package static | |
88 | Summary: Static libe-book library | |
89 | Summary(pl.UTF-8): Statyczna biblioteka libe-book | |
90 | Group: Development/Libraries | |
91 | Requires: %{name}-devel = %{version}-%{release} | |
92 | ||
93 | %description static | |
94 | Static libe-book library. | |
95 | ||
96 | %description static -l pl.UTF-8 | |
97 | Statyczna biblioteka libe-book. | |
98 | ||
99 | %package apidocs | |
100 | Summary: libe-book API documentation | |
101 | Summary(pl.UTF-8): Dokumentacja API biblioteki libe-book | |
102 | Group: Documentation | |
022c47f4 ER |
103 | %if "%{_rpmversion}" >= "5" |
104 | BuildArch: noarch | |
105 | %endif | |
75545c4e JB |
106 | |
107 | %description apidocs | |
108 | API documentation for libe-book library. | |
109 | ||
110 | %description apidocs -l pl.UTF-8 | |
111 | Dokumentacja API biblioteki libe-book. | |
112 | ||
3245cf7c JB |
113 | %package tools |
114 | Summary: Tools to transform e-books into other formats | |
115 | Summary(pl.UTF-8): Programy przekształcania e-booków do innych formatów | |
116 | Group: Applications/Publishing | |
117 | Requires: %{name} = %{version}-%{release} | |
118 | ||
119 | %description tools | |
120 | Tools to transform e-books into other formats. Currently supported: | |
121 | HTML, text, raw. | |
122 | ||
123 | %description tools -l pl.UTF-8 | |
124 | Narzędzia do przekształcania e-booków do innych formatów. Aktualnie | |
125 | obsługiwane są HTML, tekst i format surowy. | |
126 | ||
75545c4e JB |
127 | %prep |
128 | %setup -q | |
a4de6bad | 129 | %patch0 -p1 |
231f14ae | 130 | %patch1 -p1 |
75545c4e JB |
131 | |
132 | %build | |
231f14ae JR |
133 | %{__libtoolize} |
134 | %{__aclocal} | |
135 | %{__autoconf} | |
136 | %{__autoheader} | |
137 | %{__automake} | |
75545c4e | 138 | %configure \ |
3245cf7c | 139 | --enable-experimental \ |
75545c4e JB |
140 | --disable-silent-rules \ |
141 | %{?with_static_libs:--enable-static} | |
142 | %{__make} | |
143 | ||
144 | %install | |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
147 | %{__make} install \ | |
148 | DESTDIR=$RPM_BUILD_ROOT | |
149 | ||
150 | # obsoleted by pkg-config | |
151 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libe-book-*.la | |
152 | # packaged as %doc in -apidocs | |
153 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libe-book | |
154 | ||
155 | %clean | |
156 | rm -rf $RPM_BUILD_ROOT | |
157 | ||
158 | %post -p /sbin/ldconfig | |
159 | %postun -p /sbin/ldconfig | |
160 | ||
161 | %files | |
162 | %defattr(644,root,root,755) | |
163 | %doc AUTHORS ChangeLog NEWS README TODO | |
3245cf7c JB |
164 | %attr(755,root,root) %{_libdir}/libe-book-0.1.so.*.*.* |
165 | %attr(755,root,root) %ghost %{_libdir}/libe-book-0.1.so.1 | |
166 | %{_datadir}/libe-book | |
75545c4e JB |
167 | |
168 | %files devel | |
169 | %defattr(644,root,root,755) | |
3245cf7c JB |
170 | %attr(755,root,root) %{_libdir}/libe-book-0.1.so |
171 | %{_includedir}/libe-book-0.1 | |
172 | %{_pkgconfigdir}/libe-book-0.1.pc | |
75545c4e JB |
173 | |
174 | %if %{with static_libs} | |
175 | %files static | |
176 | %defattr(644,root,root,755) | |
3245cf7c | 177 | %{_libdir}/libe-book-0.1.a |
75545c4e JB |
178 | %endif |
179 | ||
180 | %files apidocs | |
181 | %defattr(644,root,root,755) | |
182 | %doc docs/doxygen/html/* | |
3245cf7c JB |
183 | |
184 | %files tools | |
185 | %defattr(644,root,root,755) | |
186 | %attr(755,root,root) %{_bindir}/ebook2html | |
187 | %attr(755,root,root) %{_bindir}/ebook2raw | |
188 | %attr(755,root,root) %{_bindir}/ebook2text |