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