]>
Commit | Line | Data |
---|---|---|
048deb2d JR |
1 | # TODO: |
2 | # - consider --enable-libproxy | |
3 | # - do something with *.rdf file, there if file conflict with other lang packages | |
b19e17d8 JB |
4 | # |
5 | # Conditional build: | |
7c87af2b | 6 | %bcond_without ldap # disable e-mail address lookups in LDAP directories |
c7d608a7 | 7 | %bcond_without kerberos # disable krb5 support |
50d95fcd | 8 | %bcond_without lightning # disable Lightning calendar |
c7d608a7 | 9 | %bcond_with crashreporter # report crashes to crash-stats.mozilla.com |
bd8dbb8a | 10 | %bcond_with tests # enable tests (whatever they check) |
6930f277 JB |
11 | %bcond_with lowmem # lower memory requirements |
12 | ||
13 | %ifarch %{ix86} %{arm} aarch64 | |
14 | %define with_lowmem 1 | |
15 | %endif | |
24441e9c | 16 | |
5a870fa3 JB |
17 | %define nspr_ver 4.13.1 |
18 | %define nss_ver 3.28.6 | |
24441e9c | 19 | |
24441e9c JR |
20 | # The actual sqlite version (see RHBZ#480989): |
21 | %define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR) | |
24441e9c | 22 | |
048deb2d JR |
23 | # UPDATING TRANSALTIONS: |
24 | %if 0 | |
25 | rm -vf *.xpi | |
26 | ./builder -g | |
50d95fcd JB |
27 | V=2.49.5 |
28 | U=http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/$V/langpacks/linux-i686/ | |
048deb2d JR |
29 | curl -s $U | sed -ne 's,.*href="\([^"]\+\)/".*,'"$U"'xpi/\1.xpi,p' |
30 | %endif | |
31 | ||
dc51aa63 | 32 | Summary: SeaMonkey Community Edition - web browser |
fda067df ER |
33 | Summary(es.UTF-8): Navegador de Internet SeaMonkey Community Edition |
34 | Summary(pl.UTF-8): SeaMonkey Community Edition - przeglądarka WWW | |
35 | Summary(pt_BR.UTF-8): Navegador SeaMonkey Community Edition | |
b19e17d8 | 36 | Name: seamonkey |
6930f277 JB |
37 | Version: 2.53.4 |
38 | Release: 1 | |
c7d608a7 | 39 | License: MPL v2.0 |
b19e17d8 | 40 | Group: X11/Applications/Networking |
6930f277 JB |
41 | Source0: http://releases.mozilla.org/pub/seamonkey/releases/%{version}/source/%{name}-%{version}.source.tar.xz |
42 | # Source0-md5: bbf02af3586f1d488e77517f8cd9f439 | |
16e155ba JB |
43 | Source4: %{name}.desktop |
44 | Source5: %{name}-composer.desktop | |
16e155ba | 45 | Source7: %{name}-mail.desktop |
16e155ba | 46 | Source9: %{name}.sh |
6930f277 JB |
47 | Source100: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.cs.langpack.xpi |
48 | # Source100-md5: fbd24a894e5f38c856c96e56ffcc385d | |
49 | Source101: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.de.langpack.xpi | |
50 | # Source101-md5: f6b49b75f5243e36c4a98bf7146d6b1a | |
51 | Source102: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.en-GB.langpack.xpi | |
52 | # Source102-md5: 4dcbd1cd568e299f18fa2bc95cf6152c | |
53 | Source103: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.en-US.langpack.xpi | |
54 | # Source103-md5: f2a4f7ac0fbf7a06c9021c357c5af503 | |
55 | Source104: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.es-AR.langpack.xpi | |
56 | # Source104-md5: 28f2ab4ba66a0020e24d6e411c1d3b3b | |
57 | Source105: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.es-ES.langpack.xpi | |
58 | # Source105-md5: 83511c772e41de9c3d906bc92f47f072 | |
59 | Source106: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.fi.langpack.xpi | |
60 | # Source106-md5: 1767f0472e71c00e6e4c8e160dc4fbcc | |
61 | Source107: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.fr.langpack.xpi | |
62 | # Source107-md5: b6e096d2149393a4d293ddeca6a25bee | |
63 | Source108: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.hu.langpack.xpi | |
64 | # Source108-md5: e5aecc27125a241eae56daf130e6faf3 | |
65 | Source109: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.it.langpack.xpi | |
66 | # Source109-md5: 2619029fe3b09dff08a91da686607bd5 | |
67 | Source110: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.ja.langpack.xpi | |
68 | # Source110-md5: 2f7dc3fb8c36f27530f852cd2af1debe | |
69 | Source111: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.ka.langpack.xpi | |
70 | # Source111-md5: d6217e7033b8706a1d264d8afed2f191 | |
71 | Source112: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.nb-NO.langpack.xpi | |
72 | # Source112-md5: e1e358c42db67f02e789f5e147a6ea9c | |
73 | Source113: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.nl.langpack.xpi | |
74 | # Source113-md5: abaa8c33c5051a8e3fe3826e1076c161 | |
75 | Source114: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.pl.langpack.xpi | |
76 | # Source114-md5: 8b0803dce15fcb73f4f196800df8af7b | |
77 | Source115: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.pt-BR.langpack.xpi | |
78 | # Source115-md5: fbe78878c25d68204b17e46ac865ebca | |
79 | Source116: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.pt-PT.langpack.xpi | |
80 | # Source116-md5: 70e3c8c4b232b51ee8e290aa914f7fc6 | |
81 | Source117: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.ru.langpack.xpi | |
82 | # Source117-md5: 88b0109f28bd7b46d6dbd8687d1a855e | |
83 | Source118: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.sk.langpack.xpi | |
84 | # Source118-md5: 5ecc927c3bb08686ad268bab206e9d4f | |
85 | Source119: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.sv-SE.langpack.xpi | |
86 | # Source119-md5: 59f51d736df33d9d729d7b5ba961b911 | |
87 | Source120: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.zh-CN.langpack.xpi | |
88 | # Source120-md5: c12a3ec7a48811f81fbbc02ab6a00ce0 | |
89 | Source121: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.zh-TW.langpack.xpi | |
90 | # Source121-md5: 36642e52ba7bd0562b5498d4760bfbec | |
91 | Patch0: %{name}-sysctl.patch | |
92 | Patch1: %{name}-mozilla-revert-1332139.patch | |
93 | Patch2: %{name}-pld-branding.patch | |
c7d608a7 | 94 | Patch3: %{name}-enable-addons.patch |
16e155ba | 95 | # Edit patch below and restore --system-site-packages when system virtualenv gets 1.7 upgrade |
ceb753a6 JB |
96 | Patch4: %{name}-system-virtualenv.patch |
97 | Patch5: %{name}-icu-detect.patch | |
ceb753a6 | 98 | URL: https://www.seamonkey-project.org/ |
bd8dbb8a | 99 | BuildRequires: GConf2-devel >= 1.2.1 |
7c87af2b JR |
100 | BuildRequires: OpenGL-devel |
101 | BuildRequires: alsa-lib-devel | |
ceb753a6 | 102 | BuildRequires: autoconf2_13 >= 2.13 |
7c87af2b JR |
103 | BuildRequires: bzip2-devel |
104 | BuildRequires: cairo-devel >= 1.10.2-5 | |
105 | BuildRequires: dbus-glib-devel >= 0.60 | |
ceb753a6 | 106 | BuildRequires: fontconfig-devel >= 1:2.7.0 |
b19e17d8 | 107 | BuildRequires: freetype-devel >= 1:2.1.8 |
ceb753a6 | 108 | BuildRequires: glib2-devel >= 1:2.22 |
6930f277 JB |
109 | BuildRequires: gtk+2-devel >= 2:2.18 |
110 | BuildRequires: gtk+3-devel >= 3.4.0 | |
7c87af2b JR |
111 | %{?with_kerberos:BuildRequires: heimdal-devel >= 0.7.1} |
112 | BuildRequires: hunspell-devel | |
ceb753a6 JB |
113 | # DECnet (dnprogs.spec), not dummy net (libdnet.spec) |
114 | #BuildRequires: libdnet-devel | |
7c87af2b | 115 | BuildRequires: libevent-devel >= 1.4.7 |
bd8dbb8a JR |
116 | # standalone libffi 3.0.9 or gcc's from 4.5(?)+ |
117 | BuildRequires: libffi-devel >= 6:3.0.9 | |
c7d608a7 | 118 | BuildRequires: libicu-devel >= 50.1 |
16e155ba | 119 | # requires libjpeg-turbo implementing at least libjpeg 6b API |
b19e17d8 | 120 | BuildRequires: libjpeg-devel >= 6b |
16e155ba | 121 | BuildRequires: libjpeg-turbo-devel |
7c87af2b JR |
122 | BuildRequires: libnotify-devel >= 0.4 |
123 | BuildRequires: libpng(APNG)-devel >= 0.10 | |
ceb753a6 JB |
124 | BuildRequires: libpng-devel >= 2:1.6.21 |
125 | BuildRequires: libstdc++-devel >= 6:4.7 | |
126 | BuildRequires: libvpx-devel >= 1.5.0 | |
757edfb3 | 127 | BuildRequires: mozldap-devel >= 6.0 |
7c87af2b JR |
128 | BuildRequires: nspr-devel >= 1:%{nspr_ver} |
129 | BuildRequires: nss-devel >= 1:%{nss_ver} | |
757edfb3 | 130 | BuildRequires: pango-devel >= 1:1.22.0 |
bd8dbb8a | 131 | BuildRequires: perl-base >= 1:5.6 |
7c87af2b | 132 | BuildRequires: perl-modules >= 5.004 |
ceb753a6 | 133 | BuildRequires: pixman-devel >= 0.19.2 |
b19e17d8 | 134 | BuildRequires: pkgconfig |
ceb753a6 JB |
135 | BuildRequires: python >= 1:2.7 |
136 | BuildRequires: python-modules >= 1:2.7 | |
80e2f4a2 | 137 | BuildRequires: python-virtualenv >= 15 |
c1527db1 | 138 | BuildRequires: rpm >= 4.4.9-56 |
7c87af2b | 139 | BuildRequires: rpmbuild(macros) >= 1.601 |
b19e17d8 | 140 | BuildRequires: sed >= 4.0 |
5a870fa3 | 141 | BuildRequires: sqlite3-devel >= 3.17.0 |
7c87af2b | 142 | BuildRequires: startup-notification-devel >= 0.8 |
ceb753a6 | 143 | BuildRequires: tar >= 1:1.22 |
c7d608a7 | 144 | BuildRequires: xorg-lib-libX11-devel |
ceb753a6 JB |
145 | BuildRequires: xorg-lib-libXcomposite-devel |
146 | BuildRequires: xorg-lib-libXdamage-devel | |
f5fed05a | 147 | BuildRequires: xorg-lib-libXext-devel |
ceb753a6 | 148 | BuildRequires: xorg-lib-libXfixes-devel |
f5fed05a | 149 | BuildRequires: xorg-lib-libXt-devel |
ceb753a6 JB |
150 | BuildRequires: xz |
151 | %ifarch %{ix86} %{x8664} | |
152 | BuildRequires: yasm >= 1.0.1 | |
7c87af2b JR |
153 | %endif |
154 | BuildRequires: zip | |
510dc0c3 | 155 | BuildRequires: zlib-devel >= 1.2.3 |
7c87af2b JR |
156 | Requires(post): mktemp >= 1.5-18 |
157 | Requires: desktop-file-utils | |
ceb753a6 | 158 | Requires: fontconfig >= 1:2.7.0 |
7c87af2b | 159 | Requires: hicolor-icon-theme |
6d3a5031 | 160 | Requires: browser-plugins >= 2.0 |
7c87af2b JR |
161 | Requires: cairo >= 1.10.2-5 |
162 | Requires: dbus-glib >= 0.60 | |
ceb753a6 | 163 | Requires: glib2 >= 1:2.22 |
6930f277 JB |
164 | Requires: gtk+2 >= 2:2.18 |
165 | Requires: gtk+3 >= 3.4.0 | |
16e155ba | 166 | Requires: libjpeg-turbo |
ceb753a6 | 167 | Requires: libpng >= 2:1.6.21 |
7c87af2b | 168 | Requires: libpng(APNG) >= 0.10 |
ceb753a6 | 169 | Requires: libvpx >= 1.5.0 |
7c87af2b JR |
170 | Requires: myspell-common |
171 | Requires: nspr >= 1:%{nspr_ver} | |
172 | Requires: nss >= 1:%{nss_ver} | |
757edfb3 | 173 | Requires: pango >= 1:1.22.0 |
ceb753a6 | 174 | Requires: pixman >= 0.19.2 |
7c87af2b JR |
175 | Requires: sqlite3 >= %{sqlite_build_version} |
176 | Requires: startup-notification >= 0.8 | |
488e9642 | 177 | Provides: seamonkey-embedded = %{version}-%{release} |
b19e17d8 | 178 | Provides: wwwbrowser |
80e2f4a2 | 179 | Obsoletes: iceape |
80e2f4a2 JR |
180 | Obsoletes: iceape-js-debugger |
181 | Obsoletes: iceape-mailnews | |
182 | Obsoletes: iceape-gnomevfs | |
b19e17d8 | 183 | Obsoletes: light |
f27b291c | 184 | Obsoletes: mozilla |
5d0f79b7 | 185 | Obsoletes: mozilla-gnomevfs |
ceb753a6 | 186 | Obsoletes: seamonkey-addon-lightning < 2.46 |
50d95fcd | 187 | Obsoletes: seamonkey-chat < 2.46 |
68683ec1 | 188 | Obsoletes: seamonkey-calendar |
ceb753a6 | 189 | Obsoletes: seamonkey-dom-inspector < 2.46 |
757edfb3 | 190 | Obsoletes: seamonkey-js-debugger |
6930f277 | 191 | Obsoletes: seamonkey-lang-lt < 2.53 |
d6a799e8 | 192 | Obsoletes: seamonkey-libs |
2607f7aa | 193 | Obsoletes: seamonkey-mailnews |
5d0f79b7 | 194 | Obsoletes: seamonkey-gnomevfs |
16e155ba | 195 | Conflicts: seamonkey-lang-resources < %{version} |
b19e17d8 JB |
196 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
197 | ||
bd8dbb8a JR |
198 | %define topdir %{_builddir}/%{name}-%{version} |
199 | %define objdir %{topdir}/obj-%{_target_cpu} | |
200 | ||
201 | %define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+ | |
7c87af2b JR |
202 | |
203 | # don't satisfy other packages | |
204 | %define _noautoprovfiles %{_libdir}/%{name} | |
92482a22 | 205 | # and as we don't provide them, don't require either |
5a870fa3 | 206 | %define _noautoreq liblgpllibs.so libmozavcodec.so libmozavutil.so libmozgtk.so libmozsandbox.so libxul.so |
92482a22 | 207 | |
b19e17d8 | 208 | %description |
dc51aa63 ER |
209 | SeaMonkey Community Edition is an open-source web browser, designed |
210 | for standards compliance, performance and portability. | |
b19e17d8 | 211 | |
97d18aeb | 212 | %description -l es.UTF-8 |
dc51aa63 | 213 | SeaMonkey Community Edition es un navegador de Internet que se basa en |
97d18aeb | 214 | una versión inicial de Netscape Communicator. |
b19e17d8 | 215 | |
97d18aeb JR |
216 | %description -l pl.UTF-8 |
217 | SeaMonkey Community Edition jest potężną graficzną przeglądarką WWW, | |
218 | która jest następcą Mozilli, która następnie była następczynią | |
dc51aa63 | 219 | Netscape Communikatora. |
b19e17d8 | 220 | |
97d18aeb JR |
221 | %description -l pt_BR.UTF-8 |
222 | O SeaMonkey Community Edition é um web browser baseado numa versão | |
dc51aa63 | 223 | inicial do Netscape Communicator. |
b19e17d8 | 224 | |
97d18aeb JR |
225 | %description -l ru.UTF-8 |
226 | SeaMonkey Community Edition - полнофункциональный web-browser с | |
227 | открытыми исходными текстами, разработанный для максимального | |
228 | соотвествия стандартам, максмимальной переносимости и скорости работы | |
b19e17d8 | 229 | |
50d95fcd JB |
230 | %package addon-lightning |
231 | Summary: An integrated calendar for SeaMonkey | |
232 | Summary(pl.UTF-8): Zintegrowany kalendarz dla SeaMonkey | |
233 | Group: Applications/Networking | |
234 | Requires: %{name} = %{version}-%{release} | |
235 | Obsoletes: iceape-addon-lightning | |
236 | ||
237 | %description addon-lightning | |
238 | Lightning is an calendar extension to Icedove email client. | |
239 | ||
240 | %description addon-lightning -l pl.UTF-8 | |
241 | Lightning to rozszerzenie do klienta poczty Icedove dodające | |
242 | funkcjonalność kalendarza. | |
243 | ||
244 | %package chat | |
245 | Summary: SeaMonkey Community Edition Chat - integrated IRC client | |
246 | Summary(pl.UTF-8): SeaMonkey Community Edition Chat - zintegrowany klient IRC-a | |
247 | Group: X11/Applications/Networking | |
248 | Requires(post,postun): %{name} = %{version}-%{release} | |
249 | Requires: %{name} = %{version}-%{release} | |
250 | Obsoletes: iceape-chat | |
251 | Obsoletes: mozilla-chat | |
252 | ||
253 | %description chat | |
254 | SeaMonkey Community Edition Chat - IRC client that is integrated with | |
255 | the SeaMonkey Community Edition web browser. | |
256 | ||
257 | %description chat -l pl.UTF-8 | |
258 | SeaMonkey Community Edition Chat - klient IRC-a zintegrowany z | |
259 | przeglądarką SeaMonkey Community Edition. | |
260 | ||
261 | %package dom-inspector | |
262 | Summary: A tool for inspecting the DOM of pages in SeaMonkey Community Edition | |
263 | Summary(pl.UTF-8): Narzędzie do oglądania DOM stron w SeaMonkey Community Edition | |
264 | Group: X11/Applications/Networking | |
265 | Requires(post,postun): %{name} = %{version}-%{release} | |
266 | Requires: %{name} = %{version}-%{release} | |
267 | Obsoletes: iceape-dom-inspector | |
268 | Obsoletes: mozilla-dom-inspector | |
269 | ||
270 | %description dom-inspector | |
271 | This is a tool that allows you to inspect the DOM for web pages in | |
272 | SeaMonkey Community Edition. This is of great use to people who are | |
273 | doing SeaMonkey Community Edition chrome development or web page | |
274 | development. | |
275 | ||
276 | %description dom-inspector -l pl.UTF-8 | |
277 | To narzędzie pozwala na oglądanie DOM dla stron WWW w SeaMonkey | |
278 | Community Edition. Jest bardzo przydatne dla ludzi rozwijających | |
279 | chrome w SeaMonkey Community Edition lub tworzących strony WWW. | |
280 | ||
048deb2d JR |
281 | %package lang-cs |
282 | Summary: Czech resources for SeaMonkey | |
283 | Summary(pl.UTF-8): Czeskie pliki językowe dla SeaMonkeya | |
284 | Group: I18n | |
285 | Requires: seamonkey >= %{version} | |
286 | Provides: seamonkey-lang-resources = %{version} | |
287 | BuildArch: noarch | |
288 | ||
289 | %description lang-cs | |
290 | Czech resources for SeaMonkey. | |
291 | ||
292 | %description lang-cs -l pl.UTF-8 | |
293 | Czeskie pliki językowe dla SeaMonkeya. | |
294 | ||
295 | %package lang-de | |
296 | Summary: German resources for SeaMonkey | |
297 | Summary(pl.UTF-8): Niemieckie pliki językowe dla SeaMonkeya | |
298 | Group: I18n | |
299 | Requires: seamonkey >= %{version} | |
300 | Provides: seamonkey-lang-resources = %{version} | |
301 | BuildArch: noarch | |
302 | ||
303 | %description lang-de | |
304 | German resources for SeaMonkey. | |
305 | ||
306 | %description lang-de -l pl.UTF-8 | |
307 | Niemieckie pliki językowe dla SeaMonkeya. | |
308 | ||
309 | %package lang-en_GB | |
310 | Summary: English (British) resources for SeaMonkey | |
311 | Summary(pl.UTF-8): Angielskie (brytyjskie) pliki językowe dla SeaMonkeya | |
312 | Group: I18n | |
313 | Requires: seamonkey >= %{version} | |
314 | Provides: seamonkey-lang-resources = %{version} | |
315 | BuildArch: noarch | |
316 | ||
317 | %description lang-en_GB | |
318 | English (British) resources for SeaMonkey. | |
319 | ||
320 | %description lang-en_GB -l pl.UTF-8 | |
321 | Angielskie (brytyjskie) pliki językowe dla SeaMonkeya. | |
322 | ||
323 | %package lang-en_US | |
324 | Summary: English (American) resources for SeaMonkey | |
325 | Summary(pl.UTF-8): Angielskie (amerykańskie) pliki językowe dla SeaMonkeya | |
326 | Group: I18n | |
327 | Requires: seamonkey >= %{version} | |
328 | Provides: seamonkey-lang-resources = %{version} | |
329 | BuildArch: noarch | |
330 | ||
331 | %description lang-en_US | |
332 | English (American) resources for SeaMonkey. | |
333 | ||
334 | %description lang-en_US -l pl.UTF-8 | |
335 | Angielskie (amerykańskie) pliki językowe dla SeaMonkeya. | |
336 | ||
337 | %package lang-es_AR | |
338 | Summary: Spanish (Andorra) resources for SeaMonkey | |
339 | Summary(ca.UTF-8): Recursos espanyols (Andorra) per SeaMonkey | |
340 | Summary(es.UTF-8): Recursos españoles (Andorra) para SeaMonkey | |
341 | Summary(pl.UTF-8): Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Andory) | |
342 | Group: I18n | |
343 | Requires: seamonkey >= %{version} | |
344 | Provides: seamonkey-lang-resources = %{version} | |
345 | BuildArch: noarch | |
346 | ||
347 | %description lang-es_AR | |
348 | Spanish (Spain) resources for SeaMonkey. | |
349 | ||
350 | %description lang-es_AR -l ca.UTF-8 | |
351 | Recursos espanyols (Andorra) per SeaMonkey. | |
352 | ||
353 | %description lang-es_AR -l es.UTF-8 | |
354 | Recursos españoles (Andorra) para SeaMonkey. | |
355 | ||
356 | %description lang-es_AR -l pl.UTF-8 | |
357 | Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Andory). | |
358 | ||
359 | %package lang-es | |
360 | Summary: Spanish (Spain) resources for SeaMonkey | |
361 | Summary(ca.UTF-8): Recursos espanyols (Espanya) per SeaMonkey | |
362 | Summary(es.UTF-8): Recursos españoles (España) para SeaMonkey | |
363 | Summary(pl.UTF-8): Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Hiszpanii) | |
364 | Group: I18n | |
365 | Requires: seamonkey >= %{version} | |
366 | Provides: seamonkey-lang-resources = %{version} | |
367 | BuildArch: noarch | |
368 | ||
369 | %description lang-es | |
370 | Spanish (Spain) resources for SeaMonkey. | |
371 | ||
372 | %description lang-es -l ca.UTF-8 | |
373 | Recursos espanyols (Espanya) per SeaMonkey. | |
374 | ||
375 | %description lang-es -l es.UTF-8 | |
376 | Recursos españoles (España) para SeaMonkey. | |
377 | ||
378 | %description lang-es -l pl.UTF-8 | |
379 | Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Hiszpanii). | |
380 | ||
6930f277 JB |
381 | %package lang-fi |
382 | Summary: Finnish resources for SeaMonkey | |
383 | Summary(pl.UTF-8): Fińskie pliki językowe dla SeaMonkeya | |
384 | Group: I18n | |
385 | Requires: seamonkey >= %{version} | |
386 | Provides: seamonkey-lang-resources = %{version} | |
387 | BuildArch: noarch | |
388 | ||
389 | %description lang-fi | |
390 | Finnish resources for SeaMonkey. | |
391 | ||
392 | %description lang-fi -l pl.UTF-8 | |
393 | Fińskie pliki językowe dla SeaMonkeya. | |
394 | ||
048deb2d JR |
395 | %package lang-fr |
396 | Summary: French resources for SeaMonkey | |
397 | Summary(pl.UTF-8): Francuskie pliki językowe dla SeaMonkeya | |
398 | Group: I18n | |
399 | Requires: seamonkey >= %{version} | |
400 | Provides: seamonkey-lang-resources = %{version} | |
401 | BuildArch: noarch | |
402 | ||
403 | %description lang-fr | |
404 | French resources for SeaMonkey. | |
405 | ||
406 | %description lang-fr -l pl.UTF-8 | |
407 | Francuskie pliki językowe dla SeaMonkeya. | |
408 | ||
409 | %package lang-hu | |
410 | Summary: Hungarian resources for SeaMonkey | |
411 | Summary(hu.UTF-8): Magyar nyelv SeaMonkey-hez | |
412 | Summary(pl.UTF-8): Węgierskie pliki językowe dla SeaMonkeya | |
413 | Group: I18n | |
414 | Requires: seamonkey >= %{version} | |
415 | Provides: seamonkey-lang-resources = %{version} | |
416 | BuildArch: noarch | |
417 | ||
418 | %description lang-hu | |
419 | Hungarian resources for SeaMonkey. | |
420 | ||
421 | %description lang-hu -l hu.UTF-8 | |
422 | Magyar nyelv SeaMonkey-hez. | |
423 | ||
424 | %description lang-hu -l pl.UTF-8 | |
425 | Węgierskie pliki językowe dla SeaMonkeya. | |
426 | ||
427 | %package lang-it | |
428 | Summary: Italian resources for SeaMonkey | |
429 | Summary(pl.UTF-8): Włoskie pliki językowe dla SeaMonkeya | |
430 | Group: I18n | |
431 | Requires: seamonkey >= %{version} | |
432 | Provides: seamonkey-lang-resources = %{version} | |
433 | BuildArch: noarch | |
434 | ||
435 | %description lang-it | |
436 | Italian resources for SeaMonkey. | |
437 | ||
438 | %description lang-it -l pl.UTF-8 | |
439 | Włoskie pliki językowe dla SeaMonkeya. | |
440 | ||
441 | %package lang-ja | |
442 | Summary: Japanese resources for SeaMonkey | |
443 | Summary(pl.UTF-8): Japońskie pliki językowe dla SeaMonkeya | |
444 | Group: I18n | |
445 | Requires: seamonkey >= %{version} | |
446 | Provides: seamonkey-lang-resources = %{version} | |
447 | BuildArch: noarch | |
448 | ||
449 | %description lang-ja | |
450 | Japanese resources for SeaMonkey. | |
451 | ||
452 | %description lang-ja -l pl.UTF-8 | |
453 | Japońskie pliki językowe dla SeaMonkeya. | |
454 | ||
6930f277 JB |
455 | %package lang-ka |
456 | Summary: Georgian resources for SeaMonkey | |
457 | Summary(pl.UTF-8): Gruzińskie pliki językowe dla SeaMonkeya | |
458 | Group: I18n | |
459 | Requires: seamonkey >= %{version} | |
460 | Provides: seamonkey-lang-resources = %{version} | |
461 | BuildArch: noarch | |
462 | ||
463 | %description lang-ka | |
464 | Georgian resources for SeaMonkey. | |
465 | ||
466 | %description lang-ka -l pl.UTF-8 | |
467 | Gruzińskie pliki językowe dla SeaMonkeya. | |
468 | ||
048deb2d JR |
469 | %package lang-lt |
470 | Summary: Lithuanian resources for SeaMonkey | |
471 | Summary(pl.UTF-8): Litewskie pliki językowe dla SeaMonkeya | |
472 | Group: I18n | |
473 | Requires: seamonkey >= %{version} | |
474 | Provides: seamonkey-lang-resources = %{version} | |
475 | BuildArch: noarch | |
476 | ||
477 | %description lang-lt | |
478 | Lithuanian resources for SeaMonkey. | |
479 | ||
480 | %description lang-lt -l pl.UTF-8 | |
481 | Litewskie pliki językowe dla SeaMonkeya. | |
482 | ||
5a870fa3 JB |
483 | %package lang-nb |
484 | Summary: Norwegian Bokmaal resources for SeaMonkey | |
485 | Summary(pl.UTF-8): Norweskie (bokmaal) pliki językowe dla SeaMonkeya | |
486 | Group: I18n | |
487 | Requires: seamonkey >= %{version} | |
488 | Provides: seamonkey-lang-resources = %{version} | |
489 | BuildArch: noarch | |
490 | ||
491 | %description lang-nb | |
492 | Norwegian Bokmaal resources for SeaMonkey. | |
493 | ||
494 | %description lang-nb -l pl.UTF-8 | |
495 | Norweskie (bokmaal) pliki językowe dla SeaMonkeya. | |
496 | ||
048deb2d JR |
497 | %package lang-nl |
498 | Summary: Dutch resources for SeaMonkey | |
499 | Summary(pl.UTF-8): Holenderskie pliki językowe dla SeaMonkeya | |
500 | Group: I18n | |
501 | Requires: seamonkey >= %{version} | |
502 | Provides: seamonkey-lang-resources = %{version} | |
503 | BuildArch: noarch | |
504 | ||
505 | %description lang-nl | |
506 | Dutch resources for SeaMonkey. | |
507 | ||
508 | %description lang-nl -l pl.UTF-8 | |
509 | Holenderskie pliki językowe dla SeaMonkeya. | |
510 | ||
511 | %package lang-pl | |
512 | Summary: Polish resources for SeaMonkey | |
513 | Summary(pl.UTF-8): Polskie pliki językowe dla SeaMonkeya | |
514 | Group: I18n | |
515 | Requires: seamonkey >= %{version} | |
516 | Provides: seamonkey-lang-resources = %{version} | |
517 | BuildArch: noarch | |
518 | ||
519 | %description lang-pl | |
520 | Polish resources for SeaMonkey. | |
521 | ||
522 | %description lang-pl -l pl.UTF-8 | |
523 | Polskie pliki językowe dla SeaMonkeya. | |
524 | ||
6930f277 JB |
525 | %package lang-pt_BR |
526 | Summary: Portuguese (Brazilian) resources for SeaMonkey | |
527 | Summary(pl.UTF-8): Portugalskie pliki językowe dla SeaMonkeya (wersja dla Brazylii) | |
528 | Group: I18n | |
529 | Requires: seamonkey >= %{version} | |
530 | Provides: seamonkey-lang-resources = %{version} | |
531 | BuildArch: noarch | |
532 | ||
533 | %description lang-pt_BR | |
534 | Portuguese (Brazilian) resources for SeaMonkey. | |
535 | ||
536 | %description lang-pt_BR -l pl.UTF-8 | |
537 | Portugalskie pliki językowe dla SeaMonkeya (wersja dla Brazylii). | |
538 | ||
048deb2d JR |
539 | %package lang-pt |
540 | Summary: Portuguese (Portugal) resources for SeaMonkey | |
541 | Summary(pl.UTF-8): Portugalskie pliki językowe dla SeaMonkeya (wersja dla Portugalii) | |
542 | Group: I18n | |
543 | Requires: seamonkey >= %{version} | |
544 | Provides: seamonkey-lang-resources = %{version} | |
545 | BuildArch: noarch | |
546 | ||
547 | %description lang-pt | |
548 | Portuguese (Portugal) resources for SeaMonkey. | |
549 | ||
550 | %description lang-pt -l pl.UTF-8 | |
551 | Portugalskie pliki językowe dla SeaMonkeya (wersja dla Portugalii). | |
552 | ||
553 | %package lang-ru | |
554 | Summary: Russian resources for SeaMonkey | |
555 | Summary(pl.UTF-8): Rosyjskie pliki językowe dla SeaMonkeya | |
556 | Group: I18n | |
557 | Requires: seamonkey >= %{version} | |
558 | Provides: seamonkey-lang-resources = %{version} | |
559 | BuildArch: noarch | |
560 | ||
561 | %description lang-ru | |
562 | Russian resources for SeaMonkey. | |
563 | ||
564 | %description lang-ru -l pl.UTF-8 | |
565 | Rosyjskie pliki językowe dla SeaMonkeya. | |
566 | ||
567 | %package lang-sk | |
568 | Summary: Slovak resources for SeaMonkey | |
569 | Summary(pl.UTF-8): Słowackie pliki językowe dla SeaMonkeya | |
570 | Group: I18n | |
571 | Requires: seamonkey >= %{version} | |
572 | Provides: seamonkey-lang-resources = %{version} | |
573 | BuildArch: noarch | |
574 | ||
575 | %description lang-sk | |
576 | Slovak resources for SeaMonkey. | |
577 | ||
578 | %description lang-sk -l pl.UTF-8 | |
579 | Słowackie pliki językowe dla SeaMonkeya. | |
580 | ||
581 | %package lang-sv | |
582 | Summary: Swedish resources for SeaMonkey | |
583 | Summary(pl.UTF-8): Szwedzkie pliki językowe dla SeaMonkeya | |
584 | Group: I18n | |
585 | Requires: seamonkey >= %{version} | |
586 | Provides: seamonkey-lang-resources = %{version} | |
587 | BuildArch: noarch | |
588 | ||
589 | %description lang-sv | |
590 | Swedish resources for SeaMonkey. | |
591 | ||
592 | %description lang-sv -l pl.UTF-8 | |
593 | Szwedzkie pliki językowe dla SeaMonkeya. | |
594 | ||
595 | %package lang-zh_CN | |
596 | Summary: Simplified Chinese resources for SeaMonkey | |
597 | Summary(pl.UTF-8): Chińskie (uproszczone) pliki językowe dla SeaMonkeya | |
598 | Group: I18n | |
599 | Requires: seamonkey >= %{version} | |
600 | Provides: seamonkey-lang-resources = %{version} | |
601 | BuildArch: noarch | |
602 | ||
603 | %description lang-zh_CN | |
604 | Simplified Chinese resources for SeaMonkey. | |
605 | ||
606 | %description lang-zh_CN -l pl.UTF-8 | |
607 | Chińskie uproszczone pliki językowe dla SeaMonkeya. | |
608 | ||
609 | %package lang-zh_TW | |
610 | Summary: Traditional Chinese resources for SeaMonkey | |
611 | Summary(pl.UTF-8): Chińskie tradycyjne pliki językowe dla SeaMonkeya | |
612 | Group: I18n | |
613 | Requires: seamonkey >= %{version} | |
614 | Provides: seamonkey-lang-resources = %{version} | |
615 | BuildArch: noarch | |
616 | ||
617 | %description lang-zh_TW | |
618 | Traditional Chinese resources for SeaMonkey. | |
619 | ||
620 | %description lang-zh_TW -l pl.UTF-8 | |
621 | Chińskie tradycyjne pliki językowe dla SeaMonkeya. | |
622 | ||
b19e17d8 | 623 | %prep |
048deb2d JR |
624 | unpack() { |
625 | local args="$1" file="$2" | |
626 | cp -p $file . | |
627 | } | |
628 | %define __unzip unpack | |
6930f277 JB |
629 | %setup -q %(seq -f '-a %g' 100 121 | xargs) |
630 | cd mozilla | |
631 | %patch0 -p1 | |
bd8dbb8a | 632 | %patch1 -p1 |
6930f277 | 633 | cd .. |
bd8dbb8a | 634 | %patch2 -p1 |
757edfb3 | 635 | %patch3 -p1 |
bd8dbb8a | 636 | %patch4 -p1 |
2f09c133 | 637 | %patch5 -p1 |
bd8dbb8a JR |
638 | |
639 | %build | |
bd8dbb8a JR |
640 | cat << EOF > .mozconfig |
641 | mk_add_options MOZ_OBJDIR=%{objdir} | |
642 | ||
6930f277 JB |
643 | export CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64" |
644 | export CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64" | |
645 | ||
646 | %if %{with lowmem} | |
647 | export CFLAGS="$CFLAGS -g0" | |
648 | export CXXFLAGS="$CXXFLAGS -g0" | |
649 | export MOZ_DEBUG_FLAGS=" " | |
650 | export LLVM_USE_SPLIT_DWARF=1 | |
651 | export LLVM_PARALLEL_LINK_JOBS=1 | |
652 | export MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads" | |
653 | export RUSTFLAGS="-Cdebuginfo=0" | |
654 | %endif | |
655 | ||
bd8dbb8a JR |
656 | %if %{with crashreporter} |
657 | export MOZ_DEBUG_SYMBOLS=1 | |
658 | %endif | |
659 | ||
660 | # Options for 'configure' (same as command-line options). | |
661 | ac_add_options --prefix=%{_prefix} | |
6930f277 | 662 | ac_add_options --libdir=%{_libdir} |
bd8dbb8a JR |
663 | %if %{?debug:1}0 |
664 | ac_add_options --disable-optimize | |
5a870fa3 | 665 | ac_add_options --enable-crash-on-assert |
bd8dbb8a JR |
666 | ac_add_options --enable-debug |
667 | ac_add_options --enable-debug-modules | |
668 | ac_add_options --enable-debugger-info-modules | |
c1527db1 | 669 | %else |
bd8dbb8a | 670 | ac_add_options --disable-debug |
c1527db1 | 671 | %endif |
bd8dbb8a | 672 | ac_add_options --disable-strip |
6930f277 | 673 | ac_add_options --disable-install-strip |
bd8dbb8a JR |
674 | %if %{with tests} |
675 | ac_add_options --enable-tests | |
676 | %else | |
677 | ac_add_options --disable-tests | |
678 | %endif | |
bd8dbb8a JR |
679 | %if %{with crashreporter} |
680 | ac_add_options --enable-crashreporter | |
681 | %else | |
682 | ac_add_options --disable-crashreporter | |
683 | %endif | |
ceb753a6 | 684 | ac_add_options --disable-elf-hack |
ceb753a6 | 685 | ac_add_options --disable-necko-wifi |
bd8dbb8a | 686 | ac_add_options --disable-updater |
c7d608a7 | 687 | ac_add_options --enable-application=suite |
50d95fcd JB |
688 | %if %{with lightning} |
689 | ac_add_options --enable-calendar | |
690 | %endif | |
ceb753a6 | 691 | ac_add_options --enable-chrome-format=omni |
6930f277 JB |
692 | ac_add_options --enable-default-toolkit=cairo-gtk3 |
693 | ac_add_options --enable-dominspector | |
50d95fcd | 694 | ac_add_options --enable-extensions=default |
6930f277 | 695 | ac_add_options --enable-irc |
c7d608a7 JB |
696 | %if %{with ldap} |
697 | ac_add_options --enable-ldap | |
c7d608a7 JB |
698 | %else |
699 | ac_add_options --disable-ldap | |
700 | %endif | |
ceb753a6 JB |
701 | # breaks build |
702 | #ac_add_options --enable-shared-js | |
bd8dbb8a | 703 | ac_add_options --enable-startup-notification |
bd8dbb8a JR |
704 | ac_add_options --enable-system-cairo |
705 | ac_add_options --enable-system-hunspell | |
706 | ac_add_options --enable-system-sqlite | |
bd8dbb8a | 707 | ac_add_options --with-distribution-id=org.pld-linux |
bd8dbb8a JR |
708 | ac_add_options --with-pthreads |
709 | ac_add_options --with-system-bz2 | |
710 | ac_add_options --with-system-ffi | |
757edfb3 | 711 | ac_add_options --with-system-icu |
bd8dbb8a JR |
712 | ac_add_options --with-system-jpeg |
713 | ac_add_options --with-system-libevent | |
714 | ac_add_options --with-system-libvpx | |
715 | ac_add_options --with-system-nspr | |
716 | ac_add_options --with-system-nss | |
6930f277 | 717 | ac_add_options --with-system-pixman |
bd8dbb8a | 718 | ac_add_options --with-system-png |
6930f277 | 719 | ac_add_options --with-system-sqlite |
bd8dbb8a | 720 | ac_add_options --with-system-zlib |
bd8dbb8a | 721 | EOF |
b19e17d8 | 722 | |
bd8dbb8a | 723 | %{__make} -j1 -f client.mk build \ |
ceb753a6 | 724 | AUTOCONF=/usr/bin/autoconf2_13 \ |
bd8dbb8a JR |
725 | STRIP="/bin/true" \ |
726 | MOZ_MAKE_FLAGS="%{?_smp_mflags}" \ | |
2607f7aa | 727 | installdir=%{_libdir}/%{name} \ |
16e155ba | 728 | XLIBS="-lX11 -lXt" \ |
bd8dbb8a | 729 | CC="%{__cc}" \ |
6930f277 | 730 | CXX="%{__cxx}" |
b19e17d8 | 731 | |
bd8dbb8a JR |
732 | %if %{with crashreporter} |
733 | # create debuginfo for crash-stats.mozilla.com | |
734 | %{__make} -j1 -C obj-%{_target_cpu} buildsymbols | |
735 | %endif | |
736 | ||
b19e17d8 JB |
737 | %install |
738 | rm -rf $RPM_BUILD_ROOT | |
739 | install -d \ | |
2607f7aa | 740 | $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} \ |
b19e17d8 | 741 | $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \ |
bd8dbb8a | 742 | $RPM_BUILD_ROOT%{_datadir}/%{name} \ |
757edfb3 JB |
743 | $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins \ |
744 | $RPM_BUILD_ROOT%{_mandir}/man1 | |
b19e17d8 | 745 | |
bd8dbb8a | 746 | %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins |
b19e17d8 | 747 | |
d7cc109a | 748 | cd %{objdir} |
c7d608a7 | 749 | cwd=`pwd` |
2607f7aa | 750 | %{__make} -C suite/installer stage-package \ |
bd8dbb8a | 751 | DESTDIR=$RPM_BUILD_ROOT \ |
bd8dbb8a | 752 | installdir=%{_libdir}/%{name} \ |
2607f7aa JR |
753 | PKG_SKIP_STRIP=1 |
754 | ||
757edfb3 JB |
755 | cp -a dist/seamonkey/* $RPM_BUILD_ROOT%{_libdir}/%{name}/ |
756 | cp -p dist/man/man1/seamonkey.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
b19e17d8 | 757 | |
d7cc109a JR |
758 | # Enable crash reporter for Thunderbird application |
759 | %if %{with crashreporter} | |
760 | %{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini | |
761 | ||
762 | # Add debuginfo for crash-stats.mozilla.com | |
763 | install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name} | |
ceb753a6 | 764 | cp -a dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name} |
d7cc109a JR |
765 | %endif |
766 | ||
5a870fa3 | 767 | # move arch independent ones to datadir |
ceb753a6 JB |
768 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome |
769 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults | |
5a870fa3 | 770 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/fonts $RPM_BUILD_ROOT%{_datadir}/%{name}/fonts |
b19e17d8 | 771 | |
bd8dbb8a JR |
772 | ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome |
773 | ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults | |
5a870fa3 | 774 | ln -s ../../share/%{name}/fonts $RPM_BUILD_ROOT%{_libdir}/%{name}/fonts |
c7d608a7 | 775 | |
ceb753a6 | 776 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp |
eebfc2d2 | 777 | ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp |
bd8dbb8a | 778 | |
d7cc109a JR |
779 | # dir for arch independant extensions besides arch dependant extensions |
780 | # see mozilla/xpcom/build/nsXULAppAPI.h | |
781 | # XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR | |
782 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions | |
783 | ||
bd8dbb8a JR |
784 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries |
785 | ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries | |
b19e17d8 | 786 | |
16e155ba | 787 | sed 's,@LIBDIR@,%{_libdir},' %{SOURCE9} > $RPM_BUILD_ROOT%{_bindir}/seamonkey |
bd8dbb8a | 788 | chmod a+rx $RPM_BUILD_ROOT%{_bindir}/seamonkey |
b19e17d8 | 789 | |
ceb753a6 | 790 | install %{SOURCE4} %{SOURCE5} %{SOURCE7} \ |
824eb755 | 791 | $RPM_BUILD_ROOT%{_desktopdir} |
b19e17d8 | 792 | |
6930f277 | 793 | for d in 16 32 48 64 128 ; do |
ceb753a6 | 794 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${d}x${d}/apps |
6930f277 JB |
795 | if [ $d -eq 32 ]; then |
796 | cp -p %{topdir}/suite/branding/seamonkey/default.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${d}x${d}/apps/%{name}.png | |
797 | else | |
798 | cp -p %{topdir}/suite/branding/seamonkey/default${d}.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${d}x${d}/apps/%{name}.png | |
799 | fi | |
ceb753a6 | 800 | done |
b19e17d8 | 801 | |
ceb753a6 JB |
802 | # don't package, rely on system mozldap libraries |
803 | %{__sed} -i '/lib\(ldap\|ldif\|prldap\)60.so/d' $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list | |
804 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap}60.so | |
805 | ||
048deb2d JR |
806 | cd .. |
807 | for a in *.xpi; do | |
808 | basename=$(basename $a .langpack.xpi) | |
809 | basename=${basename##seamonkey-%{version}.} | |
810 | cp -p $a $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions/langpack-$basename@seamonkey.mozilla.org.xpi | |
811 | done | |
812 | ||
6930f277 JB |
813 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{license.txt,precomplete,removed-files} |
814 | ||
b19e17d8 JB |
815 | %clean |
816 | rm -rf $RPM_BUILD_ROOT | |
817 | ||
6d3a5031 | 818 | %post |
6d3a5031 | 819 | %update_browser_plugins |
ceb753a6 | 820 | %update_icon_cache hicolor |
d7cc109a | 821 | %update_desktop_database |
6d3a5031 ER |
822 | |
823 | %postun | |
6d3a5031 ER |
824 | if [ "$1" = 0 ]; then |
825 | %update_browser_plugins | |
ceb753a6 | 826 | %update_icon_cache hicolor |
6d3a5031 | 827 | fi |
b19e17d8 | 828 | |
b19e17d8 JB |
829 | %files |
830 | %defattr(644,root,root,755) | |
ceb753a6 | 831 | %doc AUTHORS |
acf8815d | 832 | %attr(755,root,root) %{_bindir}/seamonkey |
757edfb3 | 833 | %{_mandir}/man1/seamonkey.1* |
b19e17d8 | 834 | |
6d3a5031 ER |
835 | # browser plugins v2 |
836 | %{_browserpluginsconfdir}/browsers.d/%{name}.* | |
837 | %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist | |
838 | ||
d7cc109a | 839 | %dir %{_libdir}/%{name} |
ceb753a6 | 840 | %attr(755,root,root) %{_libdir}/%{name}/liblgpllibs.so |
5a870fa3 JB |
841 | %attr(755,root,root) %{_libdir}/%{name}/libmozavcodec.so |
842 | %attr(755,root,root) %{_libdir}/%{name}/libmozavutil.so | |
ceb753a6 | 843 | %attr(755,root,root) %{_libdir}/%{name}/libmozgtk.so |
5a870fa3 | 844 | %attr(755,root,root) %{_libdir}/%{name}/libmozsandbox.so |
2607f7aa | 845 | %attr(755,root,root) %{_libdir}/%{name}/libxul.so |
ceb753a6 JB |
846 | %dir %{_libdir}/%{name}/gtk2 |
847 | %attr(755,root,root) %{_libdir}/%{name}/gtk2/libmozgtk.so | |
d7cc109a | 848 | |
2607f7aa | 849 | %{_libdir}/%{name}/blocklist.xml |
c7d608a7 | 850 | %{_libdir}/%{name}/omni.ja |
d7cc109a | 851 | |
2607f7aa JR |
852 | %if %{with crashreporter} |
853 | %{_libdir}/%{name}/crashreporter | |
854 | %{_libdir}/%{name}/crashreporter-override.ini | |
855 | %{_libdir}/%{name}/crashreporter.ini | |
856 | %{_libdir}/%{name}/Throbber-small.gif | |
857 | %endif | |
858 | ||
859 | # config? | |
860 | %{_libdir}/%{name}/application.ini | |
861 | %{_libdir}/%{name}/chrome.manifest | |
862 | ||
16e155ba | 863 | %{_libdir}/%{name}/dependentlibs.list |
2607f7aa | 864 | %{_libdir}/%{name}/platform.ini |
2607f7aa JR |
865 | %attr(755,root,root) %{_libdir}/%{name}/run-mozilla.sh |
866 | %attr(755,root,root) %{_libdir}/%{name}/seamonkey-bin | |
6930f277 | 867 | %attr(755,root,root) %{_libdir}/%{name}/pingsender |
2607f7aa | 868 | %attr(755,root,root) %{_libdir}/%{name}/plugin-container |
2607f7aa | 869 | |
16e155ba JB |
870 | %attr(755,root,root) %{_libdir}/%{name}/seamonkey |
871 | %dir %{_libdir}/%{name}/plugins | |
872 | ||
2607f7aa JR |
873 | # symlinks |
874 | %{_libdir}/%{name}/chrome | |
875 | %{_libdir}/%{name}/defaults | |
5a870fa3 | 876 | %{_libdir}/%{name}/fonts |
2607f7aa | 877 | %{_libdir}/%{name}/dictionaries |
b19e17d8 | 878 | |
2607f7aa JR |
879 | %dir %{_datadir}/%{name} |
880 | %{_datadir}/%{name}/chrome | |
b19e17d8 | 881 | %{_datadir}/%{name}/defaults |
5a870fa3 | 882 | %{_datadir}/%{name}/fonts |
b19e17d8 | 883 | |
50d95fcd JB |
884 | %dir %{_libdir}/%{name}/distribution |
885 | %dir %{_libdir}/%{name}/distribution/extensions | |
886 | ||
2607f7aa JR |
887 | %dir %{_datadir}/%{name}/extensions |
888 | %dir %{_libdir}/%{name}/extensions | |
889 | # the signature of the default theme | |
890 | %{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi | |
891 | %{_libdir}/%{name}/extensions/modern@themes.mozilla.org.xpi | |
b19e17d8 | 892 | |
2607f7aa JR |
893 | %{_libdir}/%{name}/isp |
894 | %dir %{_datadir}/%{name}/isp | |
895 | %{_datadir}/%{name}/isp/Bogofilter.sfd | |
896 | %{_datadir}/%{name}/isp/DSPAM.sfd | |
897 | %{_datadir}/%{name}/isp/POPFile.sfd | |
898 | %{_datadir}/%{name}/isp/SpamAssassin.sfd | |
899 | %{_datadir}/%{name}/isp/SpamPal.sfd | |
900 | %{_datadir}/%{name}/isp/movemail.rdf | |
901 | %{_datadir}/%{name}/isp/rss.rdf | |
b19e17d8 | 902 | |
ceb753a6 | 903 | %{_iconsdir}/hicolor/*x*/apps/seamonkey.png |
2607f7aa JR |
904 | %{_desktopdir}/%{name}.desktop |
905 | %{_desktopdir}/%{name}-composer.desktop | |
824eb755 | 906 | %{_desktopdir}/%{name}-mail.desktop |
048deb2d | 907 | |
50d95fcd JB |
908 | %if %{with lightning} |
909 | %files addon-lightning | |
910 | %defattr(644,root,root,755) | |
6930f277 | 911 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi |
50d95fcd JB |
912 | %endif |
913 | ||
914 | %files chat | |
915 | %defattr(644,root,root,755) | |
916 | %{_libdir}/%{name}/distribution/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}.xpi | |
917 | ||
918 | %files dom-inspector | |
919 | %defattr(644,root,root,755) | |
920 | %{_libdir}/%{name}/distribution/extensions/inspector@mozilla.org.xpi | |
921 | ||
048deb2d JR |
922 | %files lang-cs |
923 | %defattr(644,root,root,755) | |
924 | %{_datadir}/%{name}/extensions/langpack-cs@seamonkey.mozilla.org.xpi | |
925 | ||
926 | %files lang-de | |
927 | %defattr(644,root,root,755) | |
928 | %{_datadir}/%{name}/extensions/langpack-de@seamonkey.mozilla.org.xpi | |
929 | ||
930 | %files lang-en_GB | |
931 | %defattr(644,root,root,755) | |
932 | %{_datadir}/%{name}/extensions/langpack-en-GB@seamonkey.mozilla.org.xpi | |
933 | ||
934 | %files lang-en_US | |
935 | %defattr(644,root,root,755) | |
936 | %{_datadir}/%{name}/extensions/langpack-en-US@seamonkey.mozilla.org.xpi | |
937 | ||
938 | %files lang-es_AR | |
939 | %defattr(644,root,root,755) | |
940 | %{_datadir}/%{name}/extensions/langpack-es-AR@seamonkey.mozilla.org.xpi | |
941 | ||
942 | %files lang-es | |
943 | %defattr(644,root,root,755) | |
944 | %{_datadir}/%{name}/extensions/langpack-es-ES@seamonkey.mozilla.org.xpi | |
945 | ||
6930f277 JB |
946 | %files lang-fi |
947 | %defattr(644,root,root,755) | |
948 | %{_datadir}/%{name}/extensions/langpack-fi@seamonkey.mozilla.org.xpi | |
949 | ||
048deb2d JR |
950 | %files lang-fr |
951 | %defattr(644,root,root,755) | |
952 | %{_datadir}/%{name}/extensions/langpack-fr@seamonkey.mozilla.org.xpi | |
953 | ||
954 | %files lang-hu | |
955 | %defattr(644,root,root,755) | |
956 | %{_datadir}/%{name}/extensions/langpack-hu@seamonkey.mozilla.org.xpi | |
957 | ||
958 | %files lang-it | |
959 | %defattr(644,root,root,755) | |
960 | %{_datadir}/%{name}/extensions/langpack-it@seamonkey.mozilla.org.xpi | |
961 | ||
962 | %files lang-ja | |
963 | %defattr(644,root,root,755) | |
964 | %{_datadir}/%{name}/extensions/langpack-ja@seamonkey.mozilla.org.xpi | |
965 | ||
6930f277 | 966 | %files lang-ka |
048deb2d | 967 | %defattr(644,root,root,755) |
6930f277 JB |
968 | %{_datadir}/%{name}/extensions/langpack-ka@seamonkey.mozilla.org.xpi |
969 | ||
970 | #%files lang-lt | |
971 | #%defattr(644,root,root,755) | |
972 | #%{_datadir}/%{name}/extensions/langpack-lt@seamonkey.mozilla.org.xpi | |
048deb2d | 973 | |
5a870fa3 JB |
974 | %files lang-nb |
975 | %defattr(644,root,root,755) | |
976 | %{_datadir}/%{name}/extensions/langpack-nb-NO@seamonkey.mozilla.org.xpi | |
977 | ||
048deb2d JR |
978 | %files lang-nl |
979 | %defattr(644,root,root,755) | |
980 | %{_datadir}/%{name}/extensions/langpack-nl@seamonkey.mozilla.org.xpi | |
981 | ||
982 | %files lang-pl | |
983 | %defattr(644,root,root,755) | |
984 | %{_datadir}/%{name}/extensions/langpack-pl@seamonkey.mozilla.org.xpi | |
985 | ||
6930f277 JB |
986 | %files lang-pt_BR |
987 | %defattr(644,root,root,755) | |
988 | %{_datadir}/%{name}/extensions/langpack-pt-BR@seamonkey.mozilla.org.xpi | |
989 | ||
048deb2d JR |
990 | %files lang-pt |
991 | %defattr(644,root,root,755) | |
992 | %{_datadir}/%{name}/extensions/langpack-pt-PT@seamonkey.mozilla.org.xpi | |
993 | ||
994 | %files lang-ru | |
995 | %defattr(644,root,root,755) | |
996 | %{_datadir}/%{name}/extensions/langpack-ru@seamonkey.mozilla.org.xpi | |
997 | ||
998 | %files lang-sk | |
999 | %defattr(644,root,root,755) | |
1000 | %{_datadir}/%{name}/extensions/langpack-sk@seamonkey.mozilla.org.xpi | |
1001 | ||
1002 | %files lang-sv | |
1003 | %defattr(644,root,root,755) | |
1004 | %{_datadir}/%{name}/extensions/langpack-sv-SE@seamonkey.mozilla.org.xpi | |
1005 | ||
1006 | %files lang-zh_CN | |
1007 | %defattr(644,root,root,755) | |
1008 | %{_datadir}/%{name}/extensions/langpack-zh-CN@seamonkey.mozilla.org.xpi | |
1009 | ||
1010 | %files lang-zh_TW | |
1011 | %defattr(644,root,root,755) | |
1012 | %{_datadir}/%{name}/extensions/langpack-zh-TW@seamonkey.mozilla.org.xpi |