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: 050b8b29c2620fdbfb5d8561d4d08a11
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.1
19 BuildRequires: libstdc++-devel
20 BuildRequires: pkgconfig >= 1:0.20
21 BuildRequires: tar >= 1:1.22
23 BuildRequires: zlib-devel
24 Requires: librevenge >= 0.0.1
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Libmspub is library providing ability to interpret and import
29 Microsoft Publisher content into various applications. You can find it
30 being used in libreoffice.
32 %description -l pl.UTF-8
33 Libmspub to biblioteka umożliwiająca interpretowanie i importowanie
34 treści z Microsoft Publishera do wielu aplikacji. Jest wykorzystywana
38 Summary: Development files for libmspub
39 Summary(pl.UTF-8): Pliki nagłówkowe dla libmspub
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Requires: libicu-devel
43 Requires: librevenge-devel >= 0.0.1
44 Requires: libstdc++-devel
48 This package contains the header files for developing applications
51 %description devel -l pl.UTF-8
52 Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
56 Summary: Static libmspub library
57 Summary(pl.UTF-8): Statyczna biblioteka libmspub
58 Group: Development/Libraries
59 Requires: %{name}-devel = %{version}-%{release}
62 Static libmspub library.
64 %description static -l pl.UTF-8
65 Statyczna biblioteka libmspub.
68 Summary: libmspub API documentation
69 Summary(pl.UTF-8): Dokumentacja API biblioteki libmspub
73 API and internal documentation for libmspub library.
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API biblioteki libmspub.
79 Summary: Tools to transform Microsoft Publisher content into other formats
80 Summary(pl.UTF-8): Programy do przekształcania treści z Microsoft Publishera do innych formatów
81 Group: Applications/Publishing
82 Requires: %{name} = %{version}-%{release}
85 Tools to transform Microsoft Publisher content into other formats.
86 Currently supported: XHTML, raw.
88 %description tools -l pl.UTF-8
89 Narzędzia do przekształcania treści z Microsoft Publishera do innych
90 formatów. Aktualnie obsługiwane są XHTML i raw.
97 --disable-silent-rules \
98 %{?with_static_libs:--enable-static}
104 rm -rf $RPM_BUILD_ROOT
106 DESTDIR=$RPM_BUILD_ROOT
108 # obsoleted by pkg-config
109 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
112 rm -rf $RPM_BUILD_ROOT
114 %post -p /sbin/ldconfig
115 %postun -p /sbin/ldconfig
118 %defattr(644,root,root,755)
119 %doc AUTHORS ChangeLog NEWS README
120 %attr(755,root,root) %{_libdir}/libmspub-0.1.so.*.*.*
121 %attr(755,root,root) %ghost %{_libdir}/libmspub-0.1.so.1
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/libmspub-0.1.so
126 %{_includedir}/libmspub-0.1
127 %{_pkgconfigdir}/libmspub-0.1.pc
129 %if %{with static_libs}
131 %defattr(644,root,root,755)
132 %{_libdir}/libmspub-0.1.a
136 %defattr(644,root,root,755)
137 %doc %{_docdir}/%{name}
140 %defattr(644,root,root,755)
141 %attr(755,root,root) %{_bindir}/pub2raw
142 %attr(755,root,root) %{_bindir}/pub2xhtml