1 |
# download path contains version without the last (fourth) digit |
2 |
%define libo_version 4.2.4 |
3 |
# Should contain .alphaX / .betaX, if this is pre-release (actually |
4 |
# pre-RC) version. The pre-release string is part of tarball file names, |
5 |
# so we need a way to define it easily at one place. |
6 |
%define libo_prerelease %nil |
7 |
%define vendoroption --with-vendor="Mageia" |
8 |
# rhbz#465664 jar-repacking breaks help by reordering META-INF/MANIFEST.MF |
9 |
%define __jar_repack %{nil} |
10 |
%define Werror_cflags %nil |
11 |
# make it easier to download sources from pre-release site |
12 |
%define source_url http://dev-builds.libreoffice.org/pre-releases/src |
13 |
#define source_url http://download.documentfoundation.org/libreoffice/src/%libo_version |
14 |
# URL for external projects' tarballs |
15 |
%define external_url http://dev-www.libreoffice.org/src/ |
16 |
|
17 |
# get english only and no-langpacks for a faster smoketest build |
18 |
%bcond_without langpacks |
19 |
|
20 |
%define system_boost 1 |
21 |
|
22 |
# generated by %%langpack definitions |
23 |
%global langpack_langs %{nil} |
24 |
|
25 |
%global build_gtk3 1 |
26 |
%global build_kde 0 |
27 |
|
28 |
%define with_mergedlibs 0 |
29 |
%define _requires_exceptions libjawt.so\\|libmyspell.so\\|libstlport_gcc.so\\|libmono.so\\|mono\\|devel(libstlport_gcc)\\|libxmlreader.so\\|libcomphelp4gcc3.so\\|devel(libreglo)\\|devel(libxmlreaderlo)\\|devel(libreglo(64bit))\\|devel(libxmlreaderlo(64bit))\\|devel(libunoidllo)\\|devel(libunoidllo(64bit)) |
30 |
|
31 |
%define _provides_exceptions libsndfile.so\\|libportaudio.so\\|libdb-4.2.so\\|libdb_java-4.2.so\\|libmyspell.so\\|libstlport_gcc.so\\|librdf.so.0\\|libraptor.so.1\\|libxmlsec1-nss.so.1\\|libxmlsec1.so.1 |
32 |
|
33 |
%define _enable_debug_packages 0 |
34 |
|
35 |
Name: libreoffice |
36 |
Version: %{libo_version}.1 |
37 |
Release: %mkrel 1%{?libo_prerelease} |
38 |
Summary: Free Software Productivity Suite |
39 |
License: (MPLv1.1 or LGPLv3+) and LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and Public Domain and ASL 2.0 and Artistic and MPLv2.0 |
40 |
Group: Office/Suite |
41 |
URL: http://www.libreoffice.org/default/ |
42 |
|
43 |
Source0: %{source_url}/libreoffice-%{version}%{?libo_prerelease}.tar.xz |
44 |
Source1: %{source_url}/libreoffice-help-%{version}%{?libo_prerelease}.tar.xz |
45 |
Source2: %{source_url}/libreoffice-translations-%{version}%{?libo_prerelease}.tar.xz |
46 |
Source3: http://dev-www.libreoffice.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll |
47 |
Source4: libreoffice-multiliblauncher.sh |
48 |
Source5: %{external_url}/0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz |
49 |
Source6: %{external_url}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip |
50 |
Source7: %{external_url}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz |
51 |
Source8: %{external_url}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip |
52 |
Source9: %{external_url}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip |
53 |
#Unfortunately later versions of hsqldb changed the file format, so if we use a later version we loose |
54 |
#backwards compatability. |
55 |
Source10: %{external_url}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip |
56 |
Source28: %{external_url}/f02578f5218f217a9f20e9c30e119c6a-boost_1_44_0.tar.bz2 |
57 |
|
58 |
# build tools |
59 |
BuildRequires: autoconf |
60 |
BuildRequires: automake |
61 |
BuildRequires: bc |
62 |
BuildRequires: binutils |
63 |
BuildRequires: bison |
64 |
BuildRequires: desktop-file-utils |
65 |
BuildRequires: doxygen |
66 |
BuildRequires: findutils |
67 |
BuildRequires: flex |
68 |
BuildRequires: gcc-c++ |
69 |
BuildRequires: git |
70 |
BuildRequires: gperf |
71 |
BuildRequires: icu |
72 |
BuildRequires: make |
73 |
BuildRequires: perl(Archive::Zip) |
74 |
BuildRequires: perl(Digest::MD5) |
75 |
# (tv) for xmllint: |
76 |
BuildRequires: libxml2-utils |
77 |
BuildRequires: zip |
78 |
|
79 |
# libs / headers |
80 |
BuildRequires: pkgconfig(gconf-2.0) |
81 |
BuildRequires: pkgconfig(bluez) |
82 |
%if 0%{?system_boost} |
83 |
BuildRequires: boost-devel |
84 |
%endif |
85 |
BuildRequires: pkgconfig(libclucene-core) |
86 |
BuildRequires: pkgconfig(cppunit) |
87 |
BuildRequires: cups-devel |
88 |
BuildRequires: pkgconfig(dbus-glib-1) |
89 |
BuildRequires: pkgconfig(evolution-data-server-1.2) |
90 |
BuildRequires: pkgconfig(expat) |
91 |
BuildRequires: firebird-devel |
92 |
BuildRequires: firebird-server-common |
93 |
BuildRequires: fontpackages-devel |
94 |
BuildRequires: pkgconfig(freetype2) |
95 |
BuildRequires: pkgconfig(graphite2) |
96 |
BuildRequires: pkgconfig(gstreamer-1.0) |
97 |
%if %{build_gtk3} |
98 |
BuildRequires: gtk+3-devel |
99 |
%endif |
100 |
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0) |
101 |
BuildRequires: pkgconfig(harfbuzz) |
102 |
BuildRequires: pkgconfig(gtk+-2.0) |
103 |
BuildRequires: pkgconfig(hunspell) |
104 |
BuildRequires: hyphen-devel |
105 |
%if %{build_kde} |
106 |
BuildRequires: kdelibs4-devel |
107 |
%endif |
108 |
BuildRequires: pkgconfig(glu) |
109 |
BuildRequires: pkgconfig(ice) |
110 |
BuildRequires: pkgconfig(xext) |
111 |
BuildRequires: pkgconfig(xt) |
112 |
BuildRequires: pkgconfig(libcdr-0.0) |
113 |
BuildRequires: pkgconfig(libabw-0.0) |
114 |
BuildRequires: pkgconfig(libcmis-0.4) |
115 |
BuildRequires: pkgconfig(libe-book-0.0) |
116 |
BuildRequires: pkgconfig(libeot) |
117 |
BuildRequires: pkgconfig(libetonyek-0.0) |
118 |
BuildRequires: pkgconfig(libfreehand-0.0) |
119 |
BuildRequires: pkgconfig(libmwaw-0.2) |
120 |
BuildRequires: pkgconfig(libodfgen-0.0) |
121 |
BuildRequires: pkgconfig(mdds) |
122 |
BuildRequires: pkgconfig(libcurl) |
123 |
BuildRequires: pkgconfig(libexttextcat) |
124 |
BuildRequires: pkgconfig(icu-lx) |
125 |
BuildRequires: pkgconfig(libidn) |
126 |
BuildRequires: libjpeg-devel |
127 |
BuildRequires: pkgconfig(liblangtag) |
128 |
BuildRequires: pkgconfig(libmspub-0.0) |
129 |
BuildRequires: pkgconfig(liborcus-0.6) |
130 |
BuildRequires: pkgconfig(libvisio-0.0) |
131 |
BuildRequires: pkgconfig(libwpd-0.9) |
132 |
BuildRequires: pkgconfig(libwpg-0.2) |
133 |
BuildRequires: pkgconfig(libwps-0.2) |
134 |
BuildRequires: pkgconfig(libxml-2.0) |
135 |
BuildRequires: pkgconfig(libxslt) |
136 |
BuildRequires: lpsolve-devel |
137 |
BuildRequires: pkgconfig(mythes) |
138 |
BuildRequires: pkgconfig(neon) |
139 |
BuildRequires: pkgconfig(nss) |
140 |
BuildRequires: openldap-devel |
141 |
BuildRequires: pam-devel |
142 |
BuildRequires: pkgconfig(poppler-cpp) |
143 |
BuildRequires: pkgconfig(poppler) |
144 |
BuildRequires: pkgconfig(python3) |
145 |
BuildRequires: pkgconfig(redland) |
146 |
BuildRequires: rsync |
147 |
BuildRequires: pkgconfig(sane-backends) |
148 |
BuildRequires: unixODBC-devel |
149 |
BuildRequires: vigra-devel |
150 |
BuildRequires: pkgconfig(zlib) |
151 |
|
152 |
# java stuff |
153 |
BuildRequires: ant |
154 |
BuildRequires: ant-apache-regexp |
155 |
BuildRequires: apache-commons-codec |
156 |
BuildRequires: apache-commons-lang |
157 |
BuildRequires: bsh |
158 |
BuildRequires: hsqldb |
159 |
BuildRequires: java-devel |
160 |
BuildRequires: jakarta-commons-httpclient |
161 |
BuildRequires: junit |
162 |
BuildRequires: pentaho-reporting-flow-engine |
163 |
BuildRequires: postgresql-devel |
164 |
|
165 |
# fonts needed for unit tests |
166 |
BuildRequires: fonts-ttf-liberation |
167 |
|
168 |
# libreoffice metapackage requires all of the programs |
169 |
Requires: %{name}-base = %{version} |
170 |
Requires: %{name}-calc = %{version} |
171 |
Requires: %{name}-draw = %{version} |
172 |
Requires: %{name}-impress = %{version} |
173 |
Requires: %{name}-math = %{version} |
174 |
Suggests: %{name}-pdfimport |
175 |
Requires: %{name}-writer = %{version} |
176 |
Provides: openoffice.org = 1:%{version}-%{release} |
177 |
|
178 |
# Fedora patches |
179 |
Patch1: openoffice.org-2.0.2.rh188467.printingdefaults.patch |
180 |
Patch2: openoffice.org-2.4.0.ooo86080.unopkg.bodge.patch |
181 |
Patch3: openoffice.org-3.0.0.ooo88341.sc.verticalboxes.patch |
182 |
Patch4: openoffice.org-3.1.0.oooXXXXX.solenv.allowmissing.patch |
183 |
Patch5: openoffice.org-3.1.0.ooo101274.opening-a-directory.patch |
184 |
Patch6: libreoffice-installfix.patch |
185 |
# patches 7-11 are RHEL specific @RH/FC |
186 |
Patch12: 0001-Related-rhbz-1032774-bodge-around-reported-NULL-valu.patch |
187 |
Patch13: 0001-Resolves-rhbz-1035092-no-shortcut-key-for-Italian-To.patch |
188 |
Patch14: 0001-Resolves-rhbz-912529-Kerkis-SmallCaps-shown-instead-.patch |
189 |
Patch15: 0001-disable-firebird-unit-test.patch |
190 |
Patch16: 0001-never-run-autogen.sh.patch |
191 |
Patch17: 0001-Related-rhbz-1065807-rework-i66157-for-multiple-writ.patch |
192 |
Patch18: 0001-Resolves-rhbz-1065807-use-xdg-Templates-for-default-.patch |
193 |
Patch19: 0001-rhbz-1057977-avoid-use-of-invalidated-pointers.patch |
194 |
Patch20: 0001-KDE-don-t-throw-on-TemplatePathVariable.patch |
195 |
Patch21: 0001-Wizards-should-look-for-templates-in-Template_intern.patch |
196 |
Patch22: 0001-actively-search-for-wizards-dir-in-all-internal-temp.patch |
197 |
Patch23: 0001-Change-SDK-javaodc-from-static-Package-to-dynamic-Ge.patch |
198 |
Patch24: 0001-Package-GeneratedPackage-fixup.patch |
199 |
Patch25: 0001-Related-rhbz-1075951-abrt-crash-in-MSWordExportBase-.patch |
200 |
Patch26: 0001-drop-OnlyShowIn-from-.desktop-files.patch |
201 |
Patch27: 0001-Resolves-rhbz-1081176-don-t-jump-to-cursor-pos-when.patch |
202 |
Patch28: 0001-prevent-KDE-Qt-from-interfering-with-the-session-man.patch |
203 |
Patch29: 0001-Resolves-fdo-36815-enable-printing-WYSIWYG-sidewindo.patch |
204 |
Patch30: 0001-Related-fdo-36815-print-the-text-highlight-range-as-.patch |
205 |
Patch31: 0001-Resolves-rhbz-1086714-overlarge-pixmap.patch |
206 |
Patch32: 0001-every-even-numbered-print-job-is-reported-as-failed.patch |
207 |
Patch33: 0001-Related-rhbz-1088625-PresenterPaintManager-seen-as-N.patch |
208 |
Patch34: 0001-table-not-resizing-when-rows-columns-added-to-it.patch |
209 |
Patch35: 0001-Fix-fdo-71423-crash-while-editing-Impress-tables.patch |
210 |
Patch36: 0001-Resolves-rhbz-1089377-crash-on-loading-a-specific-rt.patch |
211 |
Patch37: 0001-add-a-format-all-comments-feature.patch |
212 |
Patch38: 0001-Resolves-fdo-37130-use-10pt-Default-style-font-for-c.patch |
213 |
Patch39: 0001-Related-fdo-36815-center-scaled-comment-page-vertica.patch |
214 |
Patch40: 0001-crash-in-selecting-text-in-comments-midway-in-para.patch |
215 |
Patch41: 0001-Resolves-fdo-60040-crash-after-undoing-master-page-a.patch |
216 |
Patch42: 0001-Related-rhbz-1032774-slide-restarter-should-disable-.patch |
217 |
Patch43: 0001-add-X-TryExec-entries-to-desktop-files.patch |
218 |
|
219 |
#Mageia Patch |
220 |
# fix build with icu-5.3: |
221 |
Patch100: icu-53.patch |
222 |
|
223 |
%define instdir %{_libdir} |
224 |
%define baseinstdir %{instdir}/libreoffice |
225 |
%define ureinstdir %{baseinstdir}/ure |
226 |
%define sdkinstdir %{baseinstdir}/sdk |
227 |
%define fontname opensymbol |
228 |
|
229 |
%description |
230 |
LibreOffice is an Open Source, community-developed, office productivity suite. |
231 |
It includes the key desktop applications, such as a word processor, |
232 |
spreadsheet, presentation manager, formula editor and drawing program, with a |
233 |
user interface and feature set similar to other office suites. Sophisticated |
234 |
and flexible, LibreOffice also works transparently with a variety of file |
235 |
formats, including Microsoft Office File Formats. |
236 |
|
237 |
|
238 |
%package filters |
239 |
Summary: All import / export filters |
240 |
Group: Office/Utilities |
241 |
Requires: %{name}-calc = %{version}-%{release} |
242 |
Requires: %{name}-core = %{version}-%{release} |
243 |
Requires: %{name}-draw = %{version}-%{release} |
244 |
Requires: %{name}-graphicfilter = %{version}-%{release} |
245 |
Requires: %{name}-impress = %{version}-%{release} |
246 |
Requires: %{name}-math = %{version}-%{release} |
247 |
Requires: %{name}-ure = %{version}-%{release} |
248 |
Requires: %{name}-writer = %{version}-%{release} |
249 |
Requires: %{name}-xsltfilter = %{version}-%{release} |
250 |
|
251 |
%description filters |
252 |
Metapackage to pull in all subpackages that contain import or export |
253 |
filters. |
254 |
|
255 |
%package core |
256 |
Summary: Core modules for LibreOffice |
257 |
Group: Office/Utilities |
258 |
Requires: %{name}-%{fontname}-fonts = %{version}-%{release} |
259 |
Requires: %{name}-ure = %{version}-%{release} |
260 |
Requires: fonts-ttf-liberation |
261 |
Requires: fonts-ttf-dejavu |
262 |
Requires: google-crosextra-caladea-fonts, google-crosextra-carlito-fonts |
263 |
Requires: hunspell |
264 |
Requires: hyphen >= 2.4 |
265 |
Suggests: hyphen-en |
266 |
Suggests: autocorr-en |
267 |
Suggests: hunspell-en |
268 |
Requires: libexttextcat |
269 |
Requires: %name-langpack = %version-%release |
270 |
Provides: openoffice.org-core = 1:%version-%release |
271 |
Provides: openoffice.org-common = 1:%version-%release |
272 |
Provides: openoffice.org-filter-binfilter = 1:%version-%release |
273 |
Provides: openoffice.org-help-en_US = 1:%version-%release |
274 |
Provides: openoffice.org-help-en_GB = 1:%version-%release |
275 |
Obsoletes: libreoffice-langpack-ms < 1:3.3.99.1 |
276 |
Obsoletes: libreoffice-langpack-ur < 1:3.3.99.1 |
277 |
Provides: libreoffice-style-tango = %{version}-%{release} |
278 |
Provides: libreoffice-style-oxygen = %{version}-%{release} |
279 |
Conflicts: %name-ure < 3.3.2.2-7 |
280 |
Obsoletes: libreoffice-binfilter < 4.0.0.0 |
281 |
Obsoletes: libreoffice-javafilter < 4.1.0.0 |
282 |
Obsoletes: autocorr-eu < 1:4.0.1.2 |
283 |
Obsoletes: libreoffice-testtools < 3.4.99.1 |
284 |
Conflicts: %name-gdb-debug-support < 3.6.0-0.beta2.1 |
285 |
|
286 |
%description core |
287 |
The shared core libraries and support files for LibreOffice. |
288 |
|
289 |
|
290 |
%package pyuno |
291 |
Summary: Python support for LibreOffice |
292 |
Group: Development/Python |
293 |
Requires: %{name}-core = %{version}-%{release} |
294 |
Requires: %{name}-ure = %{version}-%{release} |
295 |
Requires: python3 |
296 |
Requires(pre): %{name}-core |
297 |
Requires(post): %{name}-core |
298 |
Requires(preun): %{name}-core |
299 |
Requires(postun): %{name}-core |
300 |
Provides: openoffice.org-pyuno = 1:%version-%release |
301 |
Conflicts: libreoffice-core < %version |
302 |
|
303 |
%description pyuno |
304 |
Python bindings for the LibreOffice UNO component model. Allows scripts both |
305 |
external to LibreOffice and within the internal LibreOffice scripting framework |
306 |
to be written in python. |
307 |
|
308 |
|
309 |
%package base |
310 |
Summary: Database front-end for LibreOffice |
311 |
Group: Databases |
312 |
Requires: postgresql-jdbc |
313 |
Requires: %{name}-ure = %{version}-%{release} |
314 |
Requires: %{name}-core = %{version}-%{release} |
315 |
Requires: %{name}-calc = %{version}-%{release} |
316 |
Suggests: %{name}-java-common = %{version}-%release |
317 |
Obsoletes: %{name}-report-builder < 1:4.1.0.0 |
318 |
Provides: openoffice.org-base = 1:%version-%release |
319 |
Provides: openoffice.org-style = 1:%version-%release |
320 |
Provides: openoffice.org-style-crystal = 1:%version-%release |
321 |
Provides: openoffice.org-style-oxygen = 1:%version-%release |
322 |
|
323 |
%description base |
324 |
GUI database front-end for LibreOffice. Allows creation and management of |
325 |
databases through a GUI. |
326 |
|
327 |
|
328 |
%package report-builder |
329 |
Summary: Create database reports from LibreOffice |
330 |
Group: Databases |
331 |
Requires: pentaho-reporting-flow-engine |
332 |
Requires: %{name}-base = %{version}-%{release} |
333 |
Requires(pre): %{name}-core |
334 |
Requires(post): %{name}-core |
335 |
Requires(preun): %{name}-core |
336 |
Requires(postun): %{name}-core |
337 |
|
338 |
%description report-builder |
339 |
Creates database reports from LibreOffice databases. The report builder can |
340 |
define group and page headers as well as group, page footers and calculation |
341 |
fields to accomplish complex database reports. |
342 |
|
343 |
|
344 |
%package bsh |
345 |
Summary: BeanShell support for LibreOffice |
346 |
Group: Development/Java |
347 |
Requires: bsh |
348 |
Requires: %{name}-core = %{version}-%{release} |
349 |
Requires(pre): %{name}-core |
350 |
Requires(post): %{name}-core |
351 |
Requires(preun): %{name}-core |
352 |
Requires(postun): %{name}-core |
353 |
Provides: openoffice.org-bsh < 1:%version-%release |
354 |
|
355 |
%description bsh |
356 |
Support BeanShell scripts in LibreOffice. |
357 |
|
358 |
|
359 |
%package rhino |
360 |
Summary: JavaScript support for LibreOffice |
361 |
Group: Development/Java |
362 |
Requires: %{name}-core = %{version}-%{release} |
363 |
Requires(pre): %{name}-core |
364 |
Requires(post): %{name}-core |
365 |
Requires(preun): %{name}-core |
366 |
Requires(postun): %{name}-core |
367 |
|
368 |
|
369 |
%description rhino |
370 |
Support JavaScript scripts in LibreOffice. |
371 |
|
372 |
|
373 |
%package wiki-publisher |
374 |
Summary: Create Wiki articles on MediaWiki servers with LibreOffice |
375 |
Group: Office/Utilities |
376 |
Requires: apache-commons-codec, jakarta-commons-httpclient |
377 |
Requires: apache-commons-lang, apache-commons-logging |
378 |
Requires: %{name}-writer = %{version}-%{release} |
379 |
Requires(pre): %{name}-core |
380 |
Requires(post): %{name}-core |
381 |
Requires(preun): %{name}-core |
382 |
Requires(postun): %{name}-core |
383 |
|
384 |
%description wiki-publisher |
385 |
The Wiki Publisher enables you to create Wiki articles on MediaWiki servers |
386 |
without having to know the syntax of the MediaWiki markup language. Publish |
387 |
your new and existing documents transparently with writer to a wiki page. |
388 |
|
389 |
%package nlpsolver |
390 |
Summary: Non-linear solver engine for LibreOffice Calc |
391 |
Group: Office/Utilities |
392 |
Requires: %{name}-calc = %{version}-%{release} |
393 |
Requires(pre): %{name}-core |
394 |
Requires(post): %{name}-core |
395 |
Requires(preun): %{name}-core |
396 |
Requires(postun): %{name}-core |
397 |
|
398 |
%description nlpsolver |
399 |
A non-linear solver engine for Calc as an alternative to the default linear |
400 |
programming model when more complex, nonlinear programming is required. |
401 |
|
402 |
%package ogltrans |
403 |
Summary: 3D OpenGL slide transitions for LibreOffice |
404 |
Group: Office/Utilities |
405 |
Requires: %{name}-impress = %{version}-%{release} |
406 |
Requires(pre): %{name}-core |
407 |
|
408 |
%description ogltrans |
409 |
OpenGL Transitions enable 3D slide transitions to be used in LibreOffice. |
410 |
Requires good quality 3D support for your graphics card for best experience. |
411 |
|
412 |
%package pdfimport |
413 |
Summary: PDF Importer for LibreOffice Draw |
414 |
Group: Office/Utilities |
415 |
Requires: %{name}-draw = %{version}-%{release} |
416 |
Requires(pre): %{name}-core |
417 |
Requires(post): %{name}-core |
418 |
Requires(preun): %{name}-core |
419 |
Requires(postun): %{name}-core |
420 |
|
421 |
%description pdfimport |
422 |
The PDF Importer imports PDF into drawing documents to preserve layout |
423 |
and enable basic editing of PDF documents. |
424 |
|
425 |
|
426 |
%package %{fontname}-fonts |
427 |
Summary: LibreOffice dingbats font |
428 |
Group: System/Fonts/True type |
429 |
Requires: fontpackages-filesystem |
430 |
BuildArch: noarch |
431 |
|
432 |
%description %{fontname}-fonts |
433 |
A dingbats font, OpenSymbol, suitable for use by LibreOffice for bullets and |
434 |
mathematical symbols. |
435 |
|
436 |
|
437 |
%package writer |
438 |
Summary: LibreOffice Word Processor Application |
439 |
Group: Office/Word processor |
440 |
Requires: %{name}-core = %{version}-%{release} |
441 |
Requires: %{name}-ure = %{version}-%{release} |
442 |
Provides: openoffice.org-writer = 1:%{version}-%{release} |
443 |
Provides: openoffice.org-writer2latex = 1:%{version}-%{release} |
444 |
Provides: openoffice.org-writer2xhtml = 1:%{version}-%{release} |
445 |
|
446 |
%description writer |
447 |
The LibreOffice Word Processor application. |
448 |
|
449 |
|
450 |
%package emailmerge |
451 |
Summary: Email mail-merge component for LibreOffice |
452 |
Group: Networking/Mail |
453 |
Requires: %{name}-writer = %{version}-%{release} |
454 |
Requires: %{name}-pyuno = %{version}-%{release} |
455 |
|
456 |
%description emailmerge |
457 |
Enables the LibreOffice writer module to mail-merge to email. |
458 |
|
459 |
|
460 |
%package calc |
461 |
Summary: LibreOffice Spreadsheet Application |
462 |
Group: Office/Spreadsheet |
463 |
Requires: %{name}-core = %{version}-%{release} |
464 |
Requires: %{name}-ure = %{version}-%{release} |
465 |
|
466 |
%description calc |
467 |
The LibreOffice Spreadsheet application. |
468 |
|
469 |
|
470 |
%package draw |
471 |
Summary: LibreOffice Drawing Application |
472 |
Group: Graphics/Editors and Converters |
473 |
Requires: %{name}-core = %{version}-%{release} |
474 |
Requires: %{name}-ure = %{version}-%{release} |
475 |
Requires: %{name}-pdfimport = %{version}-%{release} |
476 |
Requires: %{name}-graphicfilter = %{version}-%{release} |
477 |
provides: openoffice.org-draw = 1:%{version}-%{release} |
478 |
|
479 |
%description draw |
480 |
The LibreOffice Drawing Application. |
481 |
|
482 |
|
483 |
%package impress |
484 |
Summary: LibreOffice Presentation Application |
485 |
Group: Office/Utilities |
486 |
Requires: %{name}-core = %{version}-%{release} |
487 |
Requires: %{name}-ure = %{version}-%{release} |
488 |
Requires: %{name}-ogltrans = %{version}-%{release} |
489 |
%rename %{name}-presenter-minimizer = %{version}-%{release} |
490 |
%rename %{name}-presenter-screen = %{version}-%{release} |
491 |
Provides: openoffice.org-impress = 1:%{version}-%{release} |
492 |
|
493 |
%description impress |
494 |
The LibreOffice Presentation Application. |
495 |
|
496 |
|
497 |
%package math |
498 |
Summary: LibreOffice Equation Editor Application |
499 |
Group: Sciences/Mathematics |
500 |
Requires: %{name}-core = %{version}-%{release} |
501 |
Requires: %{name}-ure = %{version}-%{release} |
502 |
|
503 |
%description math |
504 |
The LibreOffice Equation Editor Application. |
505 |
|
506 |
|
507 |
%package graphicfilter |
508 |
Summary: LibreOffice Extra Graphic filters |
509 |
Group: Office/Utilities |
510 |
Requires: %{name}-ure = %{version}-%{release} |
511 |
Requires: %{name}-core = %{version}-%{release} |
512 |
|
513 |
%description graphicfilter |
514 |
The graphicfilter module for LibreOffice provides graphic filters, e.g. svg and |
515 |
flash filters. |
516 |
|
517 |
|
518 |
%package xsltfilter |
519 |
Summary: Optional xsltfilter module for LibreOffice |
520 |
Group: Office/Utilities |
521 |
Requires: %{name}-core = %{version}-%{release} |
522 |
|
523 |
%description xsltfilter |
524 |
The xsltfilter module for LibreOffice, provides additional docbook and |
525 |
xhtml export transforms. Install this to enable docbook export. |
526 |
|
527 |
|
528 |
%package postgresql |
529 |
Summary: PostgreSQL connector for LibreOffice |
530 |
Group: Office/Utilities |
531 |
Requires: %{name}-base = %{version}-%{release} |
532 |
Requires: postgresql-libs |
533 |
|
534 |
%description postgresql |
535 |
A PostgreSQL connector for the database front-end for LibreOffice. Allows |
536 |
creation and management of PostgreSQL databases through a GUI. |
537 |
|
538 |
|
539 |
%package ure |
540 |
Summary: UNO Runtime Environment |
541 |
Group: Development/Other |
542 |
Requires: unzip |
543 |
Suggests: %name-java-common = %version-%release |
544 |
Conflicts: libreoffice-core <= 3.3.2.2-5 |
545 |
|
546 |
%description ure |
547 |
UNO is the component model of LibreOffice. UNO offers interoperability between |
548 |
programming languages, other components models and hardware architectures, |
549 |
either in process or over process boundaries, in the Intranet as well as in the |
550 |
Internet. UNO components may be implemented in and accessed from any |
551 |
programming language for which a UNO implementation (AKA language binding) and |
552 |
an appropriate bridge or adapter exists |
553 |
|
554 |
|
555 |
%package java-common |
556 |
Group: Office/Utilities |
557 |
Summary: LibreOffice office suite Java support arch. independent files |
558 |
Requires: %{name}-core = %{version}-%{release} |
559 |
#Requires: %{name}-common = %{version}-%{release} |
560 |
Requires: jre |
561 |
Conflicts: %name-core < 3.3.2.2-8 |
562 |
Provides: openoffice.org-java-common = 1:%version-%release |
563 |
|
564 |
%description java-common |
565 |
LibreOffice is a full-featured office productivity suite that provides a |
566 |
near drop-in replacement for Microsoft(R) Office. |
567 |
|
568 |
This package contains the architecture-independent files of the Java support |
569 |
for Libreoffice (Java classes, scripts, config snippets). |
570 |
|
571 |
Also contains the Libreoffice Office Bean for embedding Libreoffice in |
572 |
custom Java applications. |
573 |
|
574 |
|
575 |
%package sdk |
576 |
Summary: Software Development Kit for LibreOffice |
577 |
Group: Development/Other |
578 |
Requires: %{name}-ure = %{version}-%{release} |
579 |
Requires: %{name}-core = %{version}-%{release} |
580 |
Requires: unzip, java-devel |
581 |
|
582 |
%description sdk |
583 |
The LibreOffice SDK is an add-on for the LibreOffice office suite. It provides |
584 |
the necessary tools for programming using the LibreOffice APIs and for creating |
585 |
extensions (UNO components) for LibreOffice. To set the build environment for |
586 |
building against the sdk use %{sdkinstdir}/setsdkenv_unix.sh. |
587 |
|
588 |
|
589 |
%package sdk-doc |
590 |
Summary: Software Development Kit documentation for LibreOffice |
591 |
Group: Development/Other |
592 |
Requires: %{name}-sdk = %{version}-%{release} |
593 |
|
594 |
%description sdk-doc |
595 |
This provides documentation for programming using the LibreOffice APIs |
596 |
and examples of creating extensions (UNO components) for LibreOffice. |
597 |
|
598 |
|
599 |
%package headless |
600 |
Summary: LibreOffice Headless plug-in |
601 |
Group: Development/Other |
602 |
Requires: %{name}-ure = %{version}-%{release} |
603 |
Requires: %{name}-core = %{version}-%{release} |
604 |
|
605 |
%description headless |
606 |
A plug-in for LibreOffice that enables it to function without an X server. |
607 |
It implements the -headless command line option and allows LibreOffice to be |
608 |
used as a backend server for e.g. document conversion. |
609 |
|
610 |
|
611 |
%package glade |
612 |
Summary: Support for creating LibreOffice dialogs in glade |
613 |
Group: Development/GNOME and GTK+ |
614 |
Requires: %{name}-ure = %{version}-%{release} |
615 |
Requires: %{name}-core = %{version}-%{release} |
616 |
Requires: %mklibname gladeui 1 11 |
617 |
|
618 |
%description glade |
619 |
%{name}-glade contains a catalog of LibreOffice-specific widgets for |
620 |
glade and ui-previewer tool to check the visual appearance of dialogs. |
621 |
|
622 |
%package librelogo |
623 |
Summary: LibreLogo scripting language |
624 |
Group: Office/Utilities |
625 |
Requires: %{name}-writer = %{version}-%{release} |
626 |
Requires: %{name}-pyuno = %{version}-%{release} |
627 |
|
628 |
%description librelogo |
629 |
Enables LibreLogo scripting in Writer. LibreLogo is a Logo-like |
630 |
programming language with interactive vectorgraphics for education and |
631 |
DTP. |
632 |
|
633 |
%if %{build_kde} |
634 |
%package kde |
635 |
Summary: LibreOffice KDE integration plug-in |
636 |
Group: Graphical desktop/KDE |
637 |
Requires: %{name}-core = %{version}-%{release} |
638 |
Provides: openoffice.org-kde4 = 1:%version-%release |
639 |
|
640 |
%description kde |
641 |
A plug-in for LibreOffice that enables integration into the KDE desktop environment. |
642 |
%endif |
643 |
|
644 |
%package appdata |
645 |
Summary: AppData support for LibreOffice |
646 |
Group: Office/Utilities |
647 |
License: CC0 |
648 |
BuildArch: noarch |
649 |
|
650 |
%description appdata |
651 |
%{name}-appdata contains the AppData definition file for LibreOffice. |
652 |
|
653 |
|
654 |
%if 0%{?_enable_debug_packages} |
655 |
|
656 |
%define debug_package %{nil} |
657 |
%global __debug_package 1 |
658 |
|
659 |
%package debuginfo |
660 |
Summary: Debug information for package %{name} |
661 |
Group: Development/Debug |
662 |
AutoReqProv: 0 |
663 |
Requires: libreoffice-core = %{version}-%{release} |
664 |
Requires: libreoffice-gdb-debug-support = %{version}-%{release} |
665 |
|
666 |
%description debuginfo |
667 |
This package provides debug information for package %{name}. |
668 |
Debug information is useful when developing applications that use this |
669 |
package or when debugging this package. |
670 |
|
671 |
|
672 |
%files debuginfo -f debugfiles.list |
673 |
|
674 |
%package gdb-debug-support |
675 |
Summary: Additional support for debugging with gdb |
676 |
Group: Development/Other |
677 |
Requires: gdb |
678 |
AutoReqProv: 0 |
679 |
|
680 |
%description gdb-debug-support |
681 |
This package provides gdb pretty printers for package %{name}. |
682 |
|
683 |
|
684 |
%files gdb-debug-support |
685 |
%{_datadir}/gdb/auto-load%{baseinstdir} |
686 |
%{_datadir}/libreoffice/gdb |
687 |
|
688 |
%endif |
689 |
|
690 |
%define _langpack_common() \ |
691 |
%{baseinstdir}/program/resource/*%{1}.res \ |
692 |
%{baseinstdir}/share/config/soffice.cfg/modules/*/ui/res/%{1}.zip \ |
693 |
%{baseinstdir}/share/config/soffice.cfg/*/ui/res/%{1}.zip \ |
694 |
%{baseinstdir}/share/template/%{1} \ |
695 |
%{baseinstdir}/share/registry/Langpack-%{1}.xcd \ |
696 |
%{baseinstdir}/share/registry/res/registry_%{1}.xcd \ |
697 |
%{baseinstdir}/share/registry/res/fcfg_langpack_%{1}.xcd \ |
698 |
%{nil} |
699 |
|
700 |
# Defines a language pack subpackage. |
701 |
# |
702 |
# It's necessary to define language code (-l) and language name (-n). |
703 |
# Additionally, it's possible |
704 |
# * to require autocorr, hunspell, hyphen or mythes package or font for |
705 |
# given language, |
706 |
# * to obsolete openoffice.org-langpack package, |
707 |
# * to provide libreoffice-langpack-loc package, where loc is glibc |
708 |
# locale--this is necessary for urpmi to pick it automatically, |
709 |
# * to require other, unrelated, packages, |
710 |
# * to specify file serving as file list. |
711 |
# For these, lower case character argument takes an argument specifying |
712 |
# language, upper case character argument uses language from -l. |
713 |
# |
714 |
# All remaining arguments are considered to be files and added to the file |
715 |
# list. |
716 |
# |
717 |
# Aa: autocorr dependency |
718 |
# c: additional config file (just the name stem) |
719 |
# E the package does not contain any files (i.e., has empty filelist) |
720 |
# Ff: font language dependency |
721 |
# Hh: hunspell dependency |
722 |
# i: additional language added to this package |
723 |
# L: internal (LibreOffice) language code, used in file names |
724 |
# l: language code, e.g., cs |
725 |
# Mm: mythes dependency |
726 |
# n: language name, e.g., Czech |
727 |
# Oo: Obsoletes: of openoffice.org-langpack |
728 |
# Vv: Very archaic Obsoletes: of openoffice.org-langpack |
729 |
# Ww: Archaic Obsoletes: of openoffice.org2-langpack |
730 |
# p: Provides: of libreoffice-langpack |
731 |
# r: comma-separated list of additional requires |
732 |
# S:s: script classification (cjk, ctl). -S is only a marker, as it does |
733 |
# not add any .xcd into the package (the file does not exist for at |
734 |
# least one CTL-using locale, si) |
735 |
# T has help files |
736 |
# u: requires locales-XX (w/o, we requires the proper locales-XX automatically) (MGA) |
737 |
# Xx: has autotext definitions |
738 |
# Yy: hyphen dependency |
739 |
# |
740 |
# Example: |
741 |
# libreoffice-langpack-cs: langpack for Czech lang. requiring hyphen-cs, |
742 |
# autocorr-cs, mythes-cs-CZ and suitable font, obsoleting |
743 |
# openoffice.org-langpack-cs_CZ: |
744 |
# %%langpack -l cs -n Czech -H -A -m cs-CZ |
745 |
# b de g jk q tu z BCD G IJK N PQR Z0123456789 |
746 |
%define langpack(Aa:c:EFf:Hh:i:L:l:Mm:n:p:Oo:r:S:s:TVv:u:Ww:Xx:Yy:) \ |
747 |
%define project LibreOffice \ |
748 |
%define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \ |
749 |
%define _langpack_lang %{-L:%{-L*}}%{!-L:%{lang}} \ |
750 |
%define pkgname langpack-%{lang} \ |
751 |
%define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \ |
752 |
\ |
753 |
%global langpack_langs %{langpack_langs} %{_langpack_lang} %{-i:%{-i*}} \ |
754 |
\ |
755 |
%package %{pkgname} \ |
756 |
Summary: %{langname} language pack for %{project} \ |
757 |
Group: System/Internationalization \ |
758 |
Requires: %{name}-core = %{version}-%{release} \ |
759 |
Provides: %name-langpack = %version-%release \ |
760 |
%{-a:Requires: autocorr-%{-a*}}%{!-a:%{-A:Requires: autocorr-%{lang}}} \ |
761 |
%{-f:Requires: font(:lang=%{-f*})}%{!-f:%{-F:Requires: font(:lang=%{lang})}} \ |
762 |
%{-h:Requires: hunspell-%{-h*}}%{!-h:%{-H:Requires: hunspell-%{lang}}} \ |
763 |
%{-m:Requires: mythes-%{-m*}}%{!-m:%{-M:Requires: mythes-%{lang}}} \ |
764 |
%{-u:Requires: locales-%{-u*}}%{!-u:Requires: locales-%{lang}} \ |
765 |
%{-y:Requires: hyphen-%{-y*}}%{!-y:%{-Y:Requires: hyphen-%{lang}}} \ |
766 |
%{-r:Requires: %{-r*}} \ |
767 |
%define obs openoffice.org-langpack \ |
768 |
%define obsv 1:3.3.1 \ |
769 |
%define aobs openoffice.org2-langpack \ |
770 |
%define aobsv 1:3.0.0 \ |
771 |
%define vaobs openoffice.org-langpack \ |
772 |
%define vaobsv 1:2.0.3 \ |
773 |
%{-o:Obsoletes: %{obs}-%{-o*} < %{obsv}}%{!-o:%{-O:Obsoletes: %{obs}-%{lang} < %{obsv}}} \ |
774 |
#%{-w:Obsoletes: %{aobs}-%{-x*} < %{aobsv}}%{!-x:%{-W:Obsoletes: %{aobs}-%{lang} < %{aobsv}}} \ |
775 |
%{-v:Obsoletes: %{vaobs}-%{-v*} < %{vaobsv}}%{!-v:%{-V:Obsoletes: %{vaobs}-%{lang} < %{vaobsv}}} \ |
776 |
%{-p:Provides: %{name}-langpack-%{-p*}} \ |
777 |
\ |
778 |
%description %{pkgname} \ |
779 |
Provides additional %{langname} translations and resources for %{project}. \ |
780 |
\ |
781 |
%files %{pkgname} \ |
782 |
%{!-E: \ |
783 |
%define autotextdir %{baseinstdir}/share/autotext \ |
784 |
%{expand:%%_langpack_common %{_langpack_lang}} \ |
785 |
%{-x:%{autotextdir}/%{-x*}}%{!-x:%{-X:%{autotextdir}/%{_langpack_lang}}} \ |
786 |
%{-c:%{baseinstdir}/share/registry/%{-c*}.xcd} \ |
787 |
%{-s:%{baseinstdir}/share/registry/%{-s*}_%{_langpack_lang}.xcd} \ |
788 |
%{-T: \ |
789 |
%docdir %{baseinstdir}/help/%{_langpack_lang} \ |
790 |
%{baseinstdir}/help/%{_langpack_lang} \ |
791 |
} \ |
792 |
%{-i:%{expand:%%_langpack_common %{-i*}}} \ |
793 |
} \ |
794 |
%{nil} |
795 |
|
796 |
# Defines an auto-correction subpackage. |
797 |
# |
798 |
# i: add autocorrections from additional language |
799 |
# l: language code |
800 |
# n: language name |
801 |
# L the filename does not contain country code |
802 |
# |
803 |
# All remaining arguments are considered to be files and added to the file |
804 |
# list. |
805 |
%define autocorr(i:Ll:n:) \ |
806 |
%define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \ |
807 |
%define pkgname autocorr-%{lang} \ |
808 |
%define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \ |
809 |
\ |
810 |
%package -n %{pkgname} \ |
811 |
Summary: %{langname} auto-correction rules \ |
812 |
Group: Text tools \ |
813 |
Requires: locales-%{lang} \ |
814 |
BuildArch: noarch \ |
815 |
\ |
816 |
%description -n %{pkgname} \ |
817 |
Rules for auto-correcting common %{langname} typing errors. \ |
818 |
\ |
819 |
%files -n %{pkgname} \ |
820 |
%doc instdir/LICENSE \ |
821 |
%dir %{_datadir}/autocorr \ |
822 |
%{-L:%{_datadir}/autocorr/acor_%{lang}.dat} \ |
823 |
%{!-L:%{_datadir}/autocorr/acor_%{lang}-*.dat} \ |
824 |
%{-i:%{_datadir}/autocorr/acor_%{-i*}-*.dat} \ |
825 |
%{nil} |
826 |
|
827 |
%langpack -l en -n English -F -H -Y -M -A -E -L en-US -O |
828 |
|
829 |
%if %{with langpacks} |
830 |
%langpack -l af -n Afrikaans -F -H -Y -A -o af_ZA -V -w af_ZA |
831 |
%langpack -l ar -n Arabic -F -H -s ctl -O -W |
832 |
%langpack -l as -n Assamese -F -H -Y -o as_IN -w as_IN |
833 |
%langpack -l bg -n Bulgarian -F -H -Y -M -A -T -X -o bg_BG -V -w bg_BG |
834 |
%langpack -l bn -n Bengali -F -H -Y -T -O -v bn_IN -W |
835 |
%langpack -l br -n Breton -F -H -T |
836 |
%langpack -l ca -n Catalan -F -H -Y -M -A -T -o ca_ES -V -w ca_ES |
837 |
%langpack -l cs -n Czech -F -H -Y -M -A -T -X -o cs_CZ -V -w cs_CZ |
838 |
%langpack -l cy -n Welsh -F -H -Y -o cy_GB -V -w cy_GB |
839 |
%langpack -l da -n Danish -F -H -Y -M -A -T -X -o da_DK -V -w da_DK |
840 |
%langpack -l de -n German -F -H -Y -M -A -T -X -O -W |
841 |
%langpack -l dz -n Dzongkha -F -s ctl -T -O |
842 |
%langpack -l el -n Greek -F -H -Y -M -T -o el_GR -V -w el_GR |
843 |
%langpack -l es -n Spanish -F -H -Y -M -A -T -X -O -W |
844 |
%langpack -l et -n Estonian -F -H -Y -T -o et_EE -V -w et_EE |
845 |
%langpack -l eu -n Basque -F -H -Y -T -o eu_ES -V -w eu_ES |
846 |
%langpack -l fa -n Farsi -A -H -Y -s ctl |
847 |
%langpack -l fi -n Finnish -F -r libreoffice-voikko -A -T -o fi_FI -V -w fi_FI |
848 |
%langpack -l fr -n French -F -H -Y -M -A -T -X -O -W |
849 |
%langpack -l ga -n Irish -F -H -Y -M -A -o ga_IE -w ga_IE |
850 |
%langpack -l gl -n Galician -F -H -Y -T -o gl_ES -V -w gl_ES |
851 |
%langpack -l gu -n Gujarati -F -H -Y -s ctl -o gu_IN -w gu_IN -T |
852 |
%langpack -l he -n Hebrew -F -H -s ctl -o he_IL -V -w he_IL -T |
853 |
%langpack -l hi -n Hindi -F -H -Y -s ctl -T -o hi_IN -v hi-IN -w hi_IN |
854 |
%langpack -l hr -n Croatian -F -H -Y -A -o hr_HR -V -w hr_HR -T |
855 |
%langpack -l hu -n Hungarian -F -H -Y -M -A -T -X -o hu_HU -V -w hu_HU |
856 |
%langpack -l it -n Italian -F -H -Y -M -A -T -X -O -W |
857 |
%langpack -l ja -n Japanese -F -A -s cjk -T -X -o ja_JP -V -w ja_JP |
858 |
%langpack -l kk -n Kazakh -F -H |
859 |
%langpack -l kn -n Kannada -F -H -Y -o kn_IN -w ka_IN |
860 |
%langpack -l ko -n Korean -F -H -A -s cjk -T -c korea -X -o ko_KR -V -w ko_KR |
861 |
%langpack -l lt -n Lithuanian -F -H -Y -A -o lt_LT -V -w lt_LT |
862 |
%langpack -l lv -n Latvian -F -H -Y -M |
863 |
%langpack -l mai -n Maithili -F -o mai_IN |
864 |
%langpack -l ml -n Malayalam -F -H -Y -o ml_IN -w ml_IN |
865 |
%langpack -l mr -n Marathi -F -H -Y -o mr_IN -w mr_IN |
866 |
%langpack -l nb -n Bokmal -F -H -Y -M -T -o nb_NO -V -w nb_NO -u no |
867 |
%langpack -l nl -n Dutch -F -H -Y -M -A -T -X -O -W |
868 |
%langpack -l nn -n Nynorsk -F -H -Y -M -T -o nn_NO -V -w nn_NO -u no |
869 |
%define langpack_lang Southern Ndebele |
870 |
%langpack -l nr -n %{langpack_lang} -F -H -o nr_ZA |
871 |
%define langpack_lang Northern Sotho |
872 |
%langpack -l nso -n %{langpack_lang} -F -H -o nso_ZA -w nso_ZA |
873 |
%langpack -l or -n Odia -F -H -Y -s ctl -o or_IN -w or_IN |
874 |
%langpack -l pa -n Punjabi -F -H -Y -s ctl -L pa-IN -O -v pa_IN -w pa_IN |
875 |
%langpack -l pl -n Polish -F -H -Y -M -A -T -X -o pl_PL -V -w pl_PL |
876 |
%define langpack_lang Brazilian Portuguese |
877 |
%langpack -l pt_BR -n %{langpack_lang} -f pt -h pt -y pt -m pt -a pt -p pt_BR -T -X -o pt_BR -V -w pt_BR -L pt-BR -u pt |
878 |
%langpack -l pt -n Portuguese -f pt -h pt -y pt -m pt -a pt -p pt_PT -T -L pt -X -u pt -o pt_PT -v pt -W |
879 |
%langpack -l ro -n Romanian -A -F -H -Y -M -O |
880 |
%langpack -l ru -n Russian -F -H -Y -M -A -T -X -O -W |
881 |
%langpack -l si -n Sinhalese -F -H -S ctl -T -O |
882 |
%langpack -l sk -n Slovak -F -H -Y -M -A -T -X -o sk_SK -V -w sk_SK |
883 |
%langpack -l sl -n Slovenian -F -H -Y -M -A -T -X -o sl_SI -V -w sl_SI |
884 |
%{baseinstdir}/share/wordbook/sl.dic |
885 |
|
886 |
%langpack -l sr -n Serbian -F -H -Y -A -i sr-Latn -O -v sr_CS -w sr_CS |
887 |
%langpack -l ss -n Swati -F -H -o ss_ZA |
888 |
%define langpack_lang Southern Sotho |
889 |
%langpack -l st -n %{langpack_lang} -F -H -o st_ZA |
890 |
%langpack -l sv -n Swedish -F -H -Y -M -A -T -X -O -W |
891 |
%langpack -l ta -n Tamil -F -H -Y -s ctl -o ta_IN -w ta_IN |
892 |
%langpack -l te -n Telugu -F -H -Y -o te_IN -w te_IN |
893 |
%langpack -l th -n Thai -F -H -s ctl -c ctlseqcheck_th -o th_TH -V -w th_TH |
894 |
%langpack -l tn -n Tswana -F -H -o tn_ZA -V -w tn_ZA |
895 |
%langpack -l tr -n Turkish -F -A -T -X -o tr_TR -V -W |
896 |
%langpack -l ts -n Tsonga -F -H -o ts_ZA -V -w ts_ZA |
897 |
%langpack -l uk -n Ukrainian -F -H -Y -M -T -O |
898 |
%langpack -l ve -n Venda -F -H -o ve_ZA |
899 |
%langpack -l xh -n Xhosa -F -H -o xh_ZA |
900 |
%define langpack_lang Simplified Chinese |
901 |
%langpack -l zh_CN -n %{langpack_lang} -f zh-cn -a zh -p zh_CN -s cjk -T -L zh-CN -X -o zh_CN -v zh-CN -w zh_CN -u zh |
902 |
%define langpack_lang Traditional Chinese |
903 |
%langpack -l zh_TW -n %{langpack_lang} -f zh-tw -a zh -p zh_TW -s cjk -T -L zh-TW -X -o zh_TW -v zh-TW -w zh_TW -u zh |
904 |
%langpack -l zu -n Zulu -F -H -Y -o zu_ZA -V -w zu_ZA |
905 |
%undefine langpack_lang |
906 |
%endif |
907 |
%autocorr -l en -n English |
908 |
|
909 |
%if %{with langpacks} |
910 |
%autocorr -l af -n Afrikaans |
911 |
%autocorr -l bg -n Bulgarian |
912 |
%autocorr -l ca -n Catalan |
913 |
%autocorr -l cs -n Czech |
914 |
%autocorr -l da -n Danish |
915 |
%autocorr -l de -n German |
916 |
%autocorr -l es -n Spanish |
917 |
%autocorr -l fa -n Farsi |
918 |
%autocorr -l fi -n Finnish |
919 |
%autocorr -l fr -n French |
920 |
%autocorr -l ga -n Irish |
921 |
%autocorr -l hr -n Croatian |
922 |
%autocorr -l hu -n Hungarian |
923 |
%autocorr -l is -n Icelandic |
924 |
%autocorr -l it -n Italian |
925 |
%autocorr -l ja -n Japanese |
926 |
%autocorr -l ko -n Korean |
927 |
%autocorr -l lb -n Luxembourgish |
928 |
%autocorr -l lt -n Lithuanian |
929 |
%autocorr -l mn -n Mongolian |
930 |
%autocorr -l nl -n Dutch |
931 |
%autocorr -l pl -n Polish |
932 |
%autocorr -l pt -n Portuguese |
933 |
%autocorr -l ro -n Romanian |
934 |
%autocorr -l ru -n Russian |
935 |
%autocorr -l sk -n Slovak |
936 |
%autocorr -l sl -n Slovenian |
937 |
#rhbz#452379 clump serbian autocorrections together |
938 |
%autocorr -l sr -n Serbian -i sr-Latn |
939 |
%autocorr -l sv -n Swedish |
940 |
%autocorr -l tr -n Turkish |
941 |
%autocorr -l vi -n Vietnamese |
942 |
%autocorr -l zh -n Chinese |
943 |
%endif |
944 |
|
945 |
%define make_autocorr_aliases(l:) \ |
946 |
%{?-l: \ |
947 |
for lang in %{*}; do \ |
948 |
ln -sf acor_%{-l*}.dat acor_$lang.dat \ |
949 |
done \ |
950 |
} \ |
951 |
%{!?-l:%{error:-l must be present}} |
952 |
|
953 |
%prep |
954 |
%setup -q -n %{name}-%{version}%{?libo_prerelease} -b 1 -b 2 |
955 |
rm -rf git-hooks */git-hooks |
956 |
|
957 |
# set up git repo |
958 |
git init |
959 |
git config user.name rpmbuild |
960 |
git config user.email rpmbuild@fedoraproject.org |
961 |
git config gc.auto 0 # disable auto packing |
962 |
git add -A |
963 |
git commit -q -a -m %{name}-%{version} |
964 |
|
965 |
#Customize Palette to remove Sun colours and add Red Hat colours |
966 |
#TODO: have and add mageia colours |
967 |
(head -n -1 extras/source/palettes/standard.soc && \ |
968 |
echo -e ' <draw:color draw:name="Mageia 1" draw:color="#cc0000"/> |
969 |
<draw:color draw:name="Mageia 2" draw:color="#0093d9"/> |
970 |
<draw:color draw:name="Mageia 3" draw:color="#ff8d00"/> |
971 |
<draw:color draw:name="Mageia 4" draw:color="#abb400"/> |
972 |
<draw:color draw:name="Mageia 5" draw:color="#4e376b"/>' && \ |
973 |
tail -n 1 extras/source/palettes/standard.soc) > mageia.soc |
974 |
mv -f mageia.soc extras/source/palettes/standard.soc |
975 |
|
976 |
git commit -q -a -m 'add Red Hat colors to palette' |
977 |
|
978 |
# apply patches |
979 |
git am %{patches} |
980 |
|
981 |
|
982 |
# Seeing .git dir makes some of the build tools change their behavior. |
983 |
# We do not want that. Note: it is still possible to use |
984 |
# git --git-dir=.git-rpm |
985 |
mv .git .git-rpm |
986 |
|
987 |
%build |
988 |
echo build start time is `date`, diskspace: `df -h . | tail -n 1` |
989 |
echo building localizations: %{langpack_langs} |
990 |
|
991 |
# path to external tarballs |
992 |
EXTSRCDIR=`dirname %{SOURCE0}` |
993 |
|
994 |
# KDE bits |
995 |
export QT4DIR=%{qt4dir} |
996 |
export KDE4DIR=%{_kde_prefix} |
997 |
export PATH=$QT4DIR/bin:$PATH |
998 |
|
999 |
#use the RPM_OPT_FLAGS but remove the OOo overridden ones |
1000 |
for i in $RPM_OPT_FLAGS; do |
1001 |
case "$i" in |
1002 |
-pipe|-Wall|-Werror*|-g|-fexceptions) continue;; |
1003 |
esac |
1004 |
ARCH_FLAGS="$ARCH_FLAGS $i" |
1005 |
done |
1006 |
export ARCH_FLAGS |
1007 |
# Do not compile LO with -fomit-frame-pointer flags, or it will crash at start. |
1008 |
export CFLAGS="$(echo $ARCH_FLAGS | sed -e 's/-fomit-frame-pointer//')" |
1009 |
export CXXFLAGS="$(echo $ARCH_FLAGS | sed -e 's/-fomit-frame-pointer//')" |
1010 |
export FFLAGS="$(echo $FFLAGS | sed -e 's/-fomit-frame-pointer//')" |
1011 |
|
1012 |
%if %{build_kde} |
1013 |
%define distrooptions --enable-kde4 --disable-gstreamer-0-10 --enable-gstreamer --with-system-mythes |
1014 |
%else |
1015 |
%define distrooptions --disable-kde4 --disable-gstreamer-0-10 --enable-gstreamer --with-system-mythes |
1016 |
%endif |
1017 |
|
1018 |
%if %{with langpacks} |
1019 |
%define with_lang --with-lang='%{langpack_langs}' |
1020 |
%endif |
1021 |
|
1022 |
# avoid running autogen.sh on make |
1023 |
touch autogen.lastrun |
1024 |
|
1025 |
%configure2_5x \ |
1026 |
%vendoroption \ |
1027 |
%{?_smp_mflags:--with-parallelism="`getconf _NPROCESSORS_ONLN`"} \ |
1028 |
%{?with_lang} \ |
1029 |
--disable-fetch-external \ |
1030 |
--disable-gnome-vfs \ |
1031 |
--disable-openssl \ |
1032 |
--enable-dbus \ |
1033 |
--enable-eot \ |
1034 |
--enable-evolution2 \ |
1035 |
--enable-ext-nlpsolver \ |
1036 |
--enable-ext-wiki-publisher \ |
1037 |
--enable-lockdown \ |
1038 |
--enable-release-build \ |
1039 |
--enable-scripting-beanshell \ |
1040 |
--enable-scripting-javascript \ |
1041 |
--enable-symbols \ |
1042 |
--enable-vba \ |
1043 |
--with-build-version="%{version}-%{release}" \ |
1044 |
--with-external-dict-dir=/usr/share/myspell \ |
1045 |
--with-external-tar="$EXTSRCDIR" \ |
1046 |
--with-help \ |
1047 |
--with-system-dicts \ |
1048 |
--with-system-libs \ |
1049 |
--without-afms \ |
1050 |
--without-fonts \ |
1051 |
--without-ppds \ |
1052 |
--without-system-npapi-headers \ |
1053 |
%if %{build_gtk3} |
1054 |
--enable-gtk3 \ |
1055 |
%endif |
1056 |
%if 0%{?system_boost} |
1057 |
%else |
1058 |
--without-system-boost \ |
1059 |
%endif |
1060 |
%if %with_mergedlibs |
1061 |
--enable-mergelibs \ |
1062 |
%endif |
1063 |
%{distrooptions} |
1064 |
|
1065 |
make VERBOSE=true |
1066 |
|
1067 |
#generate the icons and mime type stuff |
1068 |
export DESTDIR=../output |
1069 |
export KDEMAINDIR=/usr |
1070 |
export GNOMEDIR=/usr |
1071 |
export GNOME_MIME_THEME=hicolor |
1072 |
# TODO use empty variables? Should make the renaming hacks in %%install |
1073 |
# unnecessary. |
1074 |
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION WORKDIR |
1075 |
cd $WORKDIR/CustomTarget/sysui/share/libreoffice |
1076 |
./create_tree.sh |
1077 |
|
1078 |
echo build end time is `date`, diskspace: `df -h . | tail -n 1` |
1079 |
|
1080 |
%install |
1081 |
# TODO investigate use of make distro-pack-install |
1082 |
#figure out the icon version |
1083 |
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION SRCDIR WORKDIR |
1084 |
export PRODUCTVERSIONSHORT PRODUCTVERSION |
1085 |
|
1086 |
# installation |
1087 |
|
1088 |
mkdir -p %{buildroot}%{instdir} |
1089 |
if ! make instsetoo_native PKGFORMAT=installed EPM=not-used-but-must-be-set; then |
1090 |
echo - ---dump log start--- |
1091 |
cat $ WORKDIR/installation/LibreOffice/installed/logging/en-US/log_*_en-US.log |
1092 |
echo - ---dump log end--- |
1093 |
echo - ---dump log start -- SDK--- |
1094 |
cat $ WORKDIR/installation/LibreOffice_SDK/installed/logging/en-US/log_*_en-US.log |
1095 |
echo - ---dump log end -- SDK--- |
1096 |
echo - ---dump log start -- languagepacks--- |
1097 |
cat $ WORKDIR/installation/LibreOffice_languagepack/installed/logging/en-US/log_*_en-US.log |
1098 |
echo - ---dump log end -- languagepacks--- |
1099 |
exit 1 |
1100 |
fi |
1101 |
mkdir -p %{buildroot}%{baseinstdir} |
1102 |
mv $WORKDIR/installation/LibreOffice/installed/install/en-US/* %{buildroot}%{baseinstdir} |
1103 |
%if %{with langpacks} |
1104 |
for langpack in $WORKDIR/installation/LibreOffice_languagepack/installed/install/*; do |
1105 |
[ `basename $langpack` = log ] && continue |
1106 |
cp -rp $langpack/* %{buildroot}%{baseinstdir} |
1107 |
rm -rf $langpack |
1108 |
done |
1109 |
%endif |
1110 |
mv $WORKDIR/installation/LibreOffice_SDK/installed/install/en-US/sdk %{buildroot}%{sdkinstdir} |
1111 |
chmod -R +w %{buildroot}%{baseinstdir} |
1112 |
|
1113 |
# postprocessing and tweaks |
1114 |
|
1115 |
# The installer currently sets UserInstallation to |
1116 |
# $ORIGIN/../libreoffice/4, which is of course total nonsense. Because I |
1117 |
# have no inclination to crawl through mountains of perl code to figure out |
1118 |
# where it comes from, I am just going to replace it by a sensible |
1119 |
# value here. |
1120 |
sed -i -e '/UserInstallation/s@\$ORIGIN/..@$SYSUSERCONFIG@' %{buildroot}%{baseinstdir}/program/bootstraprc |
1121 |
|
1122 |
#configure sdk |
1123 |
pushd %{buildroot}%{sdkinstdir} |
1124 |
sed -e "s,@OO_SDK_NAME@,sdk," \ |
1125 |
-e "s,@OO_SDK_HOME@,%{sdkinstdir}," \ |
1126 |
-e "s,@OFFICE_HOME@,%{baseinstdir}," \ |
1127 |
-e "s,@OO_SDK_URE_HOME@,%{ureinstdir}," \ |
1128 |
-e "s,@OO_SDK_MAKE_HOME@,/usr/bin," \ |
1129 |
-e "s,@OO_SDK_ZIP_HOME@,/usr/bin," \ |
1130 |
-e "s,@OO_SDK_CPP_HOME@,/usr/bin," \ |
1131 |
-e "s,@OO_SDK_CC_55_OR_HIGHER@,," \ |
1132 |
-e "s,@OO_SDK_JAVA_HOME@,$JAVA_HOME," \ |
1133 |
-e "s,@OO_SDK_OUTPUT_DIR@,\$HOME," \ |
1134 |
-e "s,@SDK_AUTO_DEPLOYMENT@,NO," \ |
1135 |
setsdkenv_unix.sh.in > setsdkenv_unix.sh |
1136 |
chmod 755 setsdkenv_unix.sh |
1137 |
# we don't want to install the input file |
1138 |
rm -f setsdkenv_unix.sh.in |
1139 |
# TODO: is this still necessary? |
1140 |
#fix permissions |
1141 |
find examples -type f -exec chmod -x {} \; |
1142 |
popd |
1143 |
|
1144 |
#ensure a template dir for each lang |
1145 |
pushd %{buildroot}%{baseinstdir}/share/template |
1146 |
for I in %{langpack_langs}; do |
1147 |
mkdir -p $I |
1148 |
done |
1149 |
popd |
1150 |
|
1151 |
#Set some aliases to canonical autocorrect language files for locales with matching languages |
1152 |
pushd %{buildroot}%{baseinstdir}/share/autocorr |
1153 |
|
1154 |
%make_autocorr_aliases -l en-GB en-AG en-AU en-BS en-BW en-BZ en-CA en-DK en-GH en-HK en-IE en-IN en-JM en-NG en-NZ en-SG en-TT |
1155 |
%make_autocorr_aliases -l en-US en-PH |
1156 |
#en-ZA exists and has a good autocorrect file with two or three extras that make sense for |
1157 |
#neighbouring english speaking territories |
1158 |
%make_autocorr_aliases -l en-ZA en-NA en-ZW |
1159 |
%if %{with langpacks} |
1160 |
%make_autocorr_aliases -l af-ZA af-NA |
1161 |
%make_autocorr_aliases -l de-DE de-AT de-BE de-CH de-LI de-LU |
1162 |
%make_autocorr_aliases -l es-ES es-AR es-BO es-CL es-CO es-CR es-CU es-DO es-EC es-GT es-HN es-MX es-NI es-PA es-PE es-PR es-PY es-SV es-US es-UY es-VE |
1163 |
%make_autocorr_aliases -l fr-FR fr-BE fr-CA fr-CH fr-LU fr-MC |
1164 |
%make_autocorr_aliases -l it-IT it-CH |
1165 |
%make_autocorr_aliases -l nl-NL nl-AW |
1166 |
%make_autocorr_aliases -l sv-SE sv-FI |
1167 |
%else |
1168 |
rm -f acor_[a-df-z]*.dat acor_e[su]*.dat |
1169 |
%endif |
1170 |
popd |
1171 |
#rhbz#484055 make these shared across multiple applications |
1172 |
mkdir -p %{buildroot}%{_datadir} |
1173 |
mv -f %{buildroot}%{baseinstdir}/share/autocorr %{buildroot}%{_datadir}/autocorr |
1174 |
chmod 755 %{buildroot}%{_datadir}/autocorr |
1175 |
|
1176 |
#remove it in case we didn't build with gcj |
1177 |
rm -f %{buildroot}%{baseinstdir}/program/classes/sandbox.jar |
1178 |
|
1179 |
#remove dummy .dat files |
1180 |
rm -f %{buildroot}%{baseinstdir}/program/root?.dat |
1181 |
|
1182 |
#set standard permissions for rpmlint |
1183 |
find %{buildroot}%{baseinstdir} -exec chmod +w {} \; |
1184 |
find %{buildroot}%{baseinstdir} -type d -exec chmod 0755 {} \; |
1185 |
|
1186 |
# move python bits into site-packages |
1187 |
mkdir -p %{buildroot}%{python3_sitearch} |
1188 |
pushd %{buildroot}%{python3_sitearch} |
1189 |
echo "import sys, os" > uno.py |
1190 |
echo "sys.path.append('%{baseinstdir}/program')" >> uno.py |
1191 |
echo "os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:%{baseinstdir}/program/fundamentalrc')" >> uno.py |
1192 |
cat %{buildroot}%{baseinstdir}/program/uno.py >> uno.py |
1193 |
rm -f %{buildroot}%{baseinstdir}/program/uno.py* |
1194 |
mv -f %{buildroot}%{baseinstdir}/program/unohelper.py* . |
1195 |
popd |
1196 |
|
1197 |
# rhbz#477435 package opensymbol separately |
1198 |
pushd %{buildroot}%{baseinstdir}/share/fonts/truetype |
1199 |
install -d -m 0755 %{buildroot}%{_fontdir} |
1200 |
install -p -m 0644 *.ttf %{buildroot}%{_fontdir} |
1201 |
popd |
1202 |
rm -rf %{buildroot}%{baseinstdir}/share/fonts |
1203 |
|
1204 |
#ensure that no sneaky un-prelinkable, un-fpic or non executable shared libs |
1205 |
#have snuck through |
1206 |
pic=0 |
1207 |
executable=0 |
1208 |
for foo in `find %{buildroot}%{instdir} -name "*" -exec file {} \;| grep ": ELF" | cut -d: -f 1` ; do |
1209 |
chmod +wx $foo |
1210 |
ls -asl $foo |
1211 |
result=`readelf -d $foo | grep TEXTREL` || true |
1212 |
if [ "$result" != "" ]; then |
1213 |
echo "TEXTREL Warning: $foo is b0rked (-fpic missing)" |
1214 |
pic=1 |
1215 |
fi |
1216 |
result=`readelf -l $foo | grep GNU_STACK | grep RWE` || true |
1217 |
if [ "$result" != "" ]; then |
1218 |
echo "GNU_STACK Warning: $foo is b0rked (-noexecstack missing)" |
1219 |
executable=1 |
1220 |
fi |
1221 |
done |
1222 |
if [ $pic == 1 ]; then false; fi |
1223 |
if [ $executable == 1 ]; then false; fi |
1224 |
|
1225 |
#make up some /usr/bin scripts |
1226 |
mkdir -p %{buildroot}%{_bindir} |
1227 |
|
1228 |
pushd %{buildroot}%{_bindir} |
1229 |
echo \#\!/bin/sh > ooffice |
1230 |
echo exec libreoffice \"\$@\" >> ooffice |
1231 |
chmod a+x ooffice |
1232 |
|
1233 |
echo \#\!/bin/sh > ooviewdoc |
1234 |
echo exec libreoffice --view \"\$@\" >> ooviewdoc |
1235 |
chmod a+x ooviewdoc |
1236 |
|
1237 |
for app in base calc draw impress math writer; do |
1238 |
echo \#\!/bin/sh > oo$app |
1239 |
echo exec libreoffice --$app \"\$@\" >> oo$app |
1240 |
chmod a+x oo$app |
1241 |
done |
1242 |
|
1243 |
sed -e s/LAUNCHER/unopkg/g -e s/BRAND/libreoffice/g %{SOURCE4} > unopkg |
1244 |
chmod a+x unopkg |
1245 |
|
1246 |
sed -e s/LAUNCHER/soffice/g -e s/BRAND/libreoffice/g %{SOURCE4} > libreoffice |
1247 |
chmod a+x libreoffice |
1248 |
|
1249 |
# rhbz#499474 provide a /usr/bin/soffice for .recently-used.xbel |
1250 |
ln -s %{baseinstdir}/program/soffice soffice |
1251 |
# rhbz#499474 provide a /usr/bin/openoffice.org for backwards compat |
1252 |
ln -s libreoffice openoffice.org |
1253 |
popd |
1254 |
|
1255 |
pushd %{buildroot}%{baseinstdir}/share/xdg/ |
1256 |
chmod u+w *.desktop |
1257 |
ICONVERSION=`echo $PRODUCTVERSION | sed -e 's/\.//'` |
1258 |
for file in *.desktop; do |
1259 |
# rhbz#156677 remove the version from Name= |
1260 |
# rhbz#156067 don't version the icons |
1261 |
sed -i -e "s/ *$PRODUCTVERSION//g" \ |
1262 |
-e "s/$ICONVERSION//g" \ |
1263 |
-e "s/$PRODUCTVERSIONSHORT//g" \ |
1264 |
$file |
1265 |
done |
1266 |
# rhbz#156677 / rhbz#186515 do not show math and startcenter |
1267 |
sed -i -e /NoDisplay/s/false/true/ math.desktop startcenter.desktop |
1268 |
# relocate the .desktop and icon files |
1269 |
mkdir -p %{buildroot}%{_datadir}/applications |
1270 |
for app in base calc draw impress math startcenter writer xsltfilter; do |
1271 |
sed -i -e 's/\${UNIXBASISROOTNAME}/%{name}/' $app.desktop |
1272 |
desktop-file-validate $app.desktop |
1273 |
cp -p $app.desktop %{buildroot}%{_datadir}/applications/libreoffice-$app.desktop |
1274 |
done |
1275 |
popd |
1276 |
|
1277 |
# desktop files |
1278 |
desktop-file-install --vendor="" \ |
1279 |
--remove-category="Application" \ |
1280 |
--add-category="Office" \ |
1281 |
--add-category="X-MandrivaLinux-CrossDesktop" \ |
1282 |
--add-mime-type="application/vnd.ms-works;application/x-msworks-wp;zz-application/zz-winassoc-wps" \ |
1283 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*writer*desktop |
1284 |
|
1285 |
# disabled: web template |
1286 |
for i in calc draw impress math; do |
1287 |
desktop-file-install --vendor="" \ |
1288 |
--remove-category="Application" \ |
1289 |
--add-category="Office" \ |
1290 |
--add-category="X-MandrivaLinux-CrossDesktop" \ |
1291 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*${i}*desktop |
1292 |
|
1293 |
%if 0 |
1294 |
## MS OOXML (#36465) |
1295 |
desktop-file-install \ |
1296 |
--add-mime-type="application/vnd.openxmlformats-officedocument.wordprocessingml.document" \ |
1297 |
--add-mime-type="application/vnd.ms-word.document.macroEnabled.12" \ |
1298 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/writer*desktop |
1299 |
|
1300 |
desktop-file-install \ |
1301 |
--add-mime-type="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" \ |
1302 |
--add-mime-type="application/vnd.ms-excel.sheet.macroEnabled.12" \ |
1303 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/calc*desktop |
1304 |
|
1305 |
desktop-file-install \ |
1306 |
--add-mime-type="application/vnd.openxmlformats-officedocument.presentationml.presentation" \ |
1307 |
--add-mime-type="application/vnd.ms-powerpoint.presentation.macroEnabled.12" \ |
1308 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/impress*desktop |
1309 |
%endif |
1310 |
|
1311 |
for app in base calc draw impress math writer startcenter ; do |
1312 |
sed -i -e "s/Icon=$app/Icon=libreoffice-$app/g" %{buildroot}%_datadir/applications/%name-${app}.desktop |
1313 |
done |
1314 |
|
1315 |
pushd $WORKDIR/CustomTarget/sysui/share/output/usr/share |
1316 |
#get rid of the gnome icons and other unneeded files |
1317 |
rm -rf icons/gnome applications application-registry |
1318 |
|
1319 |
#relocate the rest of them |
1320 |
# rhbz#901346 512x512 icons are not used by anything |
1321 |
for icon in `find icons -path '*/512x512' -prune -o -type f -print`; do |
1322 |
mkdir -p %{buildroot}%{_datadir}/`dirname $icon` |
1323 |
cp -p $icon %{buildroot}%{_datadir}/`echo $icon | sed -e s@libreoffice$ICONVERSION-@libreoffice-@ | sed -e s@libreoffice$PRODUCTVERSION-@libreoffice-@` |
1324 |
done |
1325 |
mkdir -p %{buildroot}%{_datadir}/mime-info |
1326 |
cp -p mime-info/libreoffice$PRODUCTVERSION.keys %{buildroot}%{_datadir}/mime-info/libreoffice.keys |
1327 |
cp -p mime-info/libreoffice$PRODUCTVERSION.mime %{buildroot}%{_datadir}/mime-info/libreoffice.mime |
1328 |
#add our mime-types, e.g. for .oxt extensions |
1329 |
mkdir -p %{buildroot}%{_datadir}/mime/packages |
1330 |
cp -p mime/packages/libreoffice$PRODUCTVERSION.xml %{buildroot}%{_datadir}/mime/packages/libreoffice.xml |
1331 |
popd |
1332 |
|
1333 |
rm -rf %{buildroot}%{baseinstdir}/readmes |
1334 |
rm -rf %{buildroot}%{baseinstdir}/licenses |
1335 |
|
1336 |
mkdir -p %{buildroot}%{baseinstdir}/share/psprint/driver |
1337 |
cp -p psprint_config/configuration/ppds/SGENPRT.PS %{buildroot}%{baseinstdir}/share/psprint/driver/SGENPRT.PS |
1338 |
|
1339 |
# rhbz#452385 to auto have postgres in classpath if subsequently installed |
1340 |
sed -i -e "s#URE_MORE_JAVA_CLASSPATH_URLS.*#& file:///usr/share/java/postgresql-jdbc.jar#" %{buildroot}%{baseinstdir}/program/fundamentalrc |
1341 |
# Br translation doesn't have any help |
1342 |
# Better use fr ones for now ( and check if this is still valid for next update ) |
1343 |
pushd %buildroot%_libdir/libreoffice/help |
1344 |
ln -s fr br |
1345 |
popd |
1346 |
|
1347 |
# move glade catalog to system glade dir |
1348 |
mkdir -p %{buildroot}%{_datadir}/glade3/catalogs |
1349 |
mv %{buildroot}%{baseinstdir}/share/glade/libreoffice-catalog.xml %{buildroot}%{_datadir}/glade3/catalogs |
1350 |
|
1351 |
# rhbz#1049543 install appdata |
1352 |
mkdir -p %{buildroot}%{_datadir}/appdata |
1353 |
cp -p sysui/desktop/appstream-appdata/*.appdata.xml %{buildroot}%{_datadir}/appdata |
1354 |
|
1355 |
%if 0%{?_enable_debug_packages} |
1356 |
# install man pages |
1357 |
install -m 0755 -d %{buildroot}%{_mandir}/man1 |
1358 |
install -m 0644 -p sysui/desktop/man/*.1 %{buildroot}%{_mandir}/man1 |
1359 |
for app in oobase oocalc oodraw ooffice ooimpress oomath ooviewdoc oowriter openoffice.org soffice; do |
1360 |
echo '.so man1/libreoffice.1' > $app.1 |
1361 |
install -m 0644 -p $app.1 %{buildroot}%{_mandir}/man1 |
1362 |
done |
1363 |
|
1364 |
export DESTDIR=%{buildroot} |
1365 |
make cmd cmd="install-gdb-printers -a %{_datadir}/gdb/auto-load%{baseinstdir} -c -i %{baseinstdir} -p %{_datadir}/libreoffice/gdb" |
1366 |
%endif |
1367 |
|
1368 |
cat> %{buildroot}%_bindir/libreoffice-gtk3 <<EOF |
1369 |
#!/bin/sh |
1370 |
SAL_USE_VCLPLUGIN=gtk3 exec oowriter |
1371 |
EOF |
1372 |
chmod +x %{buildroot}%_bindir/libreoffice-gtk3 |
1373 |
|
1374 |
%check |
1375 |
exit 0 |
1376 |
unset WITH_LANG |
1377 |
# work around flawed accessibility check |
1378 |
export JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY="1" |
1379 |
# TODO is the timeout still needed? |
1380 |
# FIXME find what is the problem |
1381 |
# timeout -k 2m 2h make smoketest.subsequentcheck VERBOSE=t |
1382 |
|
1383 |
%files |
1384 |
|
1385 |
%files filters |
1386 |
|
1387 |
%files core |
1388 |
%dir %{baseinstdir} |
1389 |
%dir %{baseinstdir}/help |
1390 |
%docdir %{baseinstdir}/help/en-US |
1391 |
%dir %{baseinstdir}/help/en-US |
1392 |
%{baseinstdir}/help/en-US/default.css |
1393 |
%{baseinstdir}/help/en-US/err.html |
1394 |
%{baseinstdir}/help/en-US/highcontrast1.css |
1395 |
%{baseinstdir}/help/en-US/highcontrast2.css |
1396 |
%{baseinstdir}/help/en-US/highcontrastblack.css |
1397 |
%{baseinstdir}/help/en-US/highcontrastwhite.css |
1398 |
%{baseinstdir}/help/en-US/sbasic.* |
1399 |
%{baseinstdir}/help/en-US/schart.* |
1400 |
%{baseinstdir}/help/en-US/shared.* |
1401 |
%{baseinstdir}/help/idxcaption.xsl |
1402 |
%{baseinstdir}/help/idxcontent.xsl |
1403 |
%{baseinstdir}/help/main_transform.xsl |
1404 |
%{baseinstdir}/presets |
1405 |
%dir %{baseinstdir}/program |
1406 |
%{baseinstdir}/program/libbasprovlo.so |
1407 |
%{baseinstdir}/program/libcairocanvaslo.so |
1408 |
%{baseinstdir}/program/libcanvasfactorylo.so |
1409 |
%dir %{baseinstdir}/program/classes |
1410 |
%{baseinstdir}/program/classes/commonwizards.jar |
1411 |
%{baseinstdir}/program/classes/form.jar |
1412 |
%{baseinstdir}/program/classes/query.jar |
1413 |
%{baseinstdir}/program/classes/officebean.jar |
1414 |
%{baseinstdir}/program/classes/report.jar |
1415 |
%{baseinstdir}/program/classes/ScriptFramework.jar |
1416 |
%{baseinstdir}/program/classes/ScriptProviderForJava.jar |
1417 |
%{baseinstdir}/program/classes/table.jar |
1418 |
%{baseinstdir}/program/classes/unoil.jar |
1419 |
%{baseinstdir}/program/classes/XMergeBridge.jar |
1420 |
%{baseinstdir}/program/classes/xmerge.jar |
1421 |
%{baseinstdir}/program/libcmdmaillo.so |
1422 |
%{baseinstdir}/program/libdeployment.so |
1423 |
%{baseinstdir}/program/libdeploymentgui.so |
1424 |
%{baseinstdir}/program/libdlgprovlo.so |
1425 |
%{baseinstdir}/program/libexpwraplo.so |
1426 |
%{baseinstdir}/program/libfastsaxlo.so |
1427 |
%{baseinstdir}/program/flat_logo.svg |
1428 |
%{baseinstdir}/program/libfps_officelo.so |
1429 |
%{baseinstdir}/program/gdbtrace |
1430 |
%{baseinstdir}/program/gengal |
1431 |
%{baseinstdir}/program/gengal.bin |
1432 |
%{baseinstdir}/program/gnome-open-url |
1433 |
%{baseinstdir}/program/gnome-open-url.bin |
1434 |
%{baseinstdir}/program/libhatchwindowfactorylo.so |
1435 |
%{baseinstdir}/program/libi18nsearchlo.so |
1436 |
%{baseinstdir}/program/libldapbe2lo.so |
1437 |
%{baseinstdir}/program/libacclo.so |
1438 |
%{baseinstdir}/program/libavmedia*.so |
1439 |
%{baseinstdir}/program/libbasctllo.so |
1440 |
%{baseinstdir}/program/libbiblo.so |
1441 |
%{baseinstdir}/program/libcached1.so |
1442 |
%{baseinstdir}/program/libcanvastoolslo.so |
1443 |
%{baseinstdir}/program/libchart*lo.so |
1444 |
%{baseinstdir}/program/libcollator_data.so |
1445 |
%{baseinstdir}/program/libcppcanvaslo.so |
1446 |
%{baseinstdir}/program/libctllo.so |
1447 |
%{baseinstdir}/program/libcuilo.so |
1448 |
%{baseinstdir}/program/libdbalo.so |
1449 |
%{baseinstdir}/program/libdbaselo.so |
1450 |
%{baseinstdir}/program/libdbaxmllo.so |
1451 |
%{baseinstdir}/program/libdbmmlo.so |
1452 |
%{baseinstdir}/program/libdbpool2.so |
1453 |
%{baseinstdir}/program/libdbtoolslo.so |
1454 |
%{baseinstdir}/program/libdbulo.so |
1455 |
%{baseinstdir}/program/libdeploymentmisclo.so |
1456 |
%{baseinstdir}/program/libdesktop_detectorlo.so |
1457 |
%{baseinstdir}/program/libdict_ja.so |
1458 |
%{baseinstdir}/program/libdict_zh.so |
1459 |
%{baseinstdir}/program/libdrawinglayerlo.so |
1460 |
%{baseinstdir}/program/libeditenglo.so |
1461 |
%{baseinstdir}/program/libembobj.so |
1462 |
%{baseinstdir}/program/libemboleobj.so |
1463 |
%{baseinstdir}/program/libevoab*.so |
1464 |
%{baseinstdir}/program/libevtattlo.so |
1465 |
%{baseinstdir}/program/libegilo.so |
1466 |
%{baseinstdir}/program/libemelo.so |
1467 |
%{baseinstdir}/program/libepblo.so |
1468 |
%{baseinstdir}/program/libepglo.so |
1469 |
%{baseinstdir}/program/libepplo.so |
1470 |
%{baseinstdir}/program/libepslo.so |
1471 |
%{baseinstdir}/program/libeptlo.so |
1472 |
%{baseinstdir}/program/liberalo.so |
1473 |
%{baseinstdir}/program/libetilo.so |
1474 |
%{baseinstdir}/program/libexplo.so |
1475 |
%{baseinstdir}/program/libfirebird_sdbclo.so |
1476 |
%{baseinstdir}/program/libicdlo.so |
1477 |
%{baseinstdir}/program/libicglo.so |
1478 |
%{baseinstdir}/program/libidxlo.so |
1479 |
%{baseinstdir}/program/libimelo.so |
1480 |
%{baseinstdir}/program/libindex_data.so |
1481 |
%{baseinstdir}/program/libipblo.so |
1482 |
%{baseinstdir}/program/libipdlo.so |
1483 |
%{baseinstdir}/program/libipslo.so |
1484 |
%{baseinstdir}/program/libiptlo.so |
1485 |
%{baseinstdir}/program/libipxlo.so |
1486 |
%{baseinstdir}/program/libiralo.so |
1487 |
%{baseinstdir}/program/libitglo.so |
1488 |
%{baseinstdir}/program/libitilo.so |
1489 |
%{baseinstdir}/program/libfilelo.so |
1490 |
%{baseinstdir}/program/libfilterconfiglo.so |
1491 |
%{baseinstdir}/program/libflatlo.so |
1492 |
%{baseinstdir}/program/libfrmlo.so |
1493 |
%{baseinstdir}/program/libguesslanglo.so |
1494 |
%{baseinstdir}/program/libhelplinkerlo.so |
1495 |
%{baseinstdir}/program/libhyphenlo.so |
1496 |
%{baseinstdir}/program/libjdbclo.so |
1497 |
%{baseinstdir}/program/liblnglo.so |
1498 |
%{baseinstdir}/program/libloglo.so |
1499 |
%{baseinstdir}/program/liblocaledata_en.so |
1500 |
%{baseinstdir}/program/liblocaledata_es.so |
1501 |
%{baseinstdir}/program/liblocaledata_euro.so |
1502 |
%{baseinstdir}/program/liblocaledata_others.so |
1503 |
%{baseinstdir}/program/libmcnttype.so |
1504 |
%{baseinstdir}/program/libmorklo.so |
1505 |
%{baseinstdir}/program/libmozbootstraplo.so |
1506 |
%{baseinstdir}/program/libmsfilterlo.so |
1507 |
%{baseinstdir}/program/libmtfrendererlo.so |
1508 |
%{baseinstdir}/program/libmysqllo.so |
1509 |
%{baseinstdir}/program/libodbclo.so |
1510 |
%{baseinstdir}/program/libodbcbaselo.so |
1511 |
%{baseinstdir}/program/liboglcanvaslo.so |
1512 |
%{baseinstdir}/program/liboffacclo.so |
1513 |
%{baseinstdir}/program/libooxlo.so |
1514 |
%{baseinstdir}/program/libpcrlo.so |
1515 |
%{baseinstdir}/program/libpdffilterlo.so |
1516 |
%{baseinstdir}/program/libpllo.so |
1517 |
%{baseinstdir}/program/libprotocolhandlerlo.so |
1518 |
%{baseinstdir}/program/libqstart_gtklo.so |
1519 |
%{baseinstdir}/program/librecentfile.so |
1520 |
%{baseinstdir}/program/libreslo.so |
1521 |
%{baseinstdir}/program/libsaxlo.so |
1522 |
%{baseinstdir}/program/libscnlo.so |
1523 |
%{baseinstdir}/program/libscriptframe.so |
1524 |
%{baseinstdir}/program/libsdlo.so |
1525 |
%{baseinstdir}/program/libsdfiltlo.so |
1526 |
%{baseinstdir}/program/libsdbc2.so |
1527 |
%{baseinstdir}/program/libsdbtlo.so |
1528 |
%{baseinstdir}/program/libsddlo.so |
1529 |
%{baseinstdir}/program/libsduilo.so |
1530 |
%{baseinstdir}/program/libspalo.so |
1531 |
%{baseinstdir}/program/libspelllo.so |
1532 |
%{baseinstdir}/program/libsrtrs1.so |
1533 |
%{baseinstdir}/program/libsvgiolo.so |
1534 |
%{baseinstdir}/program/libsvxlo.so |
1535 |
%{baseinstdir}/program/libsvxcorelo.so |
1536 |
%{baseinstdir}/program/libswdlo.so |
1537 |
%{baseinstdir}/program/libswlo.so |
1538 |
%{baseinstdir}/program/libtextconv_dict.so |
1539 |
%{baseinstdir}/program/libtextconversiondlgslo.so |
1540 |
%{baseinstdir}/program/libtextfdlo.so |
1541 |
%{baseinstdir}/program/libtvhlp1.so |
1542 |
%{baseinstdir}/program/libodfflatxmllo.so |
1543 |
# TODO: shouldn't it have lo suffix? |
1544 |
%{baseinstdir}/program/libucbhelper.so |
1545 |
%{baseinstdir}/program/libucpchelp1.so |
1546 |
%{baseinstdir}/program/libucpdav1.so |
1547 |
%{baseinstdir}/program/libucpftp1.so |
1548 |
%{baseinstdir}/program/libucphier1.so |
1549 |
%{baseinstdir}/program/libucppkg1.so |
1550 |
%{baseinstdir}/program/libunordflo.so |
1551 |
%{baseinstdir}/program/libunopkgapp.so |
1552 |
%{baseinstdir}/program/libunoxmllo.so |
1553 |
%{baseinstdir}/program/libuuilo.so |
1554 |
%{baseinstdir}/program/libvbahelperlo.so |
1555 |
%{baseinstdir}/program/libvclplug_genlo.so |
1556 |
%{baseinstdir}/program/libvclplug_gtklo.so |
1557 |
%if %{build_gtk3} |
1558 |
%{baseinstdir}/program/libvclplug_gtk3lo.so |
1559 |
%endif |
1560 |
%{baseinstdir}/program/libxmlfalo.so |
1561 |
%{baseinstdir}/program/libxmlfdlo.so |
1562 |
%{baseinstdir}/program/libxoflo.so |
1563 |
%{baseinstdir}/program/libxsec_fw.so |
1564 |
%{baseinstdir}/program/libxsec_xmlsec.so |
1565 |
%{baseinstdir}/program/libxsltdlglo.so |
1566 |
%{baseinstdir}/program/libxsltfilterlo.so |
1567 |
%{baseinstdir}/program/libxstor.so |
1568 |
# TODO how useful this is ? |
1569 |
%{baseinstdir}/program/liblosessioninstalllo.so |
1570 |
%{baseinstdir}/program/libmigrationoo2lo.so |
1571 |
%{baseinstdir}/program/libmigrationoo3lo.so |
1572 |
%{baseinstdir}/program/libmsformslo.so |
1573 |
%{baseinstdir}/program/nsplugin |
1574 |
%{baseinstdir}/program/open-url |
1575 |
%{baseinstdir}/program/types/offapi.rdb |
1576 |
%{baseinstdir}/program/libpasswordcontainerlo.so |
1577 |
%{baseinstdir}/program/pagein-common |
1578 |
%{baseinstdir}/program/pluginapp.bin |
1579 |
%dir %{baseinstdir}/program/resource |
1580 |
%{baseinstdir}/program/resource/avmediaen-US.res |
1581 |
%{baseinstdir}/program/resource/accen-US.res |
1582 |
%{baseinstdir}/program/resource/basctlen-US.res |
1583 |
%{baseinstdir}/program/resource/biben-US.res |
1584 |
%{baseinstdir}/program/resource/chartcontrolleren-US.res |
1585 |
%{baseinstdir}/program/resource/cuien-US.res |
1586 |
%{baseinstdir}/program/resource/dbaen-US.res |
1587 |
%{baseinstdir}/program/resource/dbmmen-US.res |
1588 |
%{baseinstdir}/program/resource/dbuen-US.res |
1589 |
%{baseinstdir}/program/resource/dbwen-US.res |
1590 |
%{baseinstdir}/program/resource/deploymenten-US.res |
1591 |
%{baseinstdir}/program/resource/deploymentguien-US.res |
1592 |
%{baseinstdir}/program/resource/dkten-US.res |
1593 |
%{baseinstdir}/program/resource/editengen-US.res |
1594 |
%{baseinstdir}/program/resource/epsen-US.res |
1595 |
%{baseinstdir}/program/resource/euren-US.res |
1596 |
%{baseinstdir}/program/resource/fps_officeen-US.res |
1597 |
%{baseinstdir}/program/resource/frmen-US.res |
1598 |
%{baseinstdir}/program/resource/fween-US.res |
1599 |
%{baseinstdir}/program/resource/galen-US.res |
1600 |
%{baseinstdir}/program/resource/impen-US.res |
1601 |
%{baseinstdir}/program/resource/ofaen-US.res |
1602 |
%{baseinstdir}/program/resource/pcren-US.res |
1603 |
%{baseinstdir}/program/resource/pdffilteren-US.res |
1604 |
%{baseinstdir}/program/resource/sben-US.res |
1605 |
%{baseinstdir}/program/resource/scnen-US.res |
1606 |
%{baseinstdir}/program/resource/sden-US.res |
1607 |
%{baseinstdir}/program/resource/sfxen-US.res |
1608 |
%{baseinstdir}/program/resource/spaen-US.res |
1609 |
%{baseinstdir}/program/resource/sdbten-US.res |
1610 |
%{baseinstdir}/program/resource/svlen-US.res |
1611 |
%{baseinstdir}/program/resource/svten-US.res |
1612 |
%{baseinstdir}/program/resource/svxen-US.res |
1613 |
%{baseinstdir}/program/resource/swen-US.res |
1614 |
%{baseinstdir}/program/resource/textconversiondlgsen-US.res |
1615 |
%{baseinstdir}/program/resource/tplen-US.res |
1616 |
%{baseinstdir}/program/resource/uuien-US.res |
1617 |
%{baseinstdir}/program/resource/upden-US.res |
1618 |
%{baseinstdir}/program/resource/vclen-US.res |
1619 |
%{baseinstdir}/program/resource/wzien-US.res |
1620 |
%{baseinstdir}/program/resource/xmlsecen-US.res |
1621 |
%{baseinstdir}/program/resource/xsltdlgen-US.res |
1622 |
%{baseinstdir}/program/senddoc |
1623 |
%dir %{baseinstdir}/program/services |
1624 |
%{baseinstdir}/program/services/services.rdb |
1625 |
%{baseinstdir}/program/libsimplecanvaslo.so |
1626 |
%{baseinstdir}/program/libslideshowlo.so |
1627 |
%{baseinstdir}/program/libsofficeapp.so |
1628 |
%{baseinstdir}/program/spadmin.bin |
1629 |
%{baseinstdir}/program/libstringresourcelo.so |
1630 |
%{baseinstdir}/program/libsysshlo.so |
1631 |
%{baseinstdir}/program/libucpcmis1lo.so |
1632 |
%{baseinstdir}/program/libucpexpand1lo.so |
1633 |
%{baseinstdir}/program/libucpextlo.so |
1634 |
%{baseinstdir}/program/libucptdoc1lo.so |
1635 |
%{baseinstdir}/program/unorc |
1636 |
%{baseinstdir}/program/libupdatefeedlo.so |
1637 |
%{baseinstdir}/ure-link |
1638 |
%{baseinstdir}/program/uri-encode |
1639 |
%{baseinstdir}/program/libvbaeventslo.so |
1640 |
%{baseinstdir}/program/libvclcanvaslo.so |
1641 |
%{baseinstdir}/program/versionrc |
1642 |
%{baseinstdir}/program/xid-fullscreen-on-all-monitors |
1643 |
%dir %{baseinstdir}/share |
1644 |
%dir %{baseinstdir}/share/Scripts |
1645 |
%{baseinstdir}/share/Scripts/java |
1646 |
%dir %{baseinstdir}/share/autotext |
1647 |
%{baseinstdir}/share/autotext/en-US |
1648 |
%{baseinstdir}/share/basic |
1649 |
%dir %{baseinstdir}/share/config |
1650 |
%{baseinstdir}/share/config/images.zip |
1651 |
%{baseinstdir}/share/config/images_crystal.zip |
1652 |
%{baseinstdir}/share/config/images_hicontrast.zip |
1653 |
%{baseinstdir}/share/config/images_oxygen.zip |
1654 |
%{baseinstdir}/share/config/images_sifr.zip |
1655 |
%{baseinstdir}/share/config/images_tango.zip |
1656 |
%{baseinstdir}/share/config/psetup.xpm |
1657 |
%{baseinstdir}/share/config/psetupl.xpm |
1658 |
%dir %{baseinstdir}/share/config/soffice.cfg |
1659 |
%{baseinstdir}/share/config/soffice.cfg/modules |
1660 |
%if %{with langpacks} |
1661 |
# UI translations go into langpacks |
1662 |
%exclude %{baseinstdir}/share/config/soffice.cfg/modules/*/ui/res |
1663 |
%endif |
1664 |
%{baseinstdir}/share/config/soffice.cfg/*/ui |
1665 |
%if %{with langpacks} |
1666 |
# UI translations go into langpacks |
1667 |
%exclude %{baseinstdir}/share/config/soffice.cfg/*/ui/res |
1668 |
%endif |
1669 |
%{baseinstdir}/share/config/webcast |
1670 |
%{baseinstdir}/share/config/wizard |
1671 |
%dir %{baseinstdir}/share/dtd |
1672 |
%{baseinstdir}/share/dtd/officedocument |
1673 |
%{baseinstdir}/share/gallery |
1674 |
%dir %{baseinstdir}/share/labels |
1675 |
%{baseinstdir}/share/labels/labels.xml |
1676 |
%dir %{baseinstdir}/share/psprint |
1677 |
%config %{baseinstdir}/share/psprint/psprint.conf |
1678 |
%{baseinstdir}/share/psprint/driver |
1679 |
%dir %{baseinstdir}/share/registry |
1680 |
%{baseinstdir}/share/registry/gnome.xcd |
1681 |
%{baseinstdir}/share/registry/lingucomponent.xcd |
1682 |
%{baseinstdir}/share/registry/main.xcd |
1683 |
%{baseinstdir}/share/registry/oo-ad-ldap.xcd.sample |
1684 |
%{baseinstdir}/share/registry/oo-ldap.xcd.sample |
1685 |
%{baseinstdir}/share/registry/Langpack-en-US.xcd |
1686 |
%dir %{baseinstdir}/share/registry/res |
1687 |
%{baseinstdir}/share/registry/res/fcfg_langpack_en-US.xcd |
1688 |
%dir %{baseinstdir}/share/template |
1689 |
%{baseinstdir}/share/template/en-US |
1690 |
%dir %{baseinstdir}/share/template/common |
1691 |
%{baseinstdir}/share/template/common/internal |
1692 |
%{baseinstdir}/share/template/common/layout |
1693 |
%{baseinstdir}/share/template/common/wizard |
1694 |
%{baseinstdir}/share/template/wizard |
1695 |
%dir %{baseinstdir}/share/wordbook |
1696 |
%{baseinstdir}/share/wordbook/en-GB.dic |
1697 |
%{baseinstdir}/share/wordbook/en-US.dic |
1698 |
%{baseinstdir}/share/wordbook/technical.dic |
1699 |
%dir %{baseinstdir}/share/xslt |
1700 |
%{baseinstdir}/share/xslt/common |
1701 |
%dir %{baseinstdir}/share/xslt/export |
1702 |
%{baseinstdir}/share/xslt/export/common |
1703 |
%{baseinstdir}/share/xslt/export/spreadsheetml |
1704 |
%{baseinstdir}/share/xslt/export/wordml |
1705 |
%dir %{baseinstdir}/share/xslt/import |
1706 |
%{baseinstdir}/share/xslt/import/common |
1707 |
%{baseinstdir}/share/xslt/import/spreadsheetml |
1708 |
%{baseinstdir}/share/xslt/import/wordml |
1709 |
%{baseinstdir}/program/liblnthlo.so |
1710 |
%{_bindir}/unopkg |
1711 |
%{_mandir}/man1/unopkg.1* |
1712 |
#icons and mime |
1713 |
%{_datadir}/icons/*/*/*/libreoffice* |
1714 |
%{_datadir}/mime-info/libreoffice.* |
1715 |
%{baseinstdir}/program/libxmlsecurity.so |
1716 |
%{_datadir}/mime/packages/libreoffice.xml |
1717 |
%{baseinstdir}/program/libconfigmgrlo.so |
1718 |
%{baseinstdir}/program/libdesktopbe1lo.so |
1719 |
%{baseinstdir}/program/libfsstoragelo.so |
1720 |
%{baseinstdir}/program/libgconfbe1lo.so |
1721 |
%{baseinstdir}/program/libi18npoollo.so |
1722 |
%{baseinstdir}/program/libbasegfxlo.so |
1723 |
# TODO: shouldn't it have lo suffix? |
1724 |
%{baseinstdir}/program/libcomphelper.so |
1725 |
%{baseinstdir}/program/libfwelo.so |
1726 |
%{baseinstdir}/program/libfwilo.so |
1727 |
%{baseinstdir}/program/libfwklo.so |
1728 |
%{baseinstdir}/program/libfwllo.so |
1729 |
%{baseinstdir}/program/libfwmlo.so |
1730 |
%{baseinstdir}/program/libi18nlangtag.so |
1731 |
# TODO: shouldn't it have lo suffix? |
1732 |
%{baseinstdir}/program/libi18nutil.so |
1733 |
%{baseinstdir}/program/libpackage2.so |
1734 |
%{baseinstdir}/program/libsblo.so |
1735 |
%{baseinstdir}/program/libsfxlo.so |
1736 |
%{baseinstdir}/program/libsotlo.so |
1737 |
%{baseinstdir}/program/libspllo.so |
1738 |
%{baseinstdir}/program/libspl_unxlo.so |
1739 |
%{baseinstdir}/program/libsvllo.so |
1740 |
%{baseinstdir}/program/libsvtlo.so |
1741 |
%{baseinstdir}/program/libtklo.so |
1742 |
%{baseinstdir}/program/libtllo.so |
1743 |
%{baseinstdir}/program/libucb1.so |
1744 |
%{baseinstdir}/program/libucpfile1.so |
1745 |
%{baseinstdir}/program/libutllo.so |
1746 |
%{baseinstdir}/program/libvcllo.so |
1747 |
%{baseinstdir}/program/libxmlscriptlo.so |
1748 |
%{baseinstdir}/program/libxolo.so |
1749 |
%{baseinstdir}/program/liblocalebe1lo.so |
1750 |
%{baseinstdir}/program/libucpgio1lo.so |
1751 |
%{baseinstdir}/program/types/oovbaapi.rdb |
1752 |
%if %with_mergedlibs |
1753 |
%{baseinstdir}/program/libmergedlo.so |
1754 |
%endif |
1755 |
#share unopkg |
1756 |
%dir %{baseinstdir}/share/extensions |
1757 |
%{baseinstdir}/share/extensions/package.txt |
1758 |
%{baseinstdir}/program/unopkg |
1759 |
%{baseinstdir}/program/unopkg.bin |
1760 |
%{baseinstdir}/program/bootstraprc |
1761 |
%{baseinstdir}/program/fundamentalrc |
1762 |
%{baseinstdir}/program/setuprc |
1763 |
%doc %{baseinstdir}/CREDITS.fodt |
1764 |
%doc %{baseinstdir}/LICENSE |
1765 |
%doc %{baseinstdir}/LICENSE.html |
1766 |
%doc %{baseinstdir}/LICENSE.fodt |
1767 |
%doc %{baseinstdir}/NOTICE |
1768 |
%{baseinstdir}/program/intro.* |
1769 |
%{baseinstdir}/program/soffice |
1770 |
%{baseinstdir}/program/soffice.bin |
1771 |
%{baseinstdir}/program/sofficerc |
1772 |
%{baseinstdir}/program/spadmin |
1773 |
%{baseinstdir}/program/unoinfo |
1774 |
%{baseinstdir}/program/libnpsoplugin.so |
1775 |
%{baseinstdir}/program/oosplash |
1776 |
%{baseinstdir}/program/shell/ |
1777 |
%{baseinstdir}/share/xdg/ |
1778 |
%{baseinstdir}/program/redirectrc |
1779 |
%{_datadir}/applications/libreoffice-startcenter.desktop |
1780 |
#launchers |
1781 |
%{_bindir}/libreoffice |
1782 |
%if %{build_gtk3} |
1783 |
%{_bindir}/libreoffice-gtk3 |
1784 |
%endif |
1785 |
%{_bindir}/openoffice.org |
1786 |
%{_bindir}/soffice |
1787 |
%{_bindir}/ooffice |
1788 |
%{_bindir}/ooviewdoc |
1789 |
|
1790 |
# Exclude files that are already in libreoffice-java-common |
1791 |
%exclude %{baseinstdir}/program/classes/commonwizards.jar |
1792 |
%exclude %{baseinstdir}/program/classes/form.jar |
1793 |
%exclude %{baseinstdir}/program/classes/query.jar |
1794 |
%exclude %{baseinstdir}/program/classes/officebean.jar |
1795 |
%exclude %{baseinstdir}/program/classes/report.jar |
1796 |
%{_mandir}/man1/libreoffice.1* |
1797 |
%{_mandir}/man1/openoffice.org.1* |
1798 |
%{_mandir}/man1/soffice.1* |
1799 |
%{_mandir}/man1/ooffice.1* |
1800 |
%{_mandir}/man1/ooviewdoc.1* |
1801 |
%exclude %{baseinstdir}/program/classes/ScriptFramework.jar |
1802 |
%exclude %{baseinstdir}/program/classes/ScriptProviderForJava.jar |
1803 |
%exclude %{baseinstdir}/program/classes/table.jar |
1804 |
%exclude %{baseinstdir}/program/classes/unoil.jar |
1805 |
%exclude %{baseinstdir}/program/classes/XMergeBridge.jar |
1806 |
%exclude %{baseinstdir}/program/classes/xmerge.jar |
1807 |
%exclude %{baseinstdir}/program/libofficebean.so |
1808 |
%exclude %{baseinstdir}/share/Scripts/java |
1809 |
|
1810 |
%files base |
1811 |
%{baseinstdir}/help/en-US/sdatabase.* |
1812 |
%{baseinstdir}/program/classes/hsqldb.jar |
1813 |
%{baseinstdir}/program/classes/reportbuilder.jar |
1814 |
%{baseinstdir}/program/classes/sdbc_hsqldb.jar |
1815 |
%{baseinstdir}/program/libabplo.so |
1816 |
%if 0%{?rhel} |
1817 |
%{baseinstdir}/program/libfbembed.so.* |
1818 |
%endif |
1819 |
%{baseinstdir}/program/libdbplo.so |
1820 |
%{baseinstdir}/program/libhsqldb.so |
1821 |
%{baseinstdir}/program/librptlo.so |
1822 |
%{baseinstdir}/program/librptuilo.so |
1823 |
%{baseinstdir}/program/librptxmllo.so |
1824 |
%{baseinstdir}/program/resource/abpen-US.res |
1825 |
%{baseinstdir}/program/resource/cnren-US.res |
1826 |
%{baseinstdir}/program/resource/dbpen-US.res |
1827 |
%{baseinstdir}/program/resource/rpten-US.res |
1828 |
%{baseinstdir}/program/resource/rptuien-US.res |
1829 |
%{baseinstdir}/program/resource/sdbclen-US.res |
1830 |
%{baseinstdir}/program/resource/sdberren-US.res |
1831 |
%{baseinstdir}/share/registry/base.xcd |
1832 |
%{baseinstdir}/share/registry/reportbuilder.xcd |
1833 |
%{baseinstdir}/program/sbase |
1834 |
%{_datadir}/applications/libreoffice-base.desktop |
1835 |
%{_bindir}/oobase |
1836 |
%{_mandir}/man1/oobase.1* |
1837 |
|
1838 |
%files bsh |
1839 |
%{baseinstdir}/program/classes/ScriptProviderForBeanShell.jar |
1840 |
%{baseinstdir}/program/services/scriptproviderforbeanshell.rdb |
1841 |
%{baseinstdir}/share/Scripts/beanshell |
1842 |
|
1843 |
%files rhino |
1844 |
%{baseinstdir}/program/classes/js.jar |
1845 |
%{baseinstdir}/program/classes/ScriptProviderForJavaScript.jar |
1846 |
%{baseinstdir}/program/services/scriptproviderforjavascript.rdb |
1847 |
%{baseinstdir}/share/Scripts/javascript |
1848 |
|
1849 |
%files wiki-publisher |
1850 |
%docdir %{baseinstdir}/share/extensions/wiki-publisher/license |
1851 |
%{baseinstdir}/share/extensions/wiki-publisher |
1852 |
|
1853 |
%files nlpsolver |
1854 |
%docdir %{baseinstdir}/share/extensions/nlpsolver/help |
1855 |
%{baseinstdir}/share/extensions/nlpsolver |
1856 |
|
1857 |
%files ogltrans |
1858 |
%{baseinstdir}/program/libOGLTranslo.so |
1859 |
%dir %{baseinstdir}/share/config/soffice.cfg/simpress |
1860 |
%{baseinstdir}/share/config/soffice.cfg/simpress/transitions-ogl.xml |
1861 |
%{baseinstdir}/share/registry/ogltrans.xcd |
1862 |
|
1863 |
%files pdfimport |
1864 |
%{baseinstdir}/program/libpdfimportlo.so |
1865 |
%{baseinstdir}/program/xpdfimport |
1866 |
%{baseinstdir}/share/registry/pdfimport.xcd |
1867 |
%dir %{baseinstdir}/share/xpdfimport |
1868 |
%{baseinstdir}/share/xpdfimport/xpdfimport_err.pdf |
1869 |
|
1870 |
%_font_pkg -n %{fontname} opens___.ttf |
1871 |
%doc instdir/LICENSE |
1872 |
|
1873 |
%files calc |
1874 |
%{baseinstdir}/help/en-US/scalc.* |
1875 |
%{baseinstdir}/program/libanalysislo.so |
1876 |
%{baseinstdir}/program/libcalclo.so |
1877 |
%{baseinstdir}/program/libdatelo.so |
1878 |
%{baseinstdir}/program/libforlo.so |
1879 |
%{baseinstdir}/program/libforuilo.so |
1880 |
%{baseinstdir}/program/libpricinglo.so |
1881 |
%{baseinstdir}/program/libsclo.so |
1882 |
%{baseinstdir}/program/libscdlo.so |
1883 |
%{baseinstdir}/program/libscfiltlo.so |
1884 |
%{baseinstdir}/program/libscopencllo.so |
1885 |
%{baseinstdir}/program/libscuilo.so |
1886 |
%{baseinstdir}/program/libsolverlo.so |
1887 |
%{baseinstdir}/program/resource/analysisen-US.res |
1888 |
%{baseinstdir}/program/resource/dateen-US.res |
1889 |
%{baseinstdir}/program/resource/foren-US.res |
1890 |
%{baseinstdir}/program/resource/foruien-US.res |
1891 |
%{baseinstdir}/program/resource/pricingen-US.res |
1892 |
%{baseinstdir}/program/resource/scen-US.res |
1893 |
%{baseinstdir}/program/resource/solveren-US.res |
1894 |
%{baseinstdir}/program/libvbaobjlo.so |
1895 |
%{baseinstdir}/share/registry/calc.xcd |
1896 |
%{baseinstdir}/program/pagein-calc |
1897 |
%{baseinstdir}/program/scalc |
1898 |
%{_datadir}/applications/libreoffice-calc.desktop |
1899 |
%{_bindir}/oocalc |
1900 |
%{_mandir}/man1/oocalc.1* |
1901 |
|
1902 |
%files draw |
1903 |
%{baseinstdir}/help/en-US/sdraw.* |
1904 |
%{baseinstdir}/share/registry/draw.xcd |
1905 |
%{baseinstdir}/program/pagein-draw |
1906 |
%{baseinstdir}/program/sdraw |
1907 |
%{_datadir}/applications/libreoffice-draw.desktop |
1908 |
%{_bindir}/oodraw |
1909 |
%{_mandir}/man1/oodraw.1* |
1910 |
|
1911 |
%files emailmerge |
1912 |
%{baseinstdir}/program/mailmerge.py* |
1913 |
%{baseinstdir}/program/msgbox.py* |
1914 |
%{baseinstdir}/program/officehelper.py* |
1915 |
|
1916 |
%files writer |
1917 |
%{baseinstdir}/help/en-US/swriter.* |
1918 |
%{baseinstdir}/program/libhwplo.so |
1919 |
%{baseinstdir}/program/liblwpftlo.so |
1920 |
%{baseinstdir}/program/libmswordlo.so |
1921 |
%{baseinstdir}/program/libswuilo.so |
1922 |
%{baseinstdir}/program/libt602filterlo.so |
1923 |
%{baseinstdir}/program/libwpftwriterlo.so |
1924 |
%{baseinstdir}/program/libwriterfilterlo.so |
1925 |
%{baseinstdir}/program/libvbaswobjlo.so |
1926 |
%{baseinstdir}/program/resource/t602filteren-US.res |
1927 |
%{baseinstdir}/share/registry/writer.xcd |
1928 |
%{baseinstdir}/program/pagein-writer |
1929 |
%{baseinstdir}/program/swriter |
1930 |
%{_datadir}/applications/libreoffice-writer.desktop |
1931 |
%{_bindir}/oowriter |
1932 |
%{_mandir}/man1/oowriter.1* |
1933 |
|
1934 |
%files impress |
1935 |
%{baseinstdir}/help/en-US/simpress.* |
1936 |
%{baseinstdir}/program/libanimcorelo.so |
1937 |
%{baseinstdir}/program/libplacewarelo.so |
1938 |
%{baseinstdir}/program/libPresentationMinimizerlo.so |
1939 |
%{baseinstdir}/program/libPresenterScreenlo.so |
1940 |
%{baseinstdir}/program/libwpftimpresslo.so |
1941 |
%dir %{baseinstdir}/share/config/soffice.cfg/simpress |
1942 |
%{baseinstdir}/share/config/soffice.cfg/simpress/effects.xml |
1943 |
%{baseinstdir}/share/config/soffice.cfg/simpress/layoutlist.xml |
1944 |
%{baseinstdir}/share/config/soffice.cfg/simpress/objectlist.xml |
1945 |
%{baseinstdir}/share/config/soffice.cfg/simpress/transitions.xml |
1946 |
%{baseinstdir}/share/registry/impress.xcd |
1947 |
%{baseinstdir}/program/pagein-impress |
1948 |
%{baseinstdir}/program/simpress |
1949 |
%{_datadir}/applications/libreoffice-impress.desktop |
1950 |
%{_bindir}/ooimpress |
1951 |
%{_mandir}/man1/ooimpress.1* |
1952 |
|
1953 |
%files math |
1954 |
%{baseinstdir}/help/en-US/smath.* |
1955 |
%{baseinstdir}/program/libsmlo.so |
1956 |
%{baseinstdir}/program/libsmdlo.so |
1957 |
%{baseinstdir}/program/resource/smen-US.res |
1958 |
%{baseinstdir}/share/registry/math.xcd |
1959 |
%{baseinstdir}/program/smath |
1960 |
%{_datadir}/applications/libreoffice-math.desktop |
1961 |
%{_bindir}/oomath |
1962 |
%{_mandir}/man1/oomath.1* |
1963 |
|
1964 |
%files graphicfilter |
1965 |
%{baseinstdir}/program/libflashlo.so |
1966 |
%{baseinstdir}/program/libgraphicfilterlo.so |
1967 |
%{baseinstdir}/program/libsvgfilterlo.so |
1968 |
%{baseinstdir}/program/libwpftdrawlo.so |
1969 |
%{baseinstdir}/share/registry/graphicfilter.xcd |
1970 |
|
1971 |
%files xsltfilter |
1972 |
%dir %{baseinstdir}/share/xslt |
1973 |
%{baseinstdir}/share/xslt/docbook |
1974 |
%dir %{baseinstdir}/share/xslt/export |
1975 |
%{baseinstdir}/share/xslt/export/uof |
1976 |
%{baseinstdir}/share/xslt/export/xhtml |
1977 |
%dir %{baseinstdir}/share/xslt/import |
1978 |
%{baseinstdir}/share/xslt/import/uof |
1979 |
%{baseinstdir}/share/registry/xsltfilter.xcd |
1980 |
%{_datadir}/applications/libreoffice-xsltfilter.desktop |
1981 |
|
1982 |
%files postgresql |
1983 |
%{baseinstdir}/program/libpostgresql-sdbclo.so |
1984 |
%{baseinstdir}/program/libpostgresql-sdbc-impllo.so |
1985 |
%{baseinstdir}/program/postgresql-sdbc.ini |
1986 |
%{baseinstdir}/program/services/postgresql-sdbc.rdb |
1987 |
%{baseinstdir}/share/registry/postgresql.xcd |
1988 |
|
1989 |
%files ure |
1990 |
%doc instdir/LICENSE |
1991 |
%{ureinstdir} |
1992 |
|
1993 |
%files sdk |
1994 |
%{sdkinstdir}/ |
1995 |
%exclude %{sdkinstdir}/docs/ |
1996 |
%exclude %{sdkinstdir}/examples/ |
1997 |
|
1998 |
%files sdk-doc |
1999 |
%docdir %{sdkinstdir}/docs |
2000 |
%{sdkinstdir}/docs/ |
2001 |
%{sdkinstdir}/examples/ |
2002 |
|
2003 |
%files headless |
2004 |
%{baseinstdir}/program/libbasebmplo.so |
2005 |
%{baseinstdir}/program/libvclplug_svplo.so |
2006 |
|
2007 |
%files pyuno |
2008 |
%{baseinstdir}/program/libpyuno.so |
2009 |
%{baseinstdir}/program/pythonloader.py* |
2010 |
%{baseinstdir}/program/libpythonloaderlo.so |
2011 |
%{baseinstdir}/program/pythonloader.unorc |
2012 |
%{baseinstdir}/program/pythonscript.py* |
2013 |
%{baseinstdir}/program/pyuno.so |
2014 |
%{baseinstdir}/program/services/pyuno.rdb |
2015 |
%{baseinstdir}/program/services/scriptproviderforpython.rdb |
2016 |
%{baseinstdir}/program/wizards |
2017 |
%dir %{baseinstdir}/share/Scripts |
2018 |
%{baseinstdir}/share/Scripts/python |
2019 |
%exclude %{baseinstdir}/share/Scripts/python/LibreLogo |
2020 |
%{python3_sitearch}/uno.py* |
2021 |
%{python3_sitearch}/unohelper.py* |
2022 |
%{python3_sitearch}/__pycache__/uno.cpython-* |
2023 |
%{python3_sitearch}/__pycache__/unohelper.cpython-* |
2024 |
%{baseinstdir}/share/registry/pyuno.xcd |
2025 |
|
2026 |
%files librelogo |
2027 |
%{baseinstdir}/share/registry/librelogo.xcd |
2028 |
%{baseinstdir}/share/Scripts/python/LibreLogo |
2029 |
|
2030 |
%files glade |
2031 |
%{baseinstdir}/program/ui-previewer |
2032 |
%{_datadir}/glade3/catalogs/libreoffice-catalog.xml |
2033 |
|
2034 |
%if %{build_kde} |
2035 |
%files kde |
2036 |
%{baseinstdir}/program/kde-open-url |
2037 |
%{baseinstdir}/program/libkde4be1lo.so |
2038 |
%{baseinstdir}/program/libvclplug_kde4lo.so |
2039 |
%endif |
2040 |
|
2041 |
%files appdata |
2042 |
%doc instdir/LICENSE |
2043 |
%dir %{_datadir}/appdata |
2044 |
%{_datadir}/appdata/*.appdata.xml |
2045 |
|
2046 |
|
2047 |
%files java-common |
2048 |
%dir %{baseinstdir}/program/classes |
2049 |
%{baseinstdir}/program/classes/commonwizards.jar |
2050 |
%{baseinstdir}/program/classes/form.jar |
2051 |
%{baseinstdir}/program/classes/query.jar |
2052 |
%{baseinstdir}/program/classes/officebean.jar |
2053 |
%{baseinstdir}/program/classes/report.jar |
2054 |
%{baseinstdir}/program/classes/reportbuilderwizard.jar |
2055 |
%{baseinstdir}/program/classes/ScriptFramework.jar |
2056 |
%{baseinstdir}/program/classes/ScriptProviderForJava.jar |
2057 |
%{baseinstdir}/program/classes/table.jar |
2058 |
%{baseinstdir}/program/classes/unoil.jar |
2059 |
%{baseinstdir}/program/classes/XMergeBridge.jar |
2060 |
%{baseinstdir}/program/classes/xmerge.jar |
2061 |
%{baseinstdir}/program/libofficebean.so |
2062 |
%{baseinstdir}/share/Scripts/java |