]>
Commit | Line | Data |
---|---|---|
fab0c107 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
61494e6c | 4 | |
fab0c107 JB |
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 | |
7 | Name: libmspub | |
b11aa397 | 8 | Version: 0.1.4 |
7e00947f | 9 | Release: 7 |
ca4ba89b | 10 | License: MPL v2.0 |
fab0c107 | 11 | Group: Libraries |
7e90e858 | 12 | Source0: http://dev-www.libreoffice.org/src/libmspub/%{name}-%{version}.tar.xz |
b11aa397 | 13 | # Source0-md5: ac6fa9c1c05ece27c58c05e11786fd3a |
564a193c | 14 | Patch0: %{name}-types.patch |
fab0c107 JB |
15 | URL: http://www.freedesktop.org/wiki/Software/libmspub |
16 | BuildRequires: boost-devel | |
17 | BuildRequires: doxygen | |
adfe9b3e | 18 | BuildRequires: libicu-devel |
9653d210 | 19 | BuildRequires: librevenge-devel >= 0.0.1 |
821e3187 | 20 | BuildRequires: libstdc++-devel >= 6:4.7 |
fab0c107 | 21 | BuildRequires: pkgconfig >= 1:0.20 |
13b878d7 | 22 | BuildRequires: rpm-build >= 4.6 |
fab0c107 JB |
23 | BuildRequires: tar >= 1:1.22 |
24 | BuildRequires: xz | |
25 | BuildRequires: zlib-devel | |
9653d210 | 26 | Requires: librevenge >= 0.0.1 |
fab0c107 JB |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
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. | |
33 | ||
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 | |
37 | przez libreoffice. | |
38 | ||
39 | %package devel | |
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} | |
ca4ba89b | 44 | Requires: libicu-devel |
9653d210 | 45 | Requires: librevenge-devel >= 0.0.1 |
821e3187 | 46 | Requires: libstdc++-devel >= 6:4.7 |
fab0c107 JB |
47 | Requires: zlib-devel |
48 | ||
49 | %description devel | |
50 | This package contains the header files for developing applications | |
51 | that use libmspub. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na | |
55 | libmspub. | |
56 | ||
57 | %package static | |
58 | Summary: Static libmspub library | |
59 | Summary(pl.UTF-8): Statyczna biblioteka libmspub | |
60 | Group: Development/Libraries | |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
64 | Static libmspub library. | |
65 | ||
66 | %description static -l pl.UTF-8 | |
67 | Statyczna biblioteka libmspub. | |
68 | ||
69 | %package apidocs | |
70 | Summary: libmspub API documentation | |
71 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmspub | |
72 | Group: Documentation | |
61494e6c | 73 | BuildArch: noarch |
fab0c107 JB |
74 | |
75 | %description apidocs | |
76 | API and internal documentation for libmspub library. | |
77 | ||
78 | %description apidocs -l pl.UTF-8 | |
79 | Dokumentacja API biblioteki libmspub. | |
80 | ||
81 | %package tools | |
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} | |
86 | ||
87 | %description tools | |
88 | Tools to transform Microsoft Publisher content into other formats. | |
89 | Currently supported: XHTML, raw. | |
90 | ||
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. | |
94 | ||
95 | %prep | |
96 | %setup -q | |
564a193c | 97 | %patch0 -p1 |
fab0c107 JB |
98 | |
99 | %build | |
100 | %configure \ | |
101 | --disable-silent-rules \ | |
ca4ba89b | 102 | %{?with_static_libs:--enable-static} |
fab0c107 JB |
103 | |
104 | %{__make} | |
105 | ||
106 | ||
107 | %install | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | %{__make} install \ | |
110 | DESTDIR=$RPM_BUILD_ROOT | |
111 | ||
112 | # obsoleted by pkg-config | |
113 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
114 | ||
115 | %clean | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %post -p /sbin/ldconfig | |
119 | %postun -p /sbin/ldconfig | |
120 | ||
121 | %files | |
122 | %defattr(644,root,root,755) | |
ca4ba89b JB |
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 | |
fab0c107 JB |
126 | |
127 | %files devel | |
128 | %defattr(644,root,root,755) | |
ca4ba89b JB |
129 | %attr(755,root,root) %{_libdir}/libmspub-0.1.so |
130 | %{_includedir}/libmspub-0.1 | |
131 | %{_pkgconfigdir}/libmspub-0.1.pc | |
fab0c107 JB |
132 | |
133 | %if %{with static_libs} | |
134 | %files static | |
135 | %defattr(644,root,root,755) | |
ca4ba89b | 136 | %{_libdir}/libmspub-0.1.a |
fab0c107 JB |
137 | %endif |
138 | ||
139 | %files apidocs | |
140 | %defattr(644,root,root,755) | |
141 | %doc %{_docdir}/%{name} | |
142 | ||
143 | %files tools | |
144 | %defattr(644,root,root,755) | |
145 | %attr(755,root,root) %{_bindir}/pub2raw | |
146 | %attr(755,root,root) %{_bindir}/pub2xhtml |