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