]>
Commit | Line | Data |
---|---|---|
ceb753a6 | 1 | # TODO: consider --enable-libproxy |
b19e17d8 JB |
2 | # |
3 | # Conditional build: | |
ceb753a6 | 4 | %bcond_without gtk3 # GTK+ 3.x instead of 2.x |
7c87af2b | 5 | %bcond_without ldap # disable e-mail address lookups in LDAP directories |
c7d608a7 | 6 | %bcond_without kerberos # disable krb5 support |
c7d608a7 | 7 | %bcond_with crashreporter # report crashes to crash-stats.mozilla.com |
bd8dbb8a | 8 | %bcond_with tests # enable tests (whatever they check) |
24441e9c | 9 | |
ceb753a6 JB |
10 | %define nspr_ver 4.12 |
11 | %define nss_ver 3.25 | |
24441e9c | 12 | |
24441e9c JR |
13 | # The actual sqlite version (see RHBZ#480989): |
14 | %define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR) | |
24441e9c | 15 | |
dc51aa63 | 16 | Summary: SeaMonkey Community Edition - web browser |
fda067df ER |
17 | Summary(es.UTF-8): Navegador de Internet SeaMonkey Community Edition |
18 | Summary(pl.UTF-8): SeaMonkey Community Edition - przeglądarka WWW | |
19 | Summary(pt_BR.UTF-8): Navegador SeaMonkey Community Edition | |
b19e17d8 | 20 | Name: seamonkey |
ceb753a6 | 21 | Version: 2.46 |
5d0f79b7 | 22 | Release: 1 |
c7d608a7 | 23 | License: MPL v2.0 |
b19e17d8 | 24 | Group: X11/Applications/Networking |
ceb753a6 JB |
25 | Source0: http://ftp.mozilla.org/pub/seamonkey/releases/%{version}/source/%{name}-%{version}.source.tar.xz |
26 | # Source0-md5: 436a158e16eee151b97f96c053b82d45 | |
16e155ba JB |
27 | Source4: %{name}.desktop |
28 | Source5: %{name}-composer.desktop | |
16e155ba | 29 | Source7: %{name}-mail.desktop |
16e155ba JB |
30 | Source9: %{name}.sh |
31 | Patch1: %{name}-pld-branding.patch | |
32 | Patch2: %{name}-agent.patch | |
c7d608a7 | 33 | Patch3: %{name}-enable-addons.patch |
16e155ba | 34 | # Edit patch below and restore --system-site-packages when system virtualenv gets 1.7 upgrade |
ceb753a6 JB |
35 | Patch4: %{name}-system-virtualenv.patch |
36 | Patch5: %{name}-icu-detect.patch | |
37 | Patch6: %{name}-nss-http2.patch | |
38 | Patch7: %{name}-libevent21.patch | |
39 | URL: https://www.seamonkey-project.org/ | |
bd8dbb8a | 40 | BuildRequires: GConf2-devel >= 1.2.1 |
7c87af2b JR |
41 | BuildRequires: OpenGL-devel |
42 | BuildRequires: alsa-lib-devel | |
ceb753a6 | 43 | BuildRequires: autoconf2_13 >= 2.13 |
7c87af2b JR |
44 | BuildRequires: bzip2-devel |
45 | BuildRequires: cairo-devel >= 1.10.2-5 | |
46 | BuildRequires: dbus-glib-devel >= 0.60 | |
ceb753a6 | 47 | BuildRequires: fontconfig-devel >= 1:2.7.0 |
b19e17d8 | 48 | BuildRequires: freetype-devel >= 1:2.1.8 |
ceb753a6 | 49 | BuildRequires: glib2-devel >= 1:2.22 |
c7d608a7 | 50 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.18} |
ceb753a6 | 51 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.4.0} |
7c87af2b JR |
52 | %{?with_kerberos:BuildRequires: heimdal-devel >= 0.7.1} |
53 | BuildRequires: hunspell-devel | |
ceb753a6 JB |
54 | # DECnet (dnprogs.spec), not dummy net (libdnet.spec) |
55 | #BuildRequires: libdnet-devel | |
7c87af2b | 56 | BuildRequires: libevent-devel >= 1.4.7 |
bd8dbb8a JR |
57 | # standalone libffi 3.0.9 or gcc's from 4.5(?)+ |
58 | BuildRequires: libffi-devel >= 6:3.0.9 | |
c7d608a7 | 59 | BuildRequires: libicu-devel >= 50.1 |
16e155ba | 60 | # requires libjpeg-turbo implementing at least libjpeg 6b API |
b19e17d8 | 61 | BuildRequires: libjpeg-devel >= 6b |
16e155ba | 62 | BuildRequires: libjpeg-turbo-devel |
7c87af2b JR |
63 | BuildRequires: libnotify-devel >= 0.4 |
64 | BuildRequires: libpng(APNG)-devel >= 0.10 | |
ceb753a6 JB |
65 | BuildRequires: libpng-devel >= 2:1.6.21 |
66 | BuildRequires: libstdc++-devel >= 6:4.7 | |
67 | BuildRequires: libvpx-devel >= 1.5.0 | |
757edfb3 | 68 | BuildRequires: mozldap-devel >= 6.0 |
7c87af2b JR |
69 | BuildRequires: nspr-devel >= 1:%{nspr_ver} |
70 | BuildRequires: nss-devel >= 1:%{nss_ver} | |
757edfb3 | 71 | BuildRequires: pango-devel >= 1:1.22.0 |
bd8dbb8a | 72 | BuildRequires: perl-base >= 1:5.6 |
7c87af2b | 73 | BuildRequires: perl-modules >= 5.004 |
ceb753a6 | 74 | BuildRequires: pixman-devel >= 0.19.2 |
b19e17d8 | 75 | BuildRequires: pkgconfig |
ceb753a6 JB |
76 | BuildRequires: python >= 1:2.7 |
77 | BuildRequires: python-modules >= 1:2.7 | |
78 | BuildRequires: python-virtualenv >= 1.15 | |
c1527db1 | 79 | BuildRequires: rpm >= 4.4.9-56 |
7c87af2b | 80 | BuildRequires: rpmbuild(macros) >= 1.601 |
b19e17d8 | 81 | BuildRequires: sed >= 4.0 |
ceb753a6 | 82 | BuildRequires: sqlite3-devel >= 3.13.0 |
7c87af2b | 83 | BuildRequires: startup-notification-devel >= 0.8 |
ceb753a6 | 84 | BuildRequires: tar >= 1:1.22 |
c7d608a7 | 85 | BuildRequires: xorg-lib-libX11-devel |
ceb753a6 JB |
86 | BuildRequires: xorg-lib-libXcomposite-devel |
87 | BuildRequires: xorg-lib-libXdamage-devel | |
f5fed05a | 88 | BuildRequires: xorg-lib-libXext-devel |
ceb753a6 | 89 | BuildRequires: xorg-lib-libXfixes-devel |
f5fed05a | 90 | BuildRequires: xorg-lib-libXt-devel |
ceb753a6 JB |
91 | BuildRequires: xz |
92 | %ifarch %{ix86} %{x8664} | |
93 | BuildRequires: yasm >= 1.0.1 | |
7c87af2b JR |
94 | %endif |
95 | BuildRequires: zip | |
510dc0c3 | 96 | BuildRequires: zlib-devel >= 1.2.3 |
7c87af2b JR |
97 | Requires(post): mktemp >= 1.5-18 |
98 | Requires: desktop-file-utils | |
ceb753a6 | 99 | Requires: fontconfig >= 1:2.7.0 |
7c87af2b | 100 | Requires: hicolor-icon-theme |
6d3a5031 | 101 | Requires: browser-plugins >= 2.0 |
7c87af2b JR |
102 | Requires: cairo >= 1.10.2-5 |
103 | Requires: dbus-glib >= 0.60 | |
ceb753a6 | 104 | Requires: glib2 >= 1:2.22 |
c7d608a7 | 105 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.18} |
ceb753a6 | 106 | %{?with_gtk3:Requires: gtk+3 >= 3.4.0} |
16e155ba | 107 | Requires: libjpeg-turbo |
ceb753a6 | 108 | Requires: libpng >= 2:1.6.21 |
7c87af2b | 109 | Requires: libpng(APNG) >= 0.10 |
ceb753a6 | 110 | Requires: libvpx >= 1.5.0 |
7c87af2b JR |
111 | Requires: myspell-common |
112 | Requires: nspr >= 1:%{nspr_ver} | |
113 | Requires: nss >= 1:%{nss_ver} | |
757edfb3 | 114 | Requires: pango >= 1:1.22.0 |
ceb753a6 | 115 | Requires: pixman >= 0.19.2 |
7c87af2b JR |
116 | Requires: sqlite3 >= %{sqlite_build_version} |
117 | Requires: startup-notification >= 0.8 | |
488e9642 | 118 | Provides: seamonkey-embedded = %{version}-%{release} |
b19e17d8 JB |
119 | Provides: wwwbrowser |
120 | Obsoletes: light | |
f27b291c | 121 | Obsoletes: mozilla |
5d0f79b7 | 122 | Obsoletes: mozilla-gnomevfs |
ceb753a6 JB |
123 | Obsoletes: seamonkey-addon-lightning < 2.46 |
124 | Obsoletes: seamonkey-char < 2.46 | |
68683ec1 | 125 | Obsoletes: seamonkey-calendar |
ceb753a6 | 126 | Obsoletes: seamonkey-dom-inspector < 2.46 |
757edfb3 | 127 | Obsoletes: seamonkey-js-debugger |
d6a799e8 | 128 | Obsoletes: seamonkey-libs |
2607f7aa | 129 | Obsoletes: seamonkey-mailnews |
5d0f79b7 | 130 | Obsoletes: seamonkey-gnomevfs |
16e155ba | 131 | Conflicts: seamonkey-lang-resources < %{version} |
b19e17d8 JB |
132 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
133 | ||
bd8dbb8a JR |
134 | %define topdir %{_builddir}/%{name}-%{version} |
135 | %define objdir %{topdir}/obj-%{_target_cpu} | |
136 | ||
137 | %define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+ | |
7c87af2b JR |
138 | |
139 | # don't satisfy other packages | |
140 | %define _noautoprovfiles %{_libdir}/%{name} | |
92482a22 | 141 | # and as we don't provide them, don't require either |
ceb753a6 | 142 | %define _noautoreq liblgpllibs.so libmozgtk.so libmozjs.so libxul.so |
92482a22 | 143 | |
b19e17d8 | 144 | %description |
dc51aa63 ER |
145 | SeaMonkey Community Edition is an open-source web browser, designed |
146 | for standards compliance, performance and portability. | |
b19e17d8 | 147 | |
97d18aeb | 148 | %description -l es.UTF-8 |
dc51aa63 | 149 | SeaMonkey Community Edition es un navegador de Internet que se basa en |
97d18aeb | 150 | una versión inicial de Netscape Communicator. |
b19e17d8 | 151 | |
97d18aeb JR |
152 | %description -l pl.UTF-8 |
153 | SeaMonkey Community Edition jest potężną graficzną przeglądarką WWW, | |
154 | która jest następcą Mozilli, która następnie była następczynią | |
dc51aa63 | 155 | Netscape Communikatora. |
b19e17d8 | 156 | |
97d18aeb JR |
157 | %description -l pt_BR.UTF-8 |
158 | O SeaMonkey Community Edition é um web browser baseado numa versão | |
dc51aa63 | 159 | inicial do Netscape Communicator. |
b19e17d8 | 160 | |
97d18aeb JR |
161 | %description -l ru.UTF-8 |
162 | SeaMonkey Community Edition - полнофункциональный web-browser с | |
163 | открытыми исходными текстами, разработанный для максимального | |
164 | соотвествия стандартам, максмимальной переносимости и скорости работы | |
b19e17d8 | 165 | |
b19e17d8 | 166 | %prep |
ceb753a6 | 167 | %setup -q |
bd8dbb8a JR |
168 | %patch1 -p1 |
169 | %patch2 -p1 | |
757edfb3 | 170 | %patch3 -p1 |
bd8dbb8a | 171 | %patch4 -p1 |
2f09c133 | 172 | %patch5 -p1 |
ceb753a6 | 173 | %patch6 -p1 |
c7d608a7 | 174 | %patch7 -p1 |
bd8dbb8a JR |
175 | |
176 | %build | |
bd8dbb8a JR |
177 | cat << EOF > .mozconfig |
178 | mk_add_options MOZ_OBJDIR=%{objdir} | |
179 | ||
bd8dbb8a JR |
180 | %if %{with crashreporter} |
181 | export MOZ_DEBUG_SYMBOLS=1 | |
182 | %endif | |
183 | ||
184 | # Options for 'configure' (same as command-line options). | |
185 | ac_add_options --prefix=%{_prefix} | |
bd8dbb8a JR |
186 | %if %{?debug:1}0 |
187 | ac_add_options --disable-optimize | |
188 | ac_add_options --enable-debug | |
189 | ac_add_options --enable-debug-modules | |
190 | ac_add_options --enable-debugger-info-modules | |
191 | ac_add_options --enable-crash-on-assert | |
c1527db1 | 192 | %else |
bd8dbb8a | 193 | ac_add_options --disable-debug |
bd8dbb8a | 194 | ac_add_options --enable-optimize="%{rpmcflags} -Os" |
c1527db1 | 195 | %endif |
bd8dbb8a | 196 | ac_add_options --disable-strip |
bd8dbb8a JR |
197 | %if %{with tests} |
198 | ac_add_options --enable-tests | |
199 | %else | |
200 | ac_add_options --disable-tests | |
201 | %endif | |
bd8dbb8a JR |
202 | %if %{with crashreporter} |
203 | ac_add_options --enable-crashreporter | |
204 | %else | |
205 | ac_add_options --disable-crashreporter | |
206 | %endif | |
ceb753a6 | 207 | ac_add_options --disable-elf-hack |
c7d608a7 | 208 | ac_add_options --disable-gnomeui |
ceb753a6 | 209 | ac_add_options --disable-necko-wifi |
bd8dbb8a | 210 | ac_add_options --disable-updater |
c7d608a7 | 211 | ac_add_options --enable-application=suite |
ceb753a6 | 212 | ac_add_options --enable-chrome-format=omni |
c7d608a7 | 213 | ac_add_options --enable-default-toolkit=%{?with_gtk3:cairo-gtk3}%{!?with_gtk3:cairo-gtk2} |
ceb753a6 | 214 | ac_add_options --enable-extensions=default,irc |
c7d608a7 JB |
215 | ac_add_options --enable-gio |
216 | %if %{with ldap} | |
217 | ac_add_options --enable-ldap | |
c7d608a7 JB |
218 | %else |
219 | ac_add_options --disable-ldap | |
220 | %endif | |
ceb753a6 JB |
221 | ac_add_options --enable-safe-browsing |
222 | # breaks build | |
223 | #ac_add_options --enable-shared-js | |
bd8dbb8a | 224 | ac_add_options --enable-startup-notification |
bd8dbb8a JR |
225 | ac_add_options --enable-system-cairo |
226 | ac_add_options --enable-system-hunspell | |
227 | ac_add_options --enable-system-sqlite | |
c7d608a7 | 228 | ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name} |
bd8dbb8a | 229 | ac_add_options --with-distribution-id=org.pld-linux |
bd8dbb8a JR |
230 | ac_add_options --with-pthreads |
231 | ac_add_options --with-system-bz2 | |
232 | ac_add_options --with-system-ffi | |
757edfb3 | 233 | ac_add_options --with-system-icu |
bd8dbb8a JR |
234 | ac_add_options --with-system-jpeg |
235 | ac_add_options --with-system-libevent | |
236 | ac_add_options --with-system-libvpx | |
237 | ac_add_options --with-system-nspr | |
238 | ac_add_options --with-system-nss | |
239 | ac_add_options --with-system-png | |
240 | ac_add_options --with-system-zlib | |
bd8dbb8a | 241 | EOF |
b19e17d8 | 242 | |
bd8dbb8a | 243 | %{__make} -j1 -f client.mk build \ |
ceb753a6 | 244 | AUTOCONF=/usr/bin/autoconf2_13 \ |
bd8dbb8a JR |
245 | STRIP="/bin/true" \ |
246 | MOZ_MAKE_FLAGS="%{?_smp_mflags}" \ | |
2607f7aa | 247 | installdir=%{_libdir}/%{name} \ |
16e155ba | 248 | XLIBS="-lX11 -lXt" \ |
bd8dbb8a | 249 | CC="%{__cc}" \ |
ceb753a6 | 250 | CXX="%{__cxx} -std=gnu++11" |
b19e17d8 | 251 | |
bd8dbb8a JR |
252 | %if %{with crashreporter} |
253 | # create debuginfo for crash-stats.mozilla.com | |
254 | %{__make} -j1 -C obj-%{_target_cpu} buildsymbols | |
255 | %endif | |
256 | ||
b19e17d8 JB |
257 | %install |
258 | rm -rf $RPM_BUILD_ROOT | |
259 | install -d \ | |
2607f7aa | 260 | $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} \ |
b19e17d8 | 261 | $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \ |
bd8dbb8a | 262 | $RPM_BUILD_ROOT%{_datadir}/%{name} \ |
757edfb3 JB |
263 | $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins \ |
264 | $RPM_BUILD_ROOT%{_mandir}/man1 | |
b19e17d8 | 265 | |
bd8dbb8a | 266 | %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins |
b19e17d8 | 267 | |
d7cc109a | 268 | cd %{objdir} |
c7d608a7 | 269 | cwd=`pwd` |
2607f7aa | 270 | %{__make} -C suite/installer stage-package \ |
bd8dbb8a | 271 | DESTDIR=$RPM_BUILD_ROOT \ |
bd8dbb8a | 272 | installdir=%{_libdir}/%{name} \ |
2607f7aa JR |
273 | PKG_SKIP_STRIP=1 |
274 | ||
757edfb3 JB |
275 | cp -a dist/seamonkey/* $RPM_BUILD_ROOT%{_libdir}/%{name}/ |
276 | cp -p dist/man/man1/seamonkey.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
b19e17d8 | 277 | |
d7cc109a JR |
278 | # Enable crash reporter for Thunderbird application |
279 | %if %{with crashreporter} | |
280 | %{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini | |
281 | ||
282 | # Add debuginfo for crash-stats.mozilla.com | |
283 | install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name} | |
ceb753a6 | 284 | cp -a dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name} |
d7cc109a JR |
285 | %endif |
286 | ||
bd8dbb8a | 287 | # move arch independant ones to datadir |
ceb753a6 JB |
288 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome |
289 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults | |
290 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins | |
b19e17d8 | 291 | |
bd8dbb8a JR |
292 | ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome |
293 | ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults | |
bd8dbb8a | 294 | ln -s ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins |
c7d608a7 | 295 | |
ceb753a6 | 296 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp |
eebfc2d2 | 297 | ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp |
bd8dbb8a | 298 | |
d7cc109a JR |
299 | # dir for arch independant extensions besides arch dependant extensions |
300 | # see mozilla/xpcom/build/nsXULAppAPI.h | |
301 | # XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR | |
302 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions | |
303 | ||
bd8dbb8a JR |
304 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries |
305 | ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries | |
b19e17d8 | 306 | |
16e155ba | 307 | sed 's,@LIBDIR@,%{_libdir},' %{SOURCE9} > $RPM_BUILD_ROOT%{_bindir}/seamonkey |
bd8dbb8a | 308 | chmod a+rx $RPM_BUILD_ROOT%{_bindir}/seamonkey |
b19e17d8 | 309 | |
ceb753a6 | 310 | install %{SOURCE4} %{SOURCE5} %{SOURCE7} \ |
824eb755 | 311 | $RPM_BUILD_ROOT%{_desktopdir} |
b19e17d8 | 312 | |
ceb753a6 JB |
313 | for d in 32 48 64 ; do |
314 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${d}x${d}/apps | |
315 | cp -p %{topdir}/suite/branding/nightly/content/icon${d}.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${d}x${d}/apps/%{name}.png | |
316 | done | |
b19e17d8 | 317 | |
2607f7aa | 318 | # files created by seamonkey -register |
d7cc109a JR |
319 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat |
320 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat | |
b19e17d8 | 321 | |
d7cc109a | 322 | cat << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/register |
b19e17d8 JB |
323 | #!/bin/sh |
324 | umask 022 | |
d7cc109a JR |
325 | rm -f %{_libdir}/%{name}/components/{compreg,xpti}.dat |
326 | ||
327 | # it attempts to touch files in $HOME/.mozilla | |
328 | # beware if you run this with sudo!!! | |
329 | export HOME=$(mktemp -d) | |
330 | # also TMPDIR could be pointing to sudo user's homedir | |
331 | unset TMPDIR TMP || : | |
acf8815d | 332 | |
d7cc109a | 333 | %{_libdir}/%{name}/seamonkey -register |
acf8815d | 334 | |
d7cc109a | 335 | rm -rf $HOME |
b19e17d8 | 336 | EOF |
d7cc109a | 337 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/register |
b19e17d8 | 338 | |
ceb753a6 JB |
339 | # don't package, rely on system mozldap libraries |
340 | %{__sed} -i '/lib\(ldap\|ldif\|prldap\)60.so/d' $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list | |
341 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap}60.so | |
342 | ||
b19e17d8 JB |
343 | %clean |
344 | rm -rf $RPM_BUILD_ROOT | |
345 | ||
6d3a5031 | 346 | %post |
d7cc109a | 347 | %{_libdir}/%{name}/register || : |
6d3a5031 | 348 | %update_browser_plugins |
ceb753a6 | 349 | %update_icon_cache hicolor |
d7cc109a | 350 | %update_desktop_database |
6d3a5031 ER |
351 | |
352 | %postun | |
6d3a5031 ER |
353 | if [ "$1" = 0 ]; then |
354 | %update_browser_plugins | |
ceb753a6 | 355 | %update_icon_cache hicolor |
6d3a5031 | 356 | fi |
b19e17d8 | 357 | |
b19e17d8 JB |
358 | %files |
359 | %defattr(644,root,root,755) | |
ceb753a6 | 360 | %doc AUTHORS |
acf8815d | 361 | %attr(755,root,root) %{_bindir}/seamonkey |
757edfb3 | 362 | %{_mandir}/man1/seamonkey.1* |
b19e17d8 | 363 | |
6d3a5031 ER |
364 | # browser plugins v2 |
365 | %{_browserpluginsconfdir}/browsers.d/%{name}.* | |
366 | %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist | |
367 | ||
d7cc109a | 368 | %dir %{_libdir}/%{name} |
ceb753a6 JB |
369 | %attr(755,root,root) %{_libdir}/%{name}/liblgpllibs.so |
370 | %attr(755,root,root) %{_libdir}/%{name}/libmozgtk.so | |
2607f7aa | 371 | %attr(755,root,root) %{_libdir}/%{name}/libxul.so |
ceb753a6 JB |
372 | %dir %{_libdir}/%{name}/gtk2 |
373 | %attr(755,root,root) %{_libdir}/%{name}/gtk2/libmozgtk.so | |
d7cc109a | 374 | |
2607f7aa | 375 | %{_libdir}/%{name}/blocklist.xml |
c7d608a7 | 376 | %{_libdir}/%{name}/omni.ja |
2607f7aa | 377 | %attr(755,root,root) %{_libdir}/%{name}/register |
d7cc109a | 378 | |
2607f7aa JR |
379 | %if %{with crashreporter} |
380 | %{_libdir}/%{name}/crashreporter | |
381 | %{_libdir}/%{name}/crashreporter-override.ini | |
382 | %{_libdir}/%{name}/crashreporter.ini | |
383 | %{_libdir}/%{name}/Throbber-small.gif | |
384 | %endif | |
385 | ||
386 | # config? | |
387 | %{_libdir}/%{name}/application.ini | |
388 | %{_libdir}/%{name}/chrome.manifest | |
389 | ||
390 | %dir %{_libdir}/%{name}/components | |
2607f7aa | 391 | %{_libdir}/%{name}/components/components.manifest |
16e155ba JB |
392 | %attr(755,root,root) %{_libdir}/%{name}/components/libsuite.so |
393 | ||
16e155ba | 394 | %{_libdir}/%{name}/dependentlibs.list |
2607f7aa | 395 | %{_libdir}/%{name}/platform.ini |
2607f7aa JR |
396 | %attr(755,root,root) %{_libdir}/%{name}/run-mozilla.sh |
397 | %attr(755,root,root) %{_libdir}/%{name}/seamonkey-bin | |
2607f7aa | 398 | %attr(755,root,root) %{_libdir}/%{name}/plugin-container |
2607f7aa | 399 | |
16e155ba JB |
400 | %attr(755,root,root) %{_libdir}/%{name}/seamonkey |
401 | %dir %{_libdir}/%{name}/plugins | |
402 | ||
2607f7aa JR |
403 | # symlinks |
404 | %{_libdir}/%{name}/chrome | |
405 | %{_libdir}/%{name}/defaults | |
2607f7aa | 406 | %{_libdir}/%{name}/searchplugins |
2607f7aa | 407 | %{_libdir}/%{name}/dictionaries |
b19e17d8 | 408 | |
2607f7aa JR |
409 | %dir %{_datadir}/%{name} |
410 | %{_datadir}/%{name}/chrome | |
b19e17d8 | 411 | %{_datadir}/%{name}/defaults |
b19e17d8 | 412 | %{_datadir}/%{name}/searchplugins |
b19e17d8 | 413 | |
2607f7aa JR |
414 | %dir %{_datadir}/%{name}/extensions |
415 | %dir %{_libdir}/%{name}/extensions | |
416 | # the signature of the default theme | |
417 | %{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi | |
418 | %{_libdir}/%{name}/extensions/modern@themes.mozilla.org.xpi | |
b19e17d8 | 419 | |
2607f7aa JR |
420 | # files created by seamonkey -register |
421 | %ghost %{_libdir}/%{name}/components/compreg.dat | |
422 | %ghost %{_libdir}/%{name}/components/xpti.dat | |
d7cc109a | 423 | |
2607f7aa JR |
424 | %{_libdir}/%{name}/isp |
425 | %dir %{_datadir}/%{name}/isp | |
426 | %{_datadir}/%{name}/isp/Bogofilter.sfd | |
427 | %{_datadir}/%{name}/isp/DSPAM.sfd | |
428 | %{_datadir}/%{name}/isp/POPFile.sfd | |
429 | %{_datadir}/%{name}/isp/SpamAssassin.sfd | |
430 | %{_datadir}/%{name}/isp/SpamPal.sfd | |
431 | %{_datadir}/%{name}/isp/movemail.rdf | |
432 | %{_datadir}/%{name}/isp/rss.rdf | |
b19e17d8 | 433 | |
ceb753a6 | 434 | %{_iconsdir}/hicolor/*x*/apps/seamonkey.png |
2607f7aa JR |
435 | %{_desktopdir}/%{name}.desktop |
436 | %{_desktopdir}/%{name}-composer.desktop | |
824eb755 | 437 | %{_desktopdir}/%{name}-mail.desktop |