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: a86d607bc02eb8dd15ea88b3936b2080
14 URL: http://www.freedesktop.org/wiki/Software/libmspub
15 BuildRequires: boost-devel
16 BuildRequires: doxygen
17 BuildRequires: libicu-devel
18 BuildRequires: librevenge-devel >= 0.0
19 BuildRequires: libstdc++-devel
20 BuildRequires: pkgconfig >= 1:0.20
21 BuildRequires: tar >= 1:1.22
23 BuildRequires: zlib-devel
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Libmspub is library providing ability to interpret and import
28 Microsoft Publisher content into various applications. You can find it
29 being used in libreoffice.
31 %description -l pl.UTF-8
32 Libmspub to biblioteka umożliwiająca interpretowanie i importowanie
33 treści z Microsoft Publishera do wielu aplikacji. Jest wykorzystywana
37 Summary: Development files for libmspub
38 Summary(pl.UTF-8): Pliki nagłówkowe dla libmspub
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
41 Requires: libicu-devel
42 Requires: librevenge-devel >= 0.0
43 Requires: libstdc++-devel
47 This package contains the header files for developing applications
50 %description devel -l pl.UTF-8
51 Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
55 Summary: Static libmspub library
56 Summary(pl.UTF-8): Statyczna biblioteka libmspub
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
61 Static libmspub library.
63 %description static -l pl.UTF-8
64 Statyczna biblioteka libmspub.
67 Summary: libmspub API documentation
68 Summary(pl.UTF-8): Dokumentacja API biblioteki libmspub
72 API and internal documentation for libmspub library.
74 %description apidocs -l pl.UTF-8
75 Dokumentacja API biblioteki libmspub.
78 Summary: Tools to transform Microsoft Publisher content into other formats
79 Summary(pl.UTF-8): Programy do przekształcania treści z Microsoft Publishera do innych formatów
80 Group: Applications/Publishing
81 Requires: %{name} = %{version}-%{release}
84 Tools to transform Microsoft Publisher content into other formats.
85 Currently supported: XHTML, raw.
87 %description tools -l pl.UTF-8
88 Narzędzia do przekształcania treści z Microsoft Publishera do innych
89 formatów. Aktualnie obsługiwane są XHTML i raw.
96 --disable-silent-rules \
97 %{?with_static_libs:--enable-static}
103 rm -rf $RPM_BUILD_ROOT
105 DESTDIR=$RPM_BUILD_ROOT
107 # obsoleted by pkg-config
108 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
111 rm -rf $RPM_BUILD_ROOT
113 %post -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
117 %defattr(644,root,root,755)
118 %doc AUTHORS ChangeLog NEWS README
119 %attr(755,root,root) %{_libdir}/libmspub-0.1.so.*.*.*
120 %attr(755,root,root) %ghost %{_libdir}/libmspub-0.1.so.1
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libmspub-0.1.so
125 %{_includedir}/libmspub-0.1
126 %{_pkgconfigdir}/libmspub-0.1.pc
128 %if %{with static_libs}
130 %defattr(644,root,root,755)
131 %{_libdir}/libmspub-0.1.a
135 %defattr(644,root,root,755)
136 %doc %{_docdir}/%{name}
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_bindir}/pub2raw
141 %attr(755,root,root) %{_bindir}/pub2xhtml