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}
25 %{?with_gdb:BuildRequires: python-modules}
26 BuildRequires: rpm-build >= 4.6
27 BuildRequires: rpmbuild(macros) >= 1.234
28 BuildRequires: tar >= 1:1.22
30 BuildRequires: zlib-devel
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 librevenge is a base library for writing document import filters. It
35 has interfaces for text documents, vector graphics, spreadsheets and
38 %description -l pl.UTF-8
39 librevenge to biblioteka podstawowa do pisania filtrów importujących
40 dokumenty. Zawiera interfejsy dla dokumentów tekstowych, grafiki
41 wektorowej, arkuszy kalkulacyjnych oraz prezentacji.
44 Summary: Header files for librevenge library
45 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki librevenge
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
48 Requires: libstdc++-devel >= 6:4.7
51 Header files for librevenge library.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe biblioteki librevenge.
57 Summary: Static librevenge library
58 Summary(pl.UTF-8): Statyczna biblioteka librevenge
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}-%{release}
63 Static librevenge library.
65 %description static -l pl.UTF-8
66 Statyczna biblioteka librevenge.
69 Summary: API documentation for librevenge library
70 Summary(pl.UTF-8): Dokumentacja API biblioteki librevenge
75 API documentation for librevenge library.
77 %description apidocs -l pl.UTF-8
78 Dokumentacja API biblioteki librevenge.
81 Summary: GDB Python pretty printers for librevenge types
82 Summary(pl.UTF-8): Skrypty Pythona dla GDB do ładnego wypisywania typów librevenge
83 Group: Development/Debuggers
87 GDB Python pretty printers for librevenge types.
89 %description gdb -l pl.UTF-8
90 Skrypty Pythona dla GDB do ładnego wypisywania typów librevenge.
102 %{?with_gdb:--enable-pretty-printers} \
103 %{?with_static_libs:--enable-static} \
105 --disable-silent-rules
109 rm -rf $RPM_BUILD_ROOT
112 DESTDIR=$RPM_BUILD_ROOT
114 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}
115 %{__rm} $RPM_BUILD_ROOT%{_libdir}/librevenge-*.la
118 %py_comp $RPM_BUILD_ROOT%{_datadir}/librevenge/python/librevenge
119 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/librevenge/python/librevenge
120 %py_postclean %{_datadir}/librevenge/python/librevenge
124 rm -rf $RPM_BUILD_ROOT
126 %post -p /sbin/ldconfig
127 %postun -p /sbin/ldconfig
130 %defattr(644,root,root,755)
131 %doc AUTHORS ChangeLog NEWS README
132 %attr(755,root,root) %{_libdir}/librevenge-0.0.so.*.*.*
133 %attr(755,root,root) %ghost %{_libdir}/librevenge-0.0.so.0
134 %attr(755,root,root) %{_libdir}/librevenge-generators-0.0.so.*.*.*
135 %attr(755,root,root) %ghost %{_libdir}/librevenge-generators-0.0.so.0
136 %attr(755,root,root) %{_libdir}/librevenge-stream-0.0.so.*.*.*
137 %attr(755,root,root) %ghost %{_libdir}/librevenge-stream-0.0.so.0
140 %defattr(644,root,root,755)
141 %attr(755,root,root) %{_libdir}/librevenge-0.0.so
142 %attr(755,root,root) %{_libdir}/librevenge-generators-0.0.so
143 %attr(755,root,root) %{_libdir}/librevenge-stream-0.0.so
144 %{_includedir}/librevenge-0.0
145 %{_pkgconfigdir}/librevenge-0.0.pc
146 %{_pkgconfigdir}/librevenge-generators-0.0.pc
147 %{_pkgconfigdir}/librevenge-stream-0.0.pc
149 %if %{with static_libs}
151 %defattr(644,root,root,755)
152 %{_libdir}/librevenge-0.0.a
153 %{_libdir}/librevenge-generators-0.0.a
154 %{_libdir}/librevenge-stream-0.0.a
158 %defattr(644,root,root,755)
159 %doc docs/doxygen/html/*
163 %defattr(644,root,root,755)
164 %{_datadir}/gdb/auto-load/%{_libdir}/librevenge-0.0-gdb.py
165 %{_datadir}/gdb/auto-load/%{_libdir}/librevenge-stream-0.0-gdb.py
166 %dir %{_datadir}/librevenge
167 %{_datadir}/librevenge/python