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