]> git.pld-linux.org Git - packages/libe-book.git/blame - libe-book.spec
- fix building with boost 1.59
[packages/libe-book.git] / libe-book.spec
CommitLineData
75545c4e
JB
1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
022c47f4 4
75545c4e
JB
5Summary: Library and tools for reading and converting various non-HTML reflowable e-book formats
6Summary(pl.UTF-8): Biblioteka i narzedzia do odczytu i konwersji różnych formatów e-booków
7Name: libe-book
9cfa72af 8Version: 0.1.2
231f14ae 9Release: 5
75545c4e
JB
10License: LGPL v2.1+ or MPL v2.0+
11Group: Libraries
12Source0: http://downloads.sourceforge.net/libebook/%{name}-%{version}.tar.xz
9cfa72af 13# Source0-md5: 19d84f4a97aab32d350d1f47ea3da0b3
a4de6bad 14Patch0: %{name}-missing.patch
231f14ae 15Patch1: boost-1.59.patch
75545c4e
JB
16URL: http://libebook.sourceforge.net/
17BuildRequires: boost-devel
18BuildRequires: doxygen
19BuildRequires: gperf
3245cf7c
JB
20BuildRequires: libCSS-devel >= 0.3.0
21BuildRequires: libhubbub-devel >= 0.3.0
75545c4e 22BuildRequires: libicu-devel
3245cf7c
JB
23BuildRequires: libmspack-devel
24BuildRequires: libparserutils-devel
25BuildRequires: librevenge-devel >= 0.0
75545c4e 26BuildRequires: libstdc++-devel
3245cf7c 27BuildRequires: libwapcaplet-devel
75545c4e
JB
28BuildRequires: libxml2-devel >= 2.0
29BuildRequires: pkgconfig >= 1:0.20
30BuildRequires: tar >= 1:1.22
31BuildRequires: xz
32BuildRequires: zlib-devel
9cfa72af
JB
33Requires: libCSS >= 0.3.0
34Requires: libhubbub >= 0.3.0
75545c4e
JB
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
38libe-book is a library and a set of tools for reading and converting
39various non-HTML reflowable e-book formats.
40
41Currently 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
53libe-book to biblioteka i zestaw narzędzi do odczytu i konwersji
54różnych nie-HTML-owych, tekstowych formatów e-booków.
55
56Obecnie 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
68Summary: Header files for libe-book library
69Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libe-book
70Group: Development/Libraries
71Requires: %{name} = %{version}-%{release}
3245cf7c
JB
72Requires: libCSS-devel >= 0.3.0
73Requires: libhubbub-devel >= 0.3.0
74Requires: libicu-devel
75Requires: libmspack-devel
76Requires: librevenge-devel >= 0.0
75545c4e 77Requires: libstdc++-devel
3245cf7c 78Requires: libxml2-devel >= 2.0
75545c4e
JB
79Requires: zlib-devel
80
81%description devel
82Header files for libe-book library.
83
84%description devel -l pl.UTF-8
85Pliki nagłówkowe biblioteki libe-book.
86
87%package static
88Summary: Static libe-book library
89Summary(pl.UTF-8): Statyczna biblioteka libe-book
90Group: Development/Libraries
91Requires: %{name}-devel = %{version}-%{release}
92
93%description static
94Static libe-book library.
95
96%description static -l pl.UTF-8
97Statyczna biblioteka libe-book.
98
99%package apidocs
100Summary: libe-book API documentation
101Summary(pl.UTF-8): Dokumentacja API biblioteki libe-book
102Group: Documentation
022c47f4
ER
103%if "%{_rpmversion}" >= "5"
104BuildArch: noarch
105%endif
75545c4e
JB
106
107%description apidocs
108API documentation for libe-book library.
109
110%description apidocs -l pl.UTF-8
111Dokumentacja API biblioteki libe-book.
112
3245cf7c
JB
113%package tools
114Summary: Tools to transform e-books into other formats
115Summary(pl.UTF-8): Programy przekształcania e-booków do innych formatów
116Group: Applications/Publishing
117Requires: %{name} = %{version}-%{release}
118
119%description tools
120Tools to transform e-books into other formats. Currently supported:
121HTML, text, raw.
122
123%description tools -l pl.UTF-8
124Narzędzia do przekształcania e-booków do innych formatów. Aktualnie
125obsł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
145rm -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
156rm -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
This page took 0.103744 seconds and 4 git commands to generate.