3 %bcond_without static_libs # static library
5 Summary: A library providing ability to interpret and import Microsoft Publisher content
6 Summary(pl.UTF-8): Biblioteka umożliwiająca interpretowanie i importowanie treści z Microsoft Publishera
12 Source0: http://dev-www.libreoffice.org/src/libmspub/%{name}-%{version}.tar.xz
13 # Source0-md5: ac6fa9c1c05ece27c58c05e11786fd3a
14 Patch0: %{name}-types.patch
15 URL: http://www.freedesktop.org/wiki/Software/libmspub
16 BuildRequires: boost-devel
17 BuildRequires: doxygen
18 BuildRequires: libicu-devel
19 BuildRequires: librevenge-devel >= 0.0.1
20 BuildRequires: libstdc++-devel >= 6:4.7
21 BuildRequires: pkgconfig >= 1:0.20
22 BuildRequires: tar >= 1:1.22
24 BuildRequires: zlib-devel
25 Requires: librevenge >= 0.0.1
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Libmspub is library providing ability to interpret and import
30 Microsoft Publisher content into various applications. You can find it
31 being used in libreoffice.
33 %description -l pl.UTF-8
34 Libmspub to biblioteka umożliwiająca interpretowanie i importowanie
35 treści z Microsoft Publishera do wielu aplikacji. Jest wykorzystywana
39 Summary: Development files for libmspub
40 Summary(pl.UTF-8): Pliki nagłówkowe dla libmspub
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
43 Requires: libicu-devel
44 Requires: librevenge-devel >= 0.0.1
45 Requires: libstdc++-devel >= 6:4.7
49 This package contains the header files for developing applications
52 %description devel -l pl.UTF-8
53 Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
57 Summary: Static libmspub library
58 Summary(pl.UTF-8): Statyczna biblioteka libmspub
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}-%{release}
63 Static libmspub library.
65 %description static -l pl.UTF-8
66 Statyczna biblioteka libmspub.
69 Summary: libmspub API documentation
70 Summary(pl.UTF-8): Dokumentacja API biblioteki libmspub
75 API and internal documentation for libmspub library.
77 %description apidocs -l pl.UTF-8
78 Dokumentacja API biblioteki libmspub.
81 Summary: Tools to transform Microsoft Publisher content into other formats
82 Summary(pl.UTF-8): Programy do przekształcania treści z Microsoft Publishera do innych formatów
83 Group: Applications/Publishing
84 Requires: %{name} = %{version}-%{release}
87 Tools to transform Microsoft Publisher content into other formats.
88 Currently supported: XHTML, raw.
90 %description tools -l pl.UTF-8
91 Narzędzia do przekształcania treści z Microsoft Publishera do innych
92 formatów. Aktualnie obsługiwane są XHTML i raw.
100 --disable-silent-rules \
101 %{?with_static_libs:--enable-static}
107 rm -rf $RPM_BUILD_ROOT
109 DESTDIR=$RPM_BUILD_ROOT
111 # obsoleted by pkg-config
112 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
115 rm -rf $RPM_BUILD_ROOT
117 %post -p /sbin/ldconfig
118 %postun -p /sbin/ldconfig
121 %defattr(644,root,root,755)
122 %doc AUTHORS ChangeLog NEWS README
123 %attr(755,root,root) %{_libdir}/libmspub-0.1.so.*.*.*
124 %attr(755,root,root) %ghost %{_libdir}/libmspub-0.1.so.1
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/libmspub-0.1.so
129 %{_includedir}/libmspub-0.1
130 %{_pkgconfigdir}/libmspub-0.1.pc
132 %if %{with static_libs}
134 %defattr(644,root,root,755)
135 %{_libdir}/libmspub-0.1.a
139 %defattr(644,root,root,755)
140 %doc %{_docdir}/%{name}
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_bindir}/pub2raw
145 %attr(755,root,root) %{_bindir}/pub2xhtml