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: rpm-build >= 4.6
23 BuildRequires: tar >= 1:1.22
25 BuildRequires: zlib-devel
26 Requires: librevenge >= 0.0.1
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Libmspub is library providing ability to interpret and import
31 Microsoft Publisher content into various applications. You can find it
32 being used in libreoffice.
34 %description -l pl.UTF-8
35 Libmspub to biblioteka umożliwiająca interpretowanie i importowanie
36 treści z Microsoft Publishera do wielu aplikacji. Jest wykorzystywana
40 Summary: Development files for libmspub
41 Summary(pl.UTF-8): Pliki nagłówkowe dla libmspub
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
44 Requires: libicu-devel
45 Requires: librevenge-devel >= 0.0.1
46 Requires: libstdc++-devel >= 6:4.7
50 This package contains the header files for developing applications
53 %description devel -l pl.UTF-8
54 Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
58 Summary: Static libmspub library
59 Summary(pl.UTF-8): Statyczna biblioteka libmspub
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
64 Static libmspub library.
66 %description static -l pl.UTF-8
67 Statyczna biblioteka libmspub.
70 Summary: libmspub API documentation
71 Summary(pl.UTF-8): Dokumentacja API biblioteki libmspub
76 API and internal documentation for libmspub library.
78 %description apidocs -l pl.UTF-8
79 Dokumentacja API biblioteki libmspub.
82 Summary: Tools to transform Microsoft Publisher content into other formats
83 Summary(pl.UTF-8): Programy do przekształcania treści z Microsoft Publishera do innych formatów
84 Group: Applications/Publishing
85 Requires: %{name} = %{version}-%{release}
88 Tools to transform Microsoft Publisher content into other formats.
89 Currently supported: XHTML, raw.
91 %description tools -l pl.UTF-8
92 Narzędzia do przekształcania treści z Microsoft Publishera do innych
93 formatów. Aktualnie obsługiwane są XHTML i raw.
101 --disable-silent-rules \
102 %{?with_static_libs:--enable-static}
108 rm -rf $RPM_BUILD_ROOT
110 DESTDIR=$RPM_BUILD_ROOT
112 # obsoleted by pkg-config
113 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
116 rm -rf $RPM_BUILD_ROOT
118 %post -p /sbin/ldconfig
119 %postun -p /sbin/ldconfig
122 %defattr(644,root,root,755)
123 %doc AUTHORS ChangeLog NEWS README
124 %attr(755,root,root) %{_libdir}/libmspub-0.1.so.*.*.*
125 %attr(755,root,root) %ghost %{_libdir}/libmspub-0.1.so.1
128 %defattr(644,root,root,755)
129 %attr(755,root,root) %{_libdir}/libmspub-0.1.so
130 %{_includedir}/libmspub-0.1
131 %{_pkgconfigdir}/libmspub-0.1.pc
133 %if %{with static_libs}
135 %defattr(644,root,root,755)
136 %{_libdir}/libmspub-0.1.a
140 %defattr(644,root,root,755)
141 %doc %{_docdir}/%{name}
144 %defattr(644,root,root,755)
145 %attr(755,root,root) %{_bindir}/pub2raw
146 %attr(755,root,root) %{_bindir}/pub2xhtml