3 %bcond_without static_libs # don't build static library
4 %bcond_without gdb # GDB pretty printers
6 Summary: Library for generic document converters
7 Summary(pl.UTF-8): Biblioteka dla ogólnych konwerterów dokumentów
11 License: MPL v2.0 or LGPL v2.1+
13 Source0: https://downloads.sourceforge.net/libwpd/%{name}-%{version}.tar.xz
14 # Source0-md5: c6e629dfb9557a6a2cd4309b31eddfa8
15 URL: https://sourceforge.net/p/libwpd/wiki/librevenge/
16 BuildRequires: autoconf >= 2.65
17 BuildRequires: automake >= 1:1.11
18 BuildRequires: boost-devel >= 1.20
19 BuildRequires: cppunit-devel
20 BuildRequires: doxygen
21 BuildRequires: libstdc++-devel >= 6:4.7
22 BuildRequires: libtool >= 2:2
23 BuildRequires: pkgconfig
24 %{?with_gdb:BuildRequires: python-modules}
25 BuildRequires: rpmbuild(macros) >= 1.234
26 BuildRequires: tar >= 1:1.22
28 BuildRequires: zlib-devel
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 librevenge is a base library for writing document import filters. It
33 has interfaces for text documents, vector graphics, spreadsheets and
36 %description -l pl.UTF-8
37 librevenge to biblioteka podstawowa do pisania filtrów importujących
38 dokumenty. Zawiera interfejsy dla dokumentów tekstowych, grafiki
39 wektorowej, arkuszy kalkulacyjnych oraz prezentacji.
42 Summary: Header files for librevenge library
43 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki librevenge
44 Group: Development/Libraries
45 Requires: %{name} = %{version}-%{release}
46 Requires: libstdc++-devel >= 6:4.7
49 Header files for librevenge library.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki librevenge.
55 Summary: Static librevenge library
56 Summary(pl.UTF-8): Statyczna biblioteka librevenge
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
61 Static librevenge library.
63 %description static -l pl.UTF-8
64 Statyczna biblioteka librevenge.
67 Summary: API documentation for librevenge library
68 Summary(pl.UTF-8): Dokumentacja API biblioteki librevenge
73 API documentation for librevenge library.
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API biblioteki librevenge.
79 Summary: GDB Python pretty printers for librevenge types
80 Summary(pl.UTF-8): Skrypty Pythona dla GDB do ładnego wypisywania typów librevenge
81 Group: Development/Debuggers
85 GDB Python pretty printers for librevenge types.
87 %description gdb -l pl.UTF-8
88 Skrypty Pythona dla GDB do ładnego wypisywania typów librevenge.
100 %{?with_gdb:--enable-pretty-printers} \
101 %{?with_static_libs:--enable-static} \
103 --disable-silent-rules
107 rm -rf $RPM_BUILD_ROOT
110 DESTDIR=$RPM_BUILD_ROOT
112 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}
113 %{__rm} $RPM_BUILD_ROOT%{_libdir}/librevenge-*.la
116 %py_comp $RPM_BUILD_ROOT%{_datadir}/librevenge/python/librevenge
117 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/librevenge/python/librevenge
118 %py_postclean %{_datadir}/librevenge/python/librevenge
122 rm -rf $RPM_BUILD_ROOT
124 %post -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
128 %defattr(644,root,root,755)
129 %doc AUTHORS ChangeLog NEWS README
130 %attr(755,root,root) %{_libdir}/librevenge-0.0.so.*.*.*
131 %attr(755,root,root) %ghost %{_libdir}/librevenge-0.0.so.0
132 %attr(755,root,root) %{_libdir}/librevenge-generators-0.0.so.*.*.*
133 %attr(755,root,root) %ghost %{_libdir}/librevenge-generators-0.0.so.0
134 %attr(755,root,root) %{_libdir}/librevenge-stream-0.0.so.*.*.*
135 %attr(755,root,root) %ghost %{_libdir}/librevenge-stream-0.0.so.0
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_libdir}/librevenge-0.0.so
140 %attr(755,root,root) %{_libdir}/librevenge-generators-0.0.so
141 %attr(755,root,root) %{_libdir}/librevenge-stream-0.0.so
142 %{_includedir}/librevenge-0.0
143 %{_pkgconfigdir}/librevenge-0.0.pc
144 %{_pkgconfigdir}/librevenge-generators-0.0.pc
145 %{_pkgconfigdir}/librevenge-stream-0.0.pc
147 %if %{with static_libs}
149 %defattr(644,root,root,755)
150 %{_libdir}/librevenge-0.0.a
151 %{_libdir}/librevenge-generators-0.0.a
152 %{_libdir}/librevenge-stream-0.0.a
156 %defattr(644,root,root,755)
157 %doc docs/doxygen/html/*
161 %defattr(644,root,root,755)
162 %{_datadir}/gdb/auto-load/%{_libdir}/librevenge-0.0-gdb.py
163 %{_datadir}/gdb/auto-load/%{_libdir}/librevenge-stream-0.0-gdb.py
164 %dir %{_datadir}/librevenge
165 %{_datadir}/librevenge/python