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