]>
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 | |
66b35e7f | 6 | %bcond_without goffice # goffice plugin |
a4760670 JB |
7 | %bcond_with gnomevfs # gnome-vfs support (GTK+ 2.x only) |
8 | %bcond_with gtk2 # GTK+ 2.x instead of 3.x | |
9 | %bcond_without introspection # GObject introspection | |
10 | %bcond_without ots # Open Text Summarizer plugin | |
11 | %bcond_without redland # redland/raptor libraries | |
77a8de10 | 12 | %bcond_with psiconv # psiconv / psion plugin |
66b35e7f | 13 | %bcond_with wordperfect # wordperfect 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 | 71 | BuildRequires: libsoup-devel >= 2.4 |
66b35e7f | 72 | BuildRequires: libstdc++-devel >= 6:4.7 |
a4760670 | 73 | BuildRequires: libtool >= 2:1.5 |
2dbf8c49 | 74 | BuildRequires: libwmf-devel >= 2:0.2.8.4 |
66b35e7f JB |
75 | %{?with_wordperfect:BuildRequires: libwpd-devel >= 0.9.0} |
76 | %{?with_wordperfect:BuildRequires: libwpg-devel >= 0.2.0} | |
77 | %{?with_wordperfect:BuildRequires: libwps-devel >= 0.2.0} | |
9d4ea0ce | 78 | BuildRequires: libxml2-devel >= 1:2.6.26 |
a4760670 | 79 | BuildRequires: libxslt-devel |
66b35e7f | 80 | BuildRequires: link-grammar-devel >= 5.1.0 |
a4760670 | 81 | BuildRequires: loudmouth-devel >= 1.3.2 |
ef3f3840 | 82 | %{?with_ots:BuildRequires: ots-devel >= 0.5.0} |
b4359816 | 83 | BuildRequires: pango-devel |
82f7c507 | 84 | BuildRequires: perl-devel |
a4760670 | 85 | BuildRequires: pkgconfig >= 1:0.9.0 |
3c4c44c5 | 86 | BuildRequires: popt-devel |
77a8de10 | 87 | %{?with_psiconv:BuildRequires: psiconv-devel >= 0.9.6} |
a4760670 JB |
88 | %{?with_introspection:BuildRequires: python >= 2} |
89 | %{?with_introspection:BuildRequires: python-pygobject3 >= 3} | |
90 | %{?with_redland:BuildRequires: rasqal-devel >= 0.9.17} | |
0bcd8c6f | 91 | BuildRequires: readline-devel |
a4760670 JB |
92 | %{?with_redland:BuildRequires: redland-devel >= 1.0.10} |
93 | BuildRequires: rpmbuild(macros) >= 1.219 | |
b0dc3a26 | 94 | BuildRequires: sed >= 4.0 |
a4760670 JB |
95 | BuildRequires: tidy-devel |
96 | BuildRequires: telepathy-glib-devel >= 0.14.5 | |
9d4ea0ce | 97 | BuildRequires: wv-devel >= 1.2.1 |
a4760670 | 98 | BuildRequires: zlib-devel |
6bca5794 | 99 | Requires(post,postun): desktop-file-utils |
a4760670 JB |
100 | Requires: cairo >= 1.10 |
101 | Requires: enchant >= 1.2.6 | |
102 | %{?with_evolution:Requires: evolution-data-server-libs >= 3.6} | |
103 | Requires: fontconfig >= 1:2.3.95 | |
104 | Requires: fribidi >= 0.10.4 | |
105 | Requires: glib2 >= 1:2.12.1 | |
106 | %if %{with gtk2} | |
107 | Requires: gtk+2 >= 2:2.12.0 | |
108 | %else | |
109 | Requires: gtk+3 >= 3.0.8 | |
110 | %endif | |
111 | %{?with_champlain:Requires: libchamplain >= 0.12} | |
112 | Requires: libgcrypt >= 1.4.5 | |
113 | %{?with_goffice:Requires: libgoffice >= 0.10.2} | |
114 | Requires: libgsf >= 1.14.18 | |
115 | Requires: libical >= 0.46 | |
116 | Requires: librsvg >= 1:2.16.0 | |
117 | Requires: libxml2 >= 1:2.6.26 | |
118 | %{?with_redland:Requires: rasqal >= 0.9.17} | |
119 | %{?with_redland:Requires: redland >= 1.0.10} | |
120 | Requires: wv >= 1.2.1 | |
a3d1fb9e JB |
121 | Obsoletes: abiword-plugin-applix < 1:2.8 |
122 | Obsoletes: abiword-plugin-babelfish < 1:2.8 | |
123 | Obsoletes: abiword-plugin-bmp < 1:2.8 | |
124 | Obsoletes: abiword-plugin-bz2 < 1:2.8 | |
125 | Obsoletes: abiword-plugin-capi < 1:2.8 | |
126 | Obsoletes: abiword-plugin-clarisworks < 1:2.8 | |
127 | Obsoletes: abiword-plugin-coquille < 1:2.4 | |
128 | Obsoletes: abiword-plugin-dash < 1:2.8 | |
129 | Obsoletes: abiword-plugin-docbook < 1:2.8 | |
130 | Obsoletes: abiword-plugin-eml < 1:2.8 | |
131 | Obsoletes: abiword-plugin-freetranslation < 1:2.8 | |
132 | %{!?with_gda:Obsoletes: abiword-plugin-gda < %{epoch}:%{version}-%{release}} | |
133 | Obsoletes: abiword-plugin-gdict < 1:2.8 | |
134 | Obsoletes: abiword-plugin-gdkpixbuf < 1:2.2 | |
135 | Obsoletes: abiword-plugin-gimp < 1:2.8 | |
136 | %{!?with_goffice:Obsoletes: abiword-plugin-goffice < %{epoch}:%{version}-%{release}} | |
137 | Obsoletes: abiword-plugin-google < 1:2.8 | |
138 | Obsoletes: abiword-plugin-gypsython < 1:2.4 | |
139 | Obsoletes: abiword-plugin-hancom < 1:2.8 | |
140 | Obsoletes: abiword-plugin-hrtext < 1:2.8 | |
141 | Obsoletes: abiword-plugin-iscii < 1:2.8 | |
142 | Obsoletes: abiword-plugin-jpeg < 1:2.8 | |
143 | Obsoletes: abiword-plugin-kword < 1:2.8 | |
144 | Obsoletes: abiword-plugin-magick < 1:2.2 | |
145 | Obsoletes: abiword-plugin-mif < 1:2.8 | |
146 | Obsoletes: abiword-plugin-mswrite < 1:2.8 | |
147 | Obsoletes: abiword-plugin-nroff < 1:2.8 | |
148 | Obsoletes: abiword-plugin-opendocument < 1:2.8 | |
149 | Obsoletes: abiword-plugin-openwritter < 1:2.8 | |
150 | Obsoletes: abiword-plugin-palmdoc < 1:2.8 | |
151 | Obsoletes: abiword-plugin-passepartout < 1:2.8 | |
152 | Obsoletes: abiword-plugin-pdf < 1:2.8 | |
153 | %{!?with_psiconv:Obsoletes: abiword-plugin-psion < %{epoch}:%{version}-%{release}} | |
154 | Obsoletes: abiword-plugin-referee < 1:2.4 | |
155 | Obsoletes: abiword-plugin-rsvg < 1:2.8 | |
156 | Obsoletes: abiword-plugin-scripthappy < 1:2.8 | |
157 | Obsoletes: abiword-plugin-sdw < 1:2.8 | |
158 | Obsoletes: abiword-plugin-t602 < 1:2.8 | |
159 | Obsoletes: abiword-plugin-urldict < 1:2.8 | |
160 | Obsoletes: abiword-plugin-wikipedia < 1:2.8 | |
161 | %{!?with_wordperfect:Obsoletes: abiword-plugin-wordperfect < %{epoch}:%{version}-%{release}} | |
162 | Obsoletes: abiword-plugin-wml < 1:2.8 | |
163 | Obsoletes: abiword-plugin-xhtml < 1:2.8 | |
164 | Obsoletes: abiword-plugin-xslfo < 1:2.8 | |
165 | Obsoletes: abiword-plugins-impexp < 1:2.2 | |
166 | Obsoletes: abiword-plugins-tools < 1:2.2 | |
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} |
66b35e7f | 318 | Requires: link-grammar >= 5.1.0 |
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 |
a4760670 JB |
382 | %patch6 -p1 |
383 | %patch7 -p1 | |
ca657490 | 384 | |
c3f4081b | 385 | %build |
a4760670 | 386 | %{__libtoolize} |
b4359816 | 387 | %{__aclocal} -I . |
3c4c44c5 | 388 | %{__autoconf} |
a4760670 JB |
389 | %{__autoheader} |
390 | %{__automake} | |
a611d325 | 391 | %configure \ |
a4760670 | 392 | --disable-silent-rules \ |
cd9e5e60 | 393 | --disable-static \ |
b4359816 | 394 | --enable-clipart \ |
a4760670 | 395 | %{?with_introspection:--enable-introspection} \ |
b4359816 | 396 | --enable-plugins=auto \ |
a4760670 JB |
397 | --enable-templates \ |
398 | --with-champlain%{!?with_champlain:=no} \ | |
399 | --with-evolution-data-server%{!?with_evolution:=no} \ | |
400 | --with-gnomevfs%{!?with_gnomevfs:=no} \ | |
401 | --with-goffice%{!?with_goffice:=no} \ | |
402 | %{?with_gtk2:--with-gtk2} \ | |
403 | --with-redland%{!?with_redland:=no} | |
7ef7e24a | 404 | |
a611d325 | 405 | %{__make} |
406 | ||
c3f4081b | 407 | %install |
408 | rm -rf $RPM_BUILD_ROOT | |
513846f5 | 409 | |
58291f49 | 410 | %{__make} install \ |
988d24be | 411 | DESTDIR=$RPM_BUILD_ROOT |
a611d325 | 412 | |
3c4c44c5 | 413 | # Remove useless files |
a4760670 JB |
414 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/abiword-%{mver}/plugins/*.la |
415 | # obsoleted by pkg-config | |
416 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
417 | ||
418 | %if %{with introspection} | |
419 | %py_postclean | |
420 | %endif | |
a7e0aea6 | 421 | |
c3f4081b | 422 | %clean |
423 | rm -rf $RPM_BUILD_ROOT | |
424 | ||
3c4c44c5 | 425 | %post |
9b2bf80a | 426 | %update_desktop_database_post |
6a7a2dfb | 427 | %update_icon_cache hicolor |
3c4c44c5 | 428 | |
429 | %postun | |
9b2bf80a | 430 | %update_desktop_database_postun |
6a7a2dfb | 431 | %update_icon_cache hicolor |
3c4c44c5 | 432 | |
9e2ecadc | 433 | %files |
c3f4081b | 434 | %defattr(644,root,root,755) |
a4760670 | 435 | %attr(755,root,root) %{_bindir}/abiword |
b4359816 | 436 | %attr(755,root,root) %{_libdir}/libabiword-%{mver}.so |
a4760670 JB |
437 | %if %{with introspection} |
438 | %{_libdir}/girepository-1.0/Abi-%{mver}.typelib | |
439 | %endif | |
07447132 SS |
440 | %dir %{_libdir}/abiword-%{mver} |
441 | %dir %{_libdir}/abiword-%{mver}/plugins | |
2c759294 | 442 | %dir %{_datadir}/abiword-%{mver} |
35318bc6 | 443 | %{_datadir}/abiword-%{mver}/Presentation.xml |
35318bc6 | 444 | %{_datadir}/abiword-%{mver}/readme.abw |
58291f49 | 445 | %{_datadir}/abiword-%{mver}/readme.txt |
58291f49 | 446 | %{_datadir}/abiword-%{mver}/system.profile* |
a4760670 JB |
447 | %{_datadir}/abiword-%{mver}/certs |
448 | %{_datadir}/abiword-%{mver}/mime-info | |
449 | %{_datadir}/abiword-%{mver}/omml_xslt | |
450 | %{_datadir}/abiword-%{mver}/strings | |
58291f49 | 451 | %{_datadir}/abiword-%{mver}/templates |
b4359816 | 452 | %{_datadir}/abiword-%{mver}/ui |
1eb22952 | 453 | %{_datadir}/abiword-%{mver}/xsltml |
3fd2f1d1 JB |
454 | %{_datadir}/appdata/abiword.appdata.xml |
455 | %{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.AbiCollab.service | |
a4760670 | 456 | %{_desktopdir}/abiword.desktop |
988d24be | 457 | %{_iconsdir}/hicolor/*/apps/abiword.* |
198ec40e | 458 | %{_mandir}/man1/abiword.1* |
988d24be | 459 | %{_datadir}/telepathy/clients/AbiCollab.client |
3c4c44c5 | 460 | |
b4359816 PZ |
461 | # These don't add any additional dependencies so there's no reason to split |
462 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/applix.so | |
463 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/babelfish.so | |
464 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/bmp.so | |
465 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/clarisworks.so | |
466 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/docbook.so | |
467 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/eml.so | |
4cf15153 | 468 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/epub.so |
b4359816 PZ |
469 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/freetranslation.so |
470 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/garble.so | |
471 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/gdict.so | |
472 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/gimp.so | |
473 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/google.so | |
474 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/hancom.so | |
475 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/hrtext.so | |
476 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/iscii.so | |
477 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/kword.so | |
478 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/loadbindings.so | |
479 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/mht.so | |
480 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/mif.so | |
481 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/mswrite.so | |
482 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/opml.so | |
483 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/opendocument.so | |
484 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/openwriter.so | |
485 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/openxml.so | |
486 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/paint.so | |
487 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/passepartout.so | |
488 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/pdb.so | |
489 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/pdf.so | |
490 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/presentation.so | |
491 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/s5.so | |
492 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/sdw.so | |
493 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/t602.so | |
494 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/urldict.so | |
495 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wikipedia.so | |
496 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wml.so | |
b4359816 | 497 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/xslfo.so |
bd2afbe5 | 498 | |
35318bc6 JB |
499 | %files devel |
500 | %defattr(644,root,root,755) | |
501 | %{_includedir}/abiword-%{mver} | |
a4760670 JB |
502 | %if %{with introspection} |
503 | %{_datadir}/gir-1.0/Abi-3.0.gir | |
504 | %endif | |
35318bc6 JB |
505 | %{_pkgconfigdir}/abiword-%{mver}.pc |
506 | ||
a4760670 JB |
507 | %if %{with introspection} |
508 | %files -n python-abiword | |
509 | %defattr(644,root,root,755) | |
510 | %{py_sitedir}/gi/overrides/Abi.py[co] | |
511 | %endif | |
512 | ||
6bca5794 | 513 | %files plugin-aiksaurus |
3c4c44c5 | 514 | %defattr(644,root,root,755) |
b4359816 | 515 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/aiksaurus.so |
988d24be JR |
516 | %attr(755,root,root) %{_libdir}/libAiksaurusGtk3--export-dynamic.so |
517 | %attr(755,root,root) %{_libdir}/libAiksaurusGtk3.so | |
3c4c44c5 | 518 | |
06c8551c SS |
519 | %files plugin-collab |
520 | %defattr(644,root,root,755) | |
b4359816 | 521 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/collab.so |
06c8551c | 522 | |
3c4c44c5 | 523 | %files plugin-command |
524 | %defattr(644,root,root,755) | |
b4359816 | 525 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/command.so |
3c4c44c5 | 526 | |
65a28f86 | 527 | %if %{with gda} |
3c4c44c5 | 528 | %files plugin-gda |
529 | %defattr(644,root,root,755) | |
b4359816 | 530 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/gda.so |
65a28f86 | 531 | %endif |
3c4c44c5 | 532 | |
fecbf0d2 | 533 | %if %{with goffice} |
e4d2027a PZ |
534 | %files plugin-goffice |
535 | %defattr(644,root,root,755) | |
b4359816 | 536 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/goffice.so |
fecbf0d2 | 537 | %endif |
d32717a1 | 538 | |
d32717a1 | 539 | %files plugin-mathview |
3c4c44c5 | 540 | %defattr(644,root,root,755) |
b4359816 | 541 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/mathview.so |
3c4c44c5 | 542 | |
58291f49 | 543 | %if %{with ots} |
3c4c44c5 | 544 | %files plugin-ots |
545 | %defattr(644,root,root,755) | |
b4359816 | 546 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/ots.so |
58291f49 | 547 | %endif |
3c4c44c5 | 548 | |
3c4c44c5 | 549 | %files plugin-latex |
550 | %defattr(644,root,root,755) | |
b4359816 | 551 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/latex.so |
3c4c44c5 | 552 | |
65a28f86 AM |
553 | %files plugin-link-grammar |
554 | %defattr(644,root,root,755) | |
b4359816 | 555 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/grammar.so |
d32717a1 | 556 | |
77a8de10 | 557 | %if %{with psiconv} |
3c4c44c5 | 558 | %files plugin-psion |
559 | %defattr(644,root,root,755) | |
b4359816 | 560 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/psion.so |
77a8de10 | 561 | %endif |
3c4c44c5 | 562 | |
563 | %files plugin-wmf | |
564 | %defattr(644,root,root,755) | |
b4359816 | 565 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wmf.so |
3c4c44c5 | 566 | |
66b35e7f JB |
567 | %if %{with wordperfect} |
568 | %files plugin-wordperfect | |
569 | %defattr(644,root,root,755) | |
570 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wordperfect.so | |
571 | %attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wpg.so | |
572 | %endif | |
a7e0aea6 | 573 | |
a611d325 | 574 | %files clipart |
575 | %defattr(644,root,root,755) | |
da1031c8 | 576 | %{_datadir}/abiword-%{mver}/clipart |