]>
Commit | Line | Data |
---|---|---|
a4760670 | 1 | # TODO: wordperfect support with libwpd 0.10, libwp[gs] 0.3 |
3c4c44c5 | 2 | # |
a4760670 JB |
3 | %bcond_without evolution # Evolution Data Server for contacts and calendar |
4 | %bcond_without champlain # champlain maps display support | |
5 | %bcond_with gda # libgda (1.x) support | |
988d24be | 6 | %bcond_without goffice # without plugin-goffice |
ef3f3840 | 7 | %bcond_without gnome # without GNOME libs |
a4760670 JB |
8 | %bcond_with gnomevfs # gnome-vfs support (GTK+ 2.x only) |
9 | %bcond_with gtk2 # GTK+ 2.x instead of 3.x | |
10 | %bcond_without introspection # GObject introspection | |
11 | %bcond_without ots # Open Text Summarizer plugin | |
12 | %bcond_without redland # redland/raptor libraries | |
77a8de10 | 13 | %bcond_with psiconv # psiconv / psion plugin |
3c4c44c5 | 14 | # |
4cf15153 | 15 | %define mver 3.0 |
7ef7e24a | 16 | # |
a4760670 JB |
17 | %if %{without gtk2} |
18 | %undefine with_gnomevfs | |
19 | %endif | |
a611d325 | 20 | Summary: Multi-platform word processor |
86960f12 | 21 | Summary(pl.UTF-8): Wieloplatformowy procesor tekstu |
c3f4081b | 22 | Name: abiword |
86f592fb | 23 | Version: 3.0.2 |
77a8de10 | 24 | Release: 8 |
b28f7fb4 | 25 | Epoch: 1 |
b0dc3a26 | 26 | License: GPL v2+ |
51e13fb3 | 27 | Group: X11/Applications/Editors |
ddb70578 | 28 | Source0: http://www.abisource.com/downloads/abiword/%{version}/source/%{name}-%{version}.tar.gz |
86f592fb | 29 | # Source0-md5: cda6dd58c747c133b421cc7eb18f5796 |
6a6cef20 | 30 | Patch0: %{name}-desktop.patch |
09b649fe | 31 | Patch1: %{name}-mht.patch |
988d24be | 32 | Patch2: %{name}-librevenge.patch |
271985b1 AM |
33 | Patch3: ecal.patch |
34 | Patch4: icu.patch | |
a4760670 JB |
35 | Patch6: %{name}-tidy.patch |
36 | Patch7: %{name}-asio.patch | |
c3f4081b | 37 | URL: http://www.abisource.com/ |
9d4ea0ce | 38 | BuildRequires: aiksaurus-gtk-devel >= 1.2.1 |
a4760670 JB |
39 | BuildRequires: autoconf >= 2.50 |
40 | BuildRequires: automake >= 1:1.9 | |
41 | BuildRequires: boost-devel >= 1.40.0 | |
a611d325 | 42 | BuildRequires: bzip2-devel |
a4760670 JB |
43 | BuildRequires: cairo-devel >= 1.10 |
44 | BuildRequires: dbus-glib-devel >= 0.70 | |
9d4ea0ce | 45 | BuildRequires: enchant-devel >= 1.2.6 |
fa84db45 | 46 | BuildRequires: eps-devel |
a4760670 | 47 | %{?with_evolution:BuildRequires: evolution-data-server-devel >= 3.6} |
9d4ea0ce | 48 | BuildRequires: fontconfig-devel >= 1:2.3.95 |
19dec3f5 | 49 | BuildRequires: fribidi-devel >= 0.10.4 |
7ef7e24a | 50 | BuildRequires: glib2-devel >= 1:2.12.1 |
a4760670 JB |
51 | BuildRequires: gnutls-devel |
52 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.0.0} | |
53 | %if %{with gtk2} | |
b4359816 | 54 | BuildRequires: gtk+2-devel >= 2:2.12.0 |
a4760670 JB |
55 | %else |
56 | BuildRequires: gtk+3-devel >= 3.0.8 | |
57 | %endif | |
9d4ea0ce | 58 | BuildRequires: gtkmathview-devel >= 0.7.6 |
a4760670 JB |
59 | # libchamplain-gtk compiler with matching GTK+ version |
60 | %{?with_champlain:BuildRequires: libchamplain-devel >= 0.12} | |
198ec40e | 61 | %if %{with gda} |
667379a3 | 62 | BuildRequires: libgda-devel >= 1:1.2.4-16 |
198ec40e | 63 | BuildRequires: libgnomedb-devel >= 1:1.2.0 |
198ec40e | 64 | %endif |
a4760670 JB |
65 | %{?with_goffice:BuildRequires: libgoffice-devel >= 0.10.2} |
66 | BuildRequires: libgcrypt-devel >= 1.4.5 | |
67 | BuildRequires: libgsf-devel >= 1.14.18 | |
68 | BuildRequires: libical-devel >= 0.46 | |
a611d325 | 69 | BuildRequires: libjpeg-devel |
3c4c44c5 | 70 | BuildRequires: libpng-devel |
988d24be | 71 | BuildRequires: librevenge-devel |
b4359816 | 72 | BuildRequires: librsvg-devel >= 1:2.16.0 |
a4760670 JB |
73 | BuildRequires: libsoup-devel >= 2.4 |
74 | BuildRequires: libtool >= 2:1.5 | |
2dbf8c49 | 75 | BuildRequires: libwmf-devel >= 2:0.2.8.4 |
c03e30cf MB |
76 | BuildRequires: libwpd-devel >= 0.9.0 |
77 | BuildRequires: libwpg-devel >= 0.2.0 | |
78 | BuildRequires: libwps-devel >= 0.2.0 | |
9d4ea0ce | 79 | BuildRequires: libxml2-devel >= 1:2.6.26 |
a4760670 | 80 | BuildRequires: libxslt-devel |
bcde56e9 | 81 | BuildRequires: link-grammar-devel >= 4.2.1 |
a4760670 | 82 | BuildRequires: loudmouth-devel >= 1.3.2 |
ef3f3840 | 83 | %{?with_ots:BuildRequires: ots-devel >= 0.5.0} |
b4359816 | 84 | BuildRequires: pango-devel |
82f7c507 | 85 | BuildRequires: perl-devel |
a4760670 | 86 | BuildRequires: pkgconfig >= 1:0.9.0 |
3c4c44c5 | 87 | BuildRequires: popt-devel |
77a8de10 | 88 | %{?with_psiconv:BuildRequires: psiconv-devel >= 0.9.6} |
a4760670 JB |
89 | %{?with_introspection:BuildRequires: python >= 2} |
90 | %{?with_introspection:BuildRequires: python-pygobject3 >= 3} | |
91 | %{?with_redland:BuildRequires: rasqal-devel >= 0.9.17} | |
0bcd8c6f | 92 | BuildRequires: readline-devel |
a4760670 JB |
93 | %{?with_redland:BuildRequires: redland-devel >= 1.0.10} |
94 | BuildRequires: rpmbuild(macros) >= 1.219 | |
b0dc3a26 | 95 | BuildRequires: sed >= 4.0 |
a4760670 JB |
96 | BuildRequires: tidy-devel |
97 | BuildRequires: telepathy-glib-devel >= 0.14.5 | |
9d4ea0ce | 98 | BuildRequires: wv-devel >= 1.2.1 |
a4760670 | 99 | BuildRequires: zlib-devel |
6bca5794 | 100 | Requires(post,postun): desktop-file-utils |
a4760670 JB |
101 | Requires: cairo >= 1.10 |
102 | Requires: enchant >= 1.2.6 | |
103 | %{?with_evolution:Requires: evolution-data-server-libs >= 3.6} | |
104 | Requires: fontconfig >= 1:2.3.95 | |
105 | Requires: fribidi >= 0.10.4 | |
106 | Requires: glib2 >= 1:2.12.1 | |
107 | %if %{with gtk2} | |
108 | Requires: gtk+2 >= 2:2.12.0 | |
109 | %else | |
110 | Requires: gtk+3 >= 3.0.8 | |
111 | %endif | |
112 | %{?with_champlain:Requires: libchamplain >= 0.12} | |
113 | Requires: libgcrypt >= 1.4.5 | |
114 | %{?with_goffice:Requires: libgoffice >= 0.10.2} | |
115 | Requires: libgsf >= 1.14.18 | |
116 | Requires: libical >= 0.46 | |
117 | Requires: librsvg >= 1:2.16.0 | |
118 | Requires: libxml2 >= 1:2.6.26 | |
119 | %{?with_redland:Requires: rasqal >= 0.9.17} | |
120 | %{?with_redland:Requires: redland >= 1.0.10} | |
121 | Requires: wv >= 1.2.1 | |
b4359816 PZ |
122 | Obsoletes: abiword-plugin-applix |
123 | Obsoletes: abiword-plugin-babelfish | |
124 | Obsoletes: abiword-plugin-bmp | |
125 | Obsoletes: abiword-plugin-bz2 | |
126 | Obsoletes: abiword-plugin-capi | |
127 | Obsoletes: abiword-plugin-clarisworks | |
a4760670 | 128 | Obsoletes: abiword-plugin-coquille |
b4359816 PZ |
129 | Obsoletes: abiword-plugin-dash |
130 | Obsoletes: abiword-plugin-docbook | |
131 | Obsoletes: abiword-plugin-eml | |
132 | Obsoletes: abiword-plugin-freetranslation | |
a4760670 | 133 | %{!?with_gda:Obsoletes: abiword-plugin-gda} |
b4359816 | 134 | Obsoletes: abiword-plugin-gdict |
3c4c44c5 | 135 | Obsoletes: abiword-plugin-gdkpixbuf |
b4359816 | 136 | Obsoletes: abiword-plugin-gimp |
a4760670 | 137 | %{!?with_goffice:Obsoletes: abiword-plugin-goffice} |
b4359816 | 138 | Obsoletes: abiword-plugin-google |
b4ad19bc | 139 | Obsoletes: abiword-plugin-gypsython |
b4359816 PZ |
140 | Obsoletes: abiword-plugin-hancom |
141 | Obsoletes: abiword-plugin-hrtext | |
142 | Obsoletes: abiword-plugin-iscii | |
143 | Obsoletes: abiword-plugin-jpeg | |
144 | Obsoletes: abiword-plugin-kword | |
3c4c44c5 | 145 | Obsoletes: abiword-plugin-magick |
b4359816 PZ |
146 | Obsoletes: abiword-plugin-mif |
147 | Obsoletes: abiword-plugin-mswrite | |
148 | Obsoletes: abiword-plugin-nroff | |
149 | Obsoletes: abiword-plugin-opendocument | |
150 | Obsoletes: abiword-plugin-openwritter | |
151 | Obsoletes: abiword-plugin-palmdoc | |
152 | Obsoletes: abiword-plugin-passepartout | |
153 | Obsoletes: abiword-plugin-pdf | |
b4ad19bc | 154 | Obsoletes: abiword-plugin-referee |
b4359816 PZ |
155 | Obsoletes: abiword-plugin-rsvg |
156 | Obsoletes: abiword-plugin-scripthappy | |
157 | Obsoletes: abiword-plugin-sdw | |
158 | Obsoletes: abiword-plugin-t602 | |
159 | Obsoletes: abiword-plugin-urldict | |
160 | Obsoletes: abiword-plugin-wikipedia | |
9a03c865 | 161 | Obsoletes: abiword-plugin-wordperfect |
b4359816 PZ |
162 | Obsoletes: abiword-plugin-wml |
163 | Obsoletes: abiword-plugin-xhtml | |
164 | Obsoletes: abiword-plugin-xslfo | |
8cb56686 | 165 | Obsoletes: abiword-plugins-impexp |
166 | Obsoletes: abiword-plugins-tools | |
c3f4081b | 167 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
168 | ||
c3f4081b | 169 | %description |
a611d325 | 170 | AbiWord is a multi-platform word processor with a GTK+ interface on |
171 | the UNIX platform. | |
c3f4081b | 172 | |
54c3bfed | 173 | %description -l pl.UTF-8 |
f740e878 JB |
174 | AbiWord jest wieloplatformowym procesorem tekstu z interfejsem GTK+ na |
175 | platformie UNIX. | |
a611d325 | 176 | |
35318bc6 JB |
177 | %package devel |
178 | Summary: Files for AbiWord plugins development | |
179 | Summary(pl.UTF-8): Pliki do tworzenia wtyczek dla AbiWorda | |
180 | Group: Development/Libraries | |
181 | # doesn't require base | |
182 | ||
183 | %description devel | |
184 | Files for AbiWord plugins development. | |
185 | ||
186 | %description devel -l pl.UTF-8 | |
187 | Pliki do tworzenia wtyczek dla AbiWorda. | |
188 | ||
a4760670 JB |
189 | %package -n python-abiword |
190 | Summary: Python GObject binding for AbiWord library | |
191 | Summary(pl.UTF-8): Wiązanie Pythona i GObject do biblioteki AbiWorda | |
192 | Group: Libraries/Python | |
193 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
194 | Requires: python-pygobject3 >= 3 | |
195 | ||
196 | %description -n python-abiword | |
197 | Python GObject binding for AbiWord library. | |
198 | ||
199 | %description -n python-abiword -l pl.UTF-8 | |
200 | Wiązanie Pythona i GObject do biblioteki AbiWorda. | |
201 | ||
3c4c44c5 | 202 | # plugins - tools |
3c4c44c5 | 203 | %package plugin-aiksaurus |
204 | Summary: AbiWord Aiksaurus plugin | |
86960f12 | 205 | Summary(pl.UTF-8): Wtyczka AbiWorda Aiksaurus |
51e13fb3 | 206 | Group: X11/Applications/Editors |
3c4c44c5 | 207 | Requires: %{name} = %{epoch}:%{version}-%{release} |
a4760670 | 208 | Requires: aiksaurus-gtk >= 1.2.1 |
3c4c44c5 | 209 | |
210 | %description plugin-aiksaurus | |
211 | Allows to use Aiksaurus thesaurus. | |
212 | ||
54c3bfed JR |
213 | %description plugin-aiksaurus -l pl.UTF-8 |
214 | Wtyczka ta pozwala na użycie Aiksaurusa - słownika wyrazów | |
d4b82311 | 215 | bliskoznacznych. |
3c4c44c5 | 216 | |
06c8551c SS |
217 | %package plugin-collab |
218 | Summary: Remote collaborate for AbiWord | |
0f194ed2 | 219 | Summary(pl.UTF-8): Zdalna współpraca dla AbiWorda |
51e13fb3 | 220 | Group: X11/Applications/Editors |
06c8551c | 221 | Requires: %{name} = %{epoch}:%{version}-%{release} |
a4760670 JB |
222 | Requires: dbus-glib >= 0.70 |
223 | Requires: loudmouth >= 1.3.2 | |
224 | Requires: telepathy-glib >= 0.14.5 | |
06c8551c SS |
225 | |
226 | %description plugin-collab | |
227 | Allows to collaborate with a remote user. | |
228 | ||
416c0cd6 | 229 | %description plugin-collab -l pl.UTF-8 |
8bfeb9e8 | 230 | Wtyczka pozwalająca na współpracę z innym użytkownikiem przez sieć. |
06c8551c | 231 | |
3c4c44c5 | 232 | %package plugin-command |
233 | Summary: AbiWord command line control | |
86960f12 | 234 | Summary(pl.UTF-8): Konrolowanie AbiWorda z linii poleceń |
51e13fb3 | 235 | Group: X11/Applications/Editors |
3c4c44c5 | 236 | Requires: %{name} = %{epoch}:%{version}-%{release} |
237 | ||
238 | %description plugin-command | |
239 | Allows command line control of AbiWord. | |
240 | ||
54c3bfed JR |
241 | %description plugin-command -l pl.UTF-8 |
242 | Wtyczka ta pozwala na kontrolowanie AbiWorda z poziomu linii poleceń. | |
3c4c44c5 | 243 | |
3c4c44c5 | 244 | %package plugin-gda |
245 | Summary: AbiWord GDA plugin | |
86960f12 | 246 | Summary(pl.UTF-8): Wtyczka AbiWorda dla GDA |
51e13fb3 | 247 | Group: X11/Applications/Editors |
3c4c44c5 | 248 | Requires: %{name} = %{epoch}:%{version}-%{release} |
7ef7e24a | 249 | Requires: gnome-database-access-properties >= 1:1.2.1 |
a4760670 JB |
250 | Requires: libgda >= 1:1.2.4-16 |
251 | Requires: libgnomedb >= 1:1.2.0 | |
3c4c44c5 | 252 | |
253 | %description plugin-gda | |
254 | Allows access to any database provided by libgda. | |
255 | ||
54c3bfed JR |
256 | %description plugin-gda -l pl.UTF-8 |
257 | Wtyczka ta pozwala na połączenie z dowolną bazą danych dostarczaną za | |
258 | pośrednictwem libgda. | |
3c4c44c5 | 259 | |
e4d2027a PZ |
260 | %package plugin-goffice |
261 | Summary: GNOME Office plugin | |
86960f12 | 262 | Summary(pl.UTF-8): Wtyczka GNOME Office |
51e13fb3 | 263 | Group: X11/Applications/Editors |
e4d2027a | 264 | Requires: %{name} = %{epoch}:%{version}-%{release} |
a4760670 | 265 | Requires: libgoffice >= 0.10.2 |
d32717a1 | 266 | |
e4d2027a | 267 | %description plugin-goffice |
6bca5794 | 268 | Allows to share GNOME Office objects between GOffice appplications. |
d32717a1 | 269 | |
54c3bfed JR |
270 | %description plugin-goffice -l pl.UTF-8 |
271 | Pozwala na współdzielenie obiektów GNOME Office pomiędzy jego | |
e4d2027a | 272 | aplikacjami. |
d32717a1 | 273 | |
d32717a1 | 274 | %package plugin-mathview |
275 | Summary: AbiWord MathView plugin | |
86960f12 | 276 | Summary(pl.UTF-8): Wtyczka MAthView dla AbiWorda |
51e13fb3 | 277 | Group: X11/Applications/Editors |
3c4c44c5 | 278 | Requires: %{name} = %{epoch}:%{version}-%{release} |
a4760670 | 279 | Requires: gtkmathview-devel >= 0.7.6 |
3c4c44c5 | 280 | |
d32717a1 | 281 | %description plugin-mathview |
282 | MathML or LaTeX style equation inserting and editing. | |
3c4c44c5 | 283 | |
54c3bfed JR |
284 | %description plugin-mathview -l pl.UTF-8 |
285 | Pozwala na wstawianie i edycję równań w stylu MathML lub LaTeX. | |
3c4c44c5 | 286 | |
3c4c44c5 | 287 | %package plugin-ots |
288 | Summary: AbiWord OTS plugin | |
86960f12 | 289 | Summary(pl.UTF-8): Wtyczka OTS dla Abiworda |
51e13fb3 | 290 | Group: X11/Applications/Editors |
3c4c44c5 | 291 | Requires: %{name} = %{epoch}:%{version}-%{release} |
a4760670 | 292 | Requires: ots >= 0.5.0 |
3c4c44c5 | 293 | |
294 | %description plugin-ots | |
295 | Create document summaries. | |
296 | ||
54c3bfed JR |
297 | %description plugin-ots -l pl.UTF-8 |
298 | Wtyczka ta służy do tworzenia podsumowania dokumentu. | |
3c4c44c5 | 299 | |
3c4c44c5 | 300 | # plugins import - export |
3c4c44c5 | 301 | %package plugin-latex |
302 | Summary: AbiWord LaTeX plugin | |
86960f12 | 303 | Summary(pl.UTF-8): Wtyczka LaTeX dla Abiworda |
51e13fb3 | 304 | Group: X11/Applications/Editors |
3c4c44c5 | 305 | Requires: %{name} = %{epoch}:%{version}-%{release} |
306 | ||
307 | %description plugin-latex | |
308 | LaTeX export. | |
309 | ||
54c3bfed JR |
310 | %description plugin-latex -l pl.UTF-8 |
311 | Wtyczka ta służy do eksportu do LaTeXa. | |
3c4c44c5 | 312 | |
65a28f86 AM |
313 | %package plugin-link-grammar |
314 | Summary: AbiWord Link Grammar plugin | |
86960f12 | 315 | Summary(pl.UTF-8): Wtyczka Gramatyki dla Abiworda |
51e13fb3 | 316 | Group: X11/Applications/Editors |
65a28f86 | 317 | Requires: %{name} = %{epoch}:%{version}-%{release} |
a4760670 | 318 | Requires: link-grammar >= 4.2.1 |
65a28f86 AM |
319 | |
320 | %description plugin-link-grammar | |
321 | AbiWord Link Grammar plugin. | |
322 | ||
54c3bfed | 323 | %description plugin-link-grammar -l pl.UTF-8 |
65a28f86 AM |
324 | Wtyczka Gramatyki dla Abiworda. |
325 | ||
3c4c44c5 | 326 | %package plugin-psion |
327 | Summary: AbiWord Psion plugin | |
86960f12 | 328 | Summary(pl.UTF-8): Wtyczka Psion dla Abiworda |
51e13fb3 | 329 | Group: X11/Applications/Editors |
3c4c44c5 | 330 | Requires: %{name} = %{epoch}:%{version}-%{release} |
a4760670 | 331 | Requires: psiconv >= 0.9.6 |
3c4c44c5 | 332 | |
333 | %description plugin-psion | |
334 | Import/export Psion files. | |
335 | ||
54c3bfed JR |
336 | %description plugin-psion -l pl.UTF-8 |
337 | Wtyczka ta służy do importu/eksportu plików Psiona. | |
3c4c44c5 | 338 | |
3c4c44c5 | 339 | %package plugin-wmf |
340 | Summary: AbiWord WMF plugin | |
86960f12 | 341 | Summary(pl.UTF-8): Wtyczka WMF dla Abiworda |
51e13fb3 | 342 | Group: X11/Applications/Editors |
3c4c44c5 | 343 | Requires: %{name} = %{epoch}:%{version}-%{release} |
a4760670 | 344 | Requires: libwmf >= 2:0.2.8.4 |
3c4c44c5 | 345 | |
346 | %description plugin-wmf | |
347 | View Windows Metafiles. | |
348 | ||
54c3bfed JR |
349 | %description plugin-wmf -l pl.UTF-8 |
350 | Wtyczka ta służy do wyświetlania plików typu Windows Metafile. | |
3c4c44c5 | 351 | |
3c4c44c5 | 352 | %package plugin-wordperfect |
353 | Summary: AbiWord WordPerfect plugin | |
86960f12 | 354 | Summary(pl.UTF-8): Wtyczka WordPerfect dla Abiworda |
51e13fb3 | 355 | Group: X11/Applications/Editors |
3c4c44c5 | 356 | Requires: %{name} = %{epoch}:%{version}-%{release} |
357 | ||
358 | %description plugin-wordperfect | |
359 | Import/export Corel WordPerfect files. | |
360 | ||
54c3bfed JR |
361 | %description plugin-wordperfect -l pl.UTF-8 |
362 | Wtyczka ta służy do importu/eksportu plików w formacie Corel | |
d4b82311 | 363 | WordPerfect. |
3c4c44c5 | 364 | |
a611d325 | 365 | %package clipart |
ee4c9b58 | 366 | Summary: AbiWord Clipart |
86960f12 | 367 | Summary(pl.UTF-8): Cliparty dla AbiWorda |
51e13fb3 | 368 | Group: X11/Applications/Editors |
3c6ec2da | 369 | Requires: %{name} = %{epoch}:%{version}-%{release} |
f740e878 | 370 | |
a611d325 | 371 | %description clipart |
372 | This is the clipart portfolio used by AbiWord. | |
b28f7fb4 | 373 | |
54c3bfed JR |
374 | %description clipart -l pl.UTF-8 |
375 | Jest to teczka clipartów używanych przez AbiWorda. | |
f740e878 | 376 | |
c3f4081b | 377 | %prep |
b4359816 | 378 | %setup -q |
0f3032cf | 379 | %patch0 -p1 |
0cf209bf | 380 | %patch1 -p1 |
988d24be | 381 | %patch2 -p0 |
271985b1 AM |
382 | %patch3 -p1 |
383 | %patch4 -p1 | |
a4760670 JB |
384 | %patch6 -p1 |
385 | %patch7 -p1 | |
ca657490 | 386 | |
c3f4081b | 387 | %build |
a4760670 | 388 | %{__libtoolize} |
b4359816 | 389 | %{__aclocal} -I . |
3c4c44c5 | 390 | %{__autoconf} |
a4760670 JB |
391 | %{__autoheader} |
392 | %{__automake} | |
a611d325 | 393 | %configure \ |
a4760670 | 394 | --disable-silent-rules \ |
cd9e5e60 | 395 | --disable-static \ |
b4359816 | 396 | --enable-clipart \ |
a4760670 | 397 | %{?with_introspection:--enable-introspection} \ |
b4359816 | 398 | --enable-plugins=auto \ |
a4760670 JB |
399 | --enable-templates \ |
400 | --with-champlain%{!?with_champlain:=no} \ | |
401 | --with-evolution-data-server%{!?with_evolution:=no} \ | |
402 | --with-gnomevfs%{!?with_gnomevfs:=no} \ | |
403 | --with-goffice%{!?with_goffice:=no} \ | |
404 | %{?with_gtk2:--with-gtk2} \ | |
405 | --with-redland%{!?with_redland:=no} | |
7ef7e24a | 406 | |
a611d325 | 407 | %{__make} |
408 | ||
c3f4081b | 409 | %install |
410 | rm -rf $RPM_BUILD_ROOT | |
513846f5 | 411 | |
58291f49 | 412 | %{__make} install \ |
988d24be | 413 | DESTDIR=$RPM_BUILD_ROOT |
a611d325 | 414 | |
3c4c44c5 | 415 | # Remove useless files |
a4760670 JB |
416 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/abiword-%{mver}/plugins/*.la |
417 | # obsoleted by pkg-config | |
418 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
419 | ||
420 | %if %{with introspection} | |
421 | %py_postclean | |
422 | %endif | |
a7e0aea6 | 423 | |
c3f4081b | 424 | %clean |
425 | rm -rf $RPM_BUILD_ROOT | |
426 | ||
3c4c44c5 | 427 | %post |
9b2bf80a | 428 | %update_desktop_database_post |
6a7a2dfb | 429 | %update_icon_cache hicolor |
3c4c44c5 | 430 | |
431 | %postun | |
9b2bf80a | 432 | %update_desktop_database_postun |
6a7a2dfb | 433 | %update_icon_cache hicolor |
3c4c44c5 | 434 | |
9e2ecadc | 435 | %files |
c3f4081b | 436 | %defattr(644,root,root,755) |
a4760670 | 437 | %attr(755,root,root) %{_bindir}/abiword |
b4359816 | 438 | %attr(755,root,root) %{_libdir}/libabiword-%{mver}.so |
a4760670 JB |
439 | %if %{with introspection} |
440 | %{_libdir}/girepository-1.0/Abi-%{mver}.typelib | |
441 | %endif | |
07447132 SS |
442 | %dir %{_libdir}/abiword-%{mver} |
443 | %dir %{_libdir}/abiword-%{mver}/plugins | |
2c759294 | 444 | %dir %{_datadir}/abiword-%{mver} |
35318bc6 | 445 | %{_datadir}/abiword-%{mver}/Presentation.xml |
35318bc6 | 446 | %{_datadir}/abiword-%{mver}/readme.abw |
58291f49 | 447 | %{_datadir}/abiword-%{mver}/readme.txt |
58291f49 | 448 | %{_datadir}/abiword-%{mver}/system.profile* |
a4760670 JB |
449 | %{_datadir}/abiword-%{mver}/certs |
450 | %{_datadir}/abiword-%{mver}/mime-info | |
451 | %{_datadir}/abiword-%{mver}/omml_xslt | |
452 | %{_datadir}/abiword-%{mver}/strings | |
58291f49 | 453 | %{_datadir}/abiword-%{mver}/templates |
b4359816 | 454 | %{_datadir}/abiword-%{mver}/ui |
1eb22952 | 455 | %{_datadir}/abiword-%{mver}/xsltml |
a4760670 | 456 | %{_desktopdir}/abiword.desktop |
988d24be | 457 | %{_iconsdir}/hicolor/*/apps/abiword.* |
198ec40e | 458 | %{_mandir}/man1/abiword.1* |
988d24be JR |
459 | %{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.AbiCollab.service |
460 | %{_datadir}/telepathy/clients/AbiCollab.client | |
3c4c44c5 | 461 | |
b4359816 PZ |
462 | # These don't add any additional dependencies so there's no reason to split |
463 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/applix.so | |
464 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/babelfish.so | |
465 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/bmp.so | |
466 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/clarisworks.so | |
467 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/docbook.so | |
468 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/eml.so | |
4cf15153 | 469 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/epub.so |
b4359816 PZ |
470 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/freetranslation.so |
471 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/garble.so | |
472 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/gdict.so | |
473 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/gimp.so | |
474 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/google.so | |
475 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/hancom.so | |
476 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/hrtext.so | |
477 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/iscii.so | |
478 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/kword.so | |
479 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/loadbindings.so | |
480 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/mht.so | |
481 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/mif.so | |
482 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/mswrite.so | |
483 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/opml.so | |
484 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/opendocument.so | |
485 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/openwriter.so | |
486 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/openxml.so | |
487 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/paint.so | |
488 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/passepartout.so | |
489 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/pdb.so | |
490 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/pdf.so | |
491 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/presentation.so | |
492 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/s5.so | |
493 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/sdw.so | |
494 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/t602.so | |
495 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/urldict.so | |
496 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wikipedia.so | |
497 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wml.so | |
4cf15153 | 498 | #%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wpg.so |
b4359816 | 499 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/xslfo.so |
bd2afbe5 | 500 | |
35318bc6 JB |
501 | %files devel |
502 | %defattr(644,root,root,755) | |
503 | %{_includedir}/abiword-%{mver} | |
a4760670 JB |
504 | %if %{with introspection} |
505 | %{_datadir}/gir-1.0/Abi-3.0.gir | |
506 | %endif | |
35318bc6 JB |
507 | %{_pkgconfigdir}/abiword-%{mver}.pc |
508 | ||
a4760670 JB |
509 | %if %{with introspection} |
510 | %files -n python-abiword | |
511 | %defattr(644,root,root,755) | |
512 | %{py_sitedir}/gi/overrides/Abi.py[co] | |
513 | %endif | |
514 | ||
6bca5794 | 515 | %files plugin-aiksaurus |
3c4c44c5 | 516 | %defattr(644,root,root,755) |
b4359816 | 517 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/aiksaurus.so |
988d24be JR |
518 | %attr(755,root,root) %{_libdir}/libAiksaurusGtk3--export-dynamic.so |
519 | %attr(755,root,root) %{_libdir}/libAiksaurusGtk3.so | |
3c4c44c5 | 520 | |
06c8551c SS |
521 | %files plugin-collab |
522 | %defattr(644,root,root,755) | |
b4359816 | 523 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/collab.so |
06c8551c | 524 | |
3c4c44c5 | 525 | %files plugin-command |
526 | %defattr(644,root,root,755) | |
b4359816 | 527 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/command.so |
3c4c44c5 | 528 | |
65a28f86 | 529 | %if %{with gda} |
3c4c44c5 | 530 | %files plugin-gda |
531 | %defattr(644,root,root,755) | |
b4359816 | 532 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/gda.so |
65a28f86 | 533 | %endif |
3c4c44c5 | 534 | |
fecbf0d2 | 535 | %if %{with goffice} |
e4d2027a PZ |
536 | %files plugin-goffice |
537 | %defattr(644,root,root,755) | |
b4359816 | 538 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/goffice.so |
fecbf0d2 | 539 | %endif |
d32717a1 | 540 | |
d32717a1 | 541 | %files plugin-mathview |
3c4c44c5 | 542 | %defattr(644,root,root,755) |
b4359816 | 543 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/mathview.so |
3c4c44c5 | 544 | |
58291f49 | 545 | %if %{with ots} |
3c4c44c5 | 546 | %files plugin-ots |
547 | %defattr(644,root,root,755) | |
b4359816 | 548 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/ots.so |
58291f49 | 549 | %endif |
3c4c44c5 | 550 | |
3c4c44c5 | 551 | %files plugin-latex |
552 | %defattr(644,root,root,755) | |
b4359816 | 553 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/latex.so |
3c4c44c5 | 554 | |
65a28f86 AM |
555 | %files plugin-link-grammar |
556 | %defattr(644,root,root,755) | |
b4359816 | 557 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/grammar.so |
d32717a1 | 558 | |
77a8de10 | 559 | %if %{with psiconv} |
3c4c44c5 | 560 | %files plugin-psion |
561 | %defattr(644,root,root,755) | |
b4359816 | 562 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/psion.so |
77a8de10 | 563 | %endif |
3c4c44c5 | 564 | |
565 | %files plugin-wmf | |
566 | %defattr(644,root,root,755) | |
b4359816 | 567 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wmf.so |
3c4c44c5 | 568 | |
4cf15153 JR |
569 | #%files plugin-wordperfect |
570 | #%defattr(644,root,root,755) | |
571 | #%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wordperfect.so | |
a7e0aea6 | 572 | |
a611d325 | 573 | %files clipart |
574 | %defattr(644,root,root,755) | |
da1031c8 | 575 | %{_datadir}/abiword-%{mver}/clipart |