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