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