]>
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 | |
80e2f4a2 | 78 | BuildRequires: python-virtualenv >= 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 | 119 | Provides: wwwbrowser |
80e2f4a2 JR |
120 | Obsoletes: iceape |
121 | Obsoletes: iceape-addon-lightning | |
122 | Obsoletes: iceape-chat | |
123 | Obsoletes: iceape-dom-inspector | |
124 | Obsoletes: iceape-js-debugger | |
125 | Obsoletes: iceape-mailnews | |
126 | Obsoletes: iceape-gnomevfs | |
b19e17d8 | 127 | Obsoletes: light |
f27b291c | 128 | Obsoletes: mozilla |
5d0f79b7 | 129 | Obsoletes: mozilla-gnomevfs |
ceb753a6 JB |
130 | Obsoletes: seamonkey-addon-lightning < 2.46 |
131 | Obsoletes: seamonkey-char < 2.46 | |
68683ec1 | 132 | Obsoletes: seamonkey-calendar |
ceb753a6 | 133 | Obsoletes: seamonkey-dom-inspector < 2.46 |
757edfb3 | 134 | Obsoletes: seamonkey-js-debugger |
d6a799e8 | 135 | Obsoletes: seamonkey-libs |
2607f7aa | 136 | Obsoletes: seamonkey-mailnews |
5d0f79b7 | 137 | Obsoletes: seamonkey-gnomevfs |
16e155ba | 138 | Conflicts: seamonkey-lang-resources < %{version} |
b19e17d8 JB |
139 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
140 | ||
bd8dbb8a JR |
141 | %define topdir %{_builddir}/%{name}-%{version} |
142 | %define objdir %{topdir}/obj-%{_target_cpu} | |
143 | ||
144 | %define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+ | |
7c87af2b JR |
145 | |
146 | # don't satisfy other packages | |
147 | %define _noautoprovfiles %{_libdir}/%{name} | |
92482a22 | 148 | # and as we don't provide them, don't require either |
ceb753a6 | 149 | %define _noautoreq liblgpllibs.so libmozgtk.so libmozjs.so libxul.so |
92482a22 | 150 | |
b19e17d8 | 151 | %description |
dc51aa63 ER |
152 | SeaMonkey Community Edition is an open-source web browser, designed |
153 | for standards compliance, performance and portability. | |
b19e17d8 | 154 | |
97d18aeb | 155 | %description -l es.UTF-8 |
dc51aa63 | 156 | SeaMonkey Community Edition es un navegador de Internet que se basa en |
97d18aeb | 157 | una versión inicial de Netscape Communicator. |
b19e17d8 | 158 | |
97d18aeb JR |
159 | %description -l pl.UTF-8 |
160 | SeaMonkey Community Edition jest potężną graficzną przeglądarką WWW, | |
161 | która jest następcą Mozilli, która następnie była następczynią | |
dc51aa63 | 162 | Netscape Communikatora. |
b19e17d8 | 163 | |
97d18aeb JR |
164 | %description -l pt_BR.UTF-8 |
165 | O SeaMonkey Community Edition é um web browser baseado numa versão | |
dc51aa63 | 166 | inicial do Netscape Communicator. |
b19e17d8 | 167 | |
97d18aeb JR |
168 | %description -l ru.UTF-8 |
169 | SeaMonkey Community Edition - полнофункциональный web-browser с | |
170 | открытыми исходными текстами, разработанный для максимального | |
171 | соотвествия стандартам, максмимальной переносимости и скорости работы | |
b19e17d8 | 172 | |
b19e17d8 | 173 | %prep |
ceb753a6 | 174 | %setup -q |
bd8dbb8a JR |
175 | %patch1 -p1 |
176 | %patch2 -p1 | |
757edfb3 | 177 | %patch3 -p1 |
bd8dbb8a | 178 | %patch4 -p1 |
2f09c133 | 179 | %patch5 -p1 |
ceb753a6 | 180 | %patch6 -p1 |
c7d608a7 | 181 | %patch7 -p1 |
bd8dbb8a JR |
182 | |
183 | %build | |
bd8dbb8a JR |
184 | cat << EOF > .mozconfig |
185 | mk_add_options MOZ_OBJDIR=%{objdir} | |
186 | ||
bd8dbb8a JR |
187 | %if %{with crashreporter} |
188 | export MOZ_DEBUG_SYMBOLS=1 | |
189 | %endif | |
190 | ||
191 | # Options for 'configure' (same as command-line options). | |
192 | ac_add_options --prefix=%{_prefix} | |
bd8dbb8a JR |
193 | %if %{?debug:1}0 |
194 | ac_add_options --disable-optimize | |
195 | ac_add_options --enable-debug | |
196 | ac_add_options --enable-debug-modules | |
197 | ac_add_options --enable-debugger-info-modules | |
198 | ac_add_options --enable-crash-on-assert | |
c1527db1 | 199 | %else |
bd8dbb8a | 200 | ac_add_options --disable-debug |
bd8dbb8a | 201 | ac_add_options --enable-optimize="%{rpmcflags} -Os" |
c1527db1 | 202 | %endif |
bd8dbb8a | 203 | ac_add_options --disable-strip |
bd8dbb8a JR |
204 | %if %{with tests} |
205 | ac_add_options --enable-tests | |
206 | %else | |
207 | ac_add_options --disable-tests | |
208 | %endif | |
bd8dbb8a JR |
209 | %if %{with crashreporter} |
210 | ac_add_options --enable-crashreporter | |
211 | %else | |
212 | ac_add_options --disable-crashreporter | |
213 | %endif | |
ceb753a6 | 214 | ac_add_options --disable-elf-hack |
c7d608a7 | 215 | ac_add_options --disable-gnomeui |
ceb753a6 | 216 | ac_add_options --disable-necko-wifi |
bd8dbb8a | 217 | ac_add_options --disable-updater |
c7d608a7 | 218 | ac_add_options --enable-application=suite |
ceb753a6 | 219 | ac_add_options --enable-chrome-format=omni |
c7d608a7 | 220 | ac_add_options --enable-default-toolkit=%{?with_gtk3:cairo-gtk3}%{!?with_gtk3:cairo-gtk2} |
ceb753a6 | 221 | ac_add_options --enable-extensions=default,irc |
c7d608a7 JB |
222 | ac_add_options --enable-gio |
223 | %if %{with ldap} | |
224 | ac_add_options --enable-ldap | |
c7d608a7 JB |
225 | %else |
226 | ac_add_options --disable-ldap | |
227 | %endif | |
ceb753a6 JB |
228 | ac_add_options --enable-safe-browsing |
229 | # breaks build | |
230 | #ac_add_options --enable-shared-js | |
bd8dbb8a | 231 | ac_add_options --enable-startup-notification |
bd8dbb8a JR |
232 | ac_add_options --enable-system-cairo |
233 | ac_add_options --enable-system-hunspell | |
234 | ac_add_options --enable-system-sqlite | |
c7d608a7 | 235 | ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name} |
bd8dbb8a | 236 | ac_add_options --with-distribution-id=org.pld-linux |
bd8dbb8a JR |
237 | ac_add_options --with-pthreads |
238 | ac_add_options --with-system-bz2 | |
239 | ac_add_options --with-system-ffi | |
757edfb3 | 240 | ac_add_options --with-system-icu |
bd8dbb8a JR |
241 | ac_add_options --with-system-jpeg |
242 | ac_add_options --with-system-libevent | |
243 | ac_add_options --with-system-libvpx | |
244 | ac_add_options --with-system-nspr | |
245 | ac_add_options --with-system-nss | |
246 | ac_add_options --with-system-png | |
247 | ac_add_options --with-system-zlib | |
bd8dbb8a | 248 | EOF |
b19e17d8 | 249 | |
bd8dbb8a | 250 | %{__make} -j1 -f client.mk build \ |
ceb753a6 | 251 | AUTOCONF=/usr/bin/autoconf2_13 \ |
bd8dbb8a JR |
252 | STRIP="/bin/true" \ |
253 | MOZ_MAKE_FLAGS="%{?_smp_mflags}" \ | |
2607f7aa | 254 | installdir=%{_libdir}/%{name} \ |
16e155ba | 255 | XLIBS="-lX11 -lXt" \ |
bd8dbb8a | 256 | CC="%{__cc}" \ |
ceb753a6 | 257 | CXX="%{__cxx} -std=gnu++11" |
b19e17d8 | 258 | |
bd8dbb8a JR |
259 | %if %{with crashreporter} |
260 | # create debuginfo for crash-stats.mozilla.com | |
261 | %{__make} -j1 -C obj-%{_target_cpu} buildsymbols | |
262 | %endif | |
263 | ||
b19e17d8 JB |
264 | %install |
265 | rm -rf $RPM_BUILD_ROOT | |
266 | install -d \ | |
2607f7aa | 267 | $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} \ |
b19e17d8 | 268 | $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \ |
bd8dbb8a | 269 | $RPM_BUILD_ROOT%{_datadir}/%{name} \ |
757edfb3 JB |
270 | $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins \ |
271 | $RPM_BUILD_ROOT%{_mandir}/man1 | |
b19e17d8 | 272 | |
bd8dbb8a | 273 | %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins |
b19e17d8 | 274 | |
d7cc109a | 275 | cd %{objdir} |
c7d608a7 | 276 | cwd=`pwd` |
2607f7aa | 277 | %{__make} -C suite/installer stage-package \ |
bd8dbb8a | 278 | DESTDIR=$RPM_BUILD_ROOT \ |
bd8dbb8a | 279 | installdir=%{_libdir}/%{name} \ |
2607f7aa JR |
280 | PKG_SKIP_STRIP=1 |
281 | ||
757edfb3 JB |
282 | cp -a dist/seamonkey/* $RPM_BUILD_ROOT%{_libdir}/%{name}/ |
283 | cp -p dist/man/man1/seamonkey.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
b19e17d8 | 284 | |
d7cc109a JR |
285 | # Enable crash reporter for Thunderbird application |
286 | %if %{with crashreporter} | |
287 | %{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini | |
288 | ||
289 | # Add debuginfo for crash-stats.mozilla.com | |
290 | install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name} | |
ceb753a6 | 291 | cp -a dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name} |
d7cc109a JR |
292 | %endif |
293 | ||
bd8dbb8a | 294 | # move arch independant ones to datadir |
ceb753a6 JB |
295 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome |
296 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults | |
297 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins | |
b19e17d8 | 298 | |
bd8dbb8a JR |
299 | ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome |
300 | ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults | |
bd8dbb8a | 301 | ln -s ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins |
c7d608a7 | 302 | |
ceb753a6 | 303 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp |
eebfc2d2 | 304 | ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp |
bd8dbb8a | 305 | |
d7cc109a JR |
306 | # dir for arch independant extensions besides arch dependant extensions |
307 | # see mozilla/xpcom/build/nsXULAppAPI.h | |
308 | # XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR | |
309 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions | |
310 | ||
bd8dbb8a JR |
311 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries |
312 | ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries | |
b19e17d8 | 313 | |
16e155ba | 314 | sed 's,@LIBDIR@,%{_libdir},' %{SOURCE9} > $RPM_BUILD_ROOT%{_bindir}/seamonkey |
bd8dbb8a | 315 | chmod a+rx $RPM_BUILD_ROOT%{_bindir}/seamonkey |
b19e17d8 | 316 | |
ceb753a6 | 317 | install %{SOURCE4} %{SOURCE5} %{SOURCE7} \ |
824eb755 | 318 | $RPM_BUILD_ROOT%{_desktopdir} |
b19e17d8 | 319 | |
ceb753a6 JB |
320 | for d in 32 48 64 ; do |
321 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${d}x${d}/apps | |
322 | cp -p %{topdir}/suite/branding/nightly/content/icon${d}.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${d}x${d}/apps/%{name}.png | |
323 | done | |
b19e17d8 | 324 | |
2607f7aa | 325 | # files created by seamonkey -register |
d7cc109a JR |
326 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat |
327 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat | |
b19e17d8 | 328 | |
d7cc109a | 329 | cat << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/register |
b19e17d8 JB |
330 | #!/bin/sh |
331 | umask 022 | |
d7cc109a JR |
332 | rm -f %{_libdir}/%{name}/components/{compreg,xpti}.dat |
333 | ||
334 | # it attempts to touch files in $HOME/.mozilla | |
335 | # beware if you run this with sudo!!! | |
336 | export HOME=$(mktemp -d) | |
337 | # also TMPDIR could be pointing to sudo user's homedir | |
338 | unset TMPDIR TMP || : | |
acf8815d | 339 | |
d7cc109a | 340 | %{_libdir}/%{name}/seamonkey -register |
acf8815d | 341 | |
d7cc109a | 342 | rm -rf $HOME |
b19e17d8 | 343 | EOF |
d7cc109a | 344 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/register |
b19e17d8 | 345 | |
ceb753a6 JB |
346 | # don't package, rely on system mozldap libraries |
347 | %{__sed} -i '/lib\(ldap\|ldif\|prldap\)60.so/d' $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list | |
348 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap}60.so | |
349 | ||
b19e17d8 JB |
350 | %clean |
351 | rm -rf $RPM_BUILD_ROOT | |
352 | ||
6d3a5031 | 353 | %post |
d7cc109a | 354 | %{_libdir}/%{name}/register || : |
6d3a5031 | 355 | %update_browser_plugins |
ceb753a6 | 356 | %update_icon_cache hicolor |
d7cc109a | 357 | %update_desktop_database |
6d3a5031 ER |
358 | |
359 | %postun | |
6d3a5031 ER |
360 | if [ "$1" = 0 ]; then |
361 | %update_browser_plugins | |
ceb753a6 | 362 | %update_icon_cache hicolor |
6d3a5031 | 363 | fi |
b19e17d8 | 364 | |
b19e17d8 JB |
365 | %files |
366 | %defattr(644,root,root,755) | |
ceb753a6 | 367 | %doc AUTHORS |
acf8815d | 368 | %attr(755,root,root) %{_bindir}/seamonkey |
757edfb3 | 369 | %{_mandir}/man1/seamonkey.1* |
b19e17d8 | 370 | |
6d3a5031 ER |
371 | # browser plugins v2 |
372 | %{_browserpluginsconfdir}/browsers.d/%{name}.* | |
373 | %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist | |
374 | ||
d7cc109a | 375 | %dir %{_libdir}/%{name} |
ceb753a6 JB |
376 | %attr(755,root,root) %{_libdir}/%{name}/liblgpllibs.so |
377 | %attr(755,root,root) %{_libdir}/%{name}/libmozgtk.so | |
2607f7aa | 378 | %attr(755,root,root) %{_libdir}/%{name}/libxul.so |
ceb753a6 JB |
379 | %dir %{_libdir}/%{name}/gtk2 |
380 | %attr(755,root,root) %{_libdir}/%{name}/gtk2/libmozgtk.so | |
d7cc109a | 381 | |
2607f7aa | 382 | %{_libdir}/%{name}/blocklist.xml |
c7d608a7 | 383 | %{_libdir}/%{name}/omni.ja |
2607f7aa | 384 | %attr(755,root,root) %{_libdir}/%{name}/register |
d7cc109a | 385 | |
2607f7aa JR |
386 | %if %{with crashreporter} |
387 | %{_libdir}/%{name}/crashreporter | |
388 | %{_libdir}/%{name}/crashreporter-override.ini | |
389 | %{_libdir}/%{name}/crashreporter.ini | |
390 | %{_libdir}/%{name}/Throbber-small.gif | |
391 | %endif | |
392 | ||
393 | # config? | |
394 | %{_libdir}/%{name}/application.ini | |
395 | %{_libdir}/%{name}/chrome.manifest | |
396 | ||
397 | %dir %{_libdir}/%{name}/components | |
2607f7aa | 398 | %{_libdir}/%{name}/components/components.manifest |
16e155ba JB |
399 | %attr(755,root,root) %{_libdir}/%{name}/components/libsuite.so |
400 | ||
16e155ba | 401 | %{_libdir}/%{name}/dependentlibs.list |
2607f7aa | 402 | %{_libdir}/%{name}/platform.ini |
2607f7aa JR |
403 | %attr(755,root,root) %{_libdir}/%{name}/run-mozilla.sh |
404 | %attr(755,root,root) %{_libdir}/%{name}/seamonkey-bin | |
2607f7aa | 405 | %attr(755,root,root) %{_libdir}/%{name}/plugin-container |
2607f7aa | 406 | |
16e155ba JB |
407 | %attr(755,root,root) %{_libdir}/%{name}/seamonkey |
408 | %dir %{_libdir}/%{name}/plugins | |
409 | ||
2607f7aa JR |
410 | # symlinks |
411 | %{_libdir}/%{name}/chrome | |
412 | %{_libdir}/%{name}/defaults | |
2607f7aa | 413 | %{_libdir}/%{name}/searchplugins |
2607f7aa | 414 | %{_libdir}/%{name}/dictionaries |
b19e17d8 | 415 | |
2607f7aa JR |
416 | %dir %{_datadir}/%{name} |
417 | %{_datadir}/%{name}/chrome | |
b19e17d8 | 418 | %{_datadir}/%{name}/defaults |
b19e17d8 | 419 | %{_datadir}/%{name}/searchplugins |
b19e17d8 | 420 | |
2607f7aa JR |
421 | %dir %{_datadir}/%{name}/extensions |
422 | %dir %{_libdir}/%{name}/extensions | |
423 | # the signature of the default theme | |
424 | %{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi | |
425 | %{_libdir}/%{name}/extensions/modern@themes.mozilla.org.xpi | |
b19e17d8 | 426 | |
2607f7aa JR |
427 | # files created by seamonkey -register |
428 | %ghost %{_libdir}/%{name}/components/compreg.dat | |
429 | %ghost %{_libdir}/%{name}/components/xpti.dat | |
d7cc109a | 430 | |
2607f7aa JR |
431 | %{_libdir}/%{name}/isp |
432 | %dir %{_datadir}/%{name}/isp | |
433 | %{_datadir}/%{name}/isp/Bogofilter.sfd | |
434 | %{_datadir}/%{name}/isp/DSPAM.sfd | |
435 | %{_datadir}/%{name}/isp/POPFile.sfd | |
436 | %{_datadir}/%{name}/isp/SpamAssassin.sfd | |
437 | %{_datadir}/%{name}/isp/SpamPal.sfd | |
438 | %{_datadir}/%{name}/isp/movemail.rdf | |
439 | %{_datadir}/%{name}/isp/rss.rdf | |
b19e17d8 | 440 | |
ceb753a6 | 441 | %{_iconsdir}/hicolor/*x*/apps/seamonkey.png |
2607f7aa JR |
442 | %{_desktopdir}/%{name}.desktop |
443 | %{_desktopdir}/%{name}-composer.desktop | |
824eb755 | 444 | %{_desktopdir}/%{name}-mail.desktop |