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