3 %bcond_without static_libs # don't build static library
5 Summary: Library for generating documents in EPUB format
6 Summary(pl.UTF-8): Biblioteka do generowania dokumentów w formacie EPUB
12 Source0: http://downloads.sourceforge.net/libepubgen/%{name}-%{version}.tar.xz
13 # Source0-md5: 21d1d23f609da2e9ed24629b8ae96584
14 URL: http://libepubgen.sourceforge.net/
15 BuildRequires: boost-devel
16 BuildRequires: librevenge-devel >= 0.0
17 BuildRequires: libstdc++-devel
18 BuildRequires: pkgconfig >= 1:0.20
19 BuildRequires: tar >= 1:1.22
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 libepubgen is a library for generating documents in EPUB format,
25 implementing librevenge document interfaces. It supports conversion of
26 text documents, presentations and vector drawings.
28 %description -l pl.UTF-8
29 libepubgen to biblioteka do generowania dokumentów w formacie EPUB,
30 implementująca interfejsy dokumentów librevenge. Obsługuje konwersję
31 dokumentów tekstowych, prezentacji oraz rysunków wektorowych.
34 Summary: Header files for libepubgen library
35 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libepubgen
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
38 Requires: librevenge-devel >= 0.0
39 Requires: libstdc++-devel
42 Header files for libepubgen library.
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki libepubgen.
48 Summary: Static libepubgen library
49 Summary(pl.UTF-8): Statyczna biblioteka libepubgen
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
54 Static libepubgen library.
56 %description static -l pl.UTF-8
57 Statyczna biblioteka libepubgen.
60 Summary: libepubgen API documentation
61 Summary(pl.UTF-8): Dokumentacja API biblioteki libepubgen
65 libepubgen API documentation.
67 %description apidocs -l pl.UTF-8
68 Dokumentacja API biblioteki libepubgen.
75 %{?with_static_libs:--enable-static} \
76 --disable-silent-rules \
81 rm -rf $RPM_BUILD_ROOT
84 DESTDIR=$RPM_BUILD_ROOT
86 # obsoleted by pkg-config
87 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libepubgen-*.la
88 # packaged as %doc in -apidocs
89 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libepubgen
92 rm -rf $RPM_BUILD_ROOT
94 %post -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
98 %defattr(644,root,root,755)
99 %doc AUTHORS ChangeLog NEWS README TODO
100 %attr(755,root,root) %{_libdir}/libepubgen-0.0.so.*.*.*
101 %attr(755,root,root) %ghost %{_libdir}/libepubgen-0.0.so.0
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/libepubgen-0.0.so
106 %{_includedir}/libepubgen-0.0
107 %{_pkgconfigdir}/libepubgen-0.0.pc
109 %if %{with static_libs}
111 %defattr(644,root,root,755)
112 %{_libdir}/libepubgen-0.0.a
116 %defattr(644,root,root,755)
117 %doc docs/doxygen/html/*