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