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