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