]>
Commit | Line | Data |
---|---|---|
c4ddd260 | 1 | # TODO: |
283702b9 | 2 | # - build with system mozldap |
c4ddd260 | 3 | # |
44be9ed4 | 4 | # Conditional builds |
3366507a | 5 | %bcond_with gtk3 # GTK+ 3.x instead of 2.x |
44be9ed4 | 6 | %bcond_without ldap # disable e-mail address lookups in LDAP directories |
e820c55e | 7 | %bcond_without lightning # disable Sunbird/Lightning calendar |
fac7e24d | 8 | %bcond_with xulrunner # system xulrunner |
765a3a27 | 9 | %bcond_with crashreporter # report crashes to crash-stats.mozilla.com |
a97d3356 JR |
10 | # - disabled shared_js - https://bugzilla.mozilla.org/show_bug.cgi?id=1039964 |
11 | %bcond_with shared_js # shared libmozjs library [broken] | |
88149483 | 12 | |
f4114a7f | 13 | %if 0%{?_enable_debug_packages} != 1 |
765a3a27 ER |
14 | %undefine crashreporter |
15 | %endif | |
16 | ||
62096d2c | 17 | %define nspr_ver 4.10.6 |
3a30e2d7 | 18 | %define nss_ver 3.19.2.1 |
44be9ed4 | 19 | |
62096d2c | 20 | %define xulrunner_ver 2:31.3.0 |
4f34f106 | 21 | |
7d981f69 ER |
22 | %if %{without xulrunner} |
23 | # The actual sqlite version (see RHBZ#480989): | |
24 | %define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR) | |
25 | %endif | |
26 | ||
44be9ed4 | 27 | Summary: Icedove - email client |
28 | Summary(pl.UTF-8): Icedove - klient poczty | |
29 | Name: icedove | |
98fa662c JR |
30 | Version: 38.5.0 |
31 | Release: 1 | |
3366507a | 32 | License: MPL v2.0 |
2d289b25 | 33 | Group: X11/Applications/Mail |
cadfb931 | 34 | Source0: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/thunderbird-%{version}.source.tar.bz2 |
98fa662c | 35 | # Source0-md5: 516ddb66f788ea7db48ed0d76f7a7ebc |
090220f6 | 36 | Source2: %{name}-branding.tar.xz |
3a30e2d7 | 37 | # Source2-md5: 66753bc5c924d7492b6b5c9bdc3e4b5b |
44be9ed4 | 38 | Source4: %{name}.desktop |
39 | Source5: %{name}.sh | |
44be9ed4 | 40 | Patch0: %{name}-branding.patch |
f53f9bcd JR |
41 | Patch2: %{name}-prefs.patch |
42 | Patch3: system-mozldap.patch | |
f53f9bcd JR |
43 | Patch5: %{name}-extensiondir.patch |
44 | Patch6: no-subshell.patch | |
03be87a5 | 45 | # Edit patch below and restore --system-site-packages when system virtualenv gets 1.7 upgrade |
f53f9bcd JR |
46 | Patch7: system-virtualenv.patch |
47 | Patch8: enable-addons.patch | |
48 | Patch9: bump-nss-req.patch | |
5745d706 | 49 | URL: http://www.pld-linux.org/Packages/Icedove |
6458b220 | 50 | BuildRequires: GConf2-devel >= 1.2.1 |
51a3b6db | 51 | BuildRequires: alsa-lib-devel |
44be9ed4 | 52 | BuildRequires: automake |
51a3b6db | 53 | BuildRequires: bzip2-devel |
e820c55e JB |
54 | BuildRequires: cairo-devel >= 1.10 |
55 | BuildRequires: dbus-glib-devel >= 0.60 | |
44be9ed4 | 56 | BuildRequires: freetype-devel >= 1:2.1.8 |
6f32f966 | 57 | BuildRequires: glib2-devel >= 1:2.20 |
d0b96b40 JR |
58 | BuildRequires: gstreamer0.10-devel |
59 | BuildRequires: gstreamer0.10-plugins-base-devel | |
3366507a JB |
60 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.14} |
61 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} | |
5e9bb798 | 62 | BuildRequires: hunspell-devel |
44be9ed4 | 63 | BuildRequires: libIDL-devel >= 0.8.0 |
d0b96b40 | 64 | BuildRequires: libevent-devel |
9b89aca5 | 65 | BuildRequires: libicu-devel >= 50.1 |
51a3b6db | 66 | BuildRequires: libiw-devel |
e82da7a1 | 67 | # requires libjpeg-turbo implementing at least libjpeg 6b API |
44be9ed4 | 68 | BuildRequires: libjpeg-devel >= 6b |
e82da7a1 | 69 | BuildRequires: libjpeg-turbo-devel |
e820c55e | 70 | BuildRequires: libpng-devel >= 1.4.1 |
44be9ed4 | 71 | BuildRequires: libstdc++-devel |
d0b96b40 | 72 | BuildRequires: mozldap-devel |
f4114a7f ER |
73 | BuildRequires: nspr-devel >= 1:%{nspr_ver} |
74 | BuildRequires: nss-devel >= 1:%{nss_ver} | |
62096d2c | 75 | BuildRequires: pango-devel >= 1:1.22.0 |
e820c55e | 76 | BuildRequires: perl-base >= 1:5.6 |
d0b96b40 | 77 | BuildRequires: python-virtualenv |
1c62cadb | 78 | BuildRequires: pkgconfig |
e820c55e | 79 | BuildRequires: python >= 1:2.5 |
44be9ed4 | 80 | BuildRequires: sed >= 4.0 |
62096d2c | 81 | BuildRequires: sqlite3-devel >= 3.8.4.2 |
1c62cadb | 82 | BuildRequires: startup-notification-devel >= 0.8 |
62096d2c | 83 | BuildRequires: libvpx-devel >= 1.3.0 |
ffb12c8e | 84 | BuildRequires: virtualenv |
44be9ed4 | 85 | BuildRequires: xorg-lib-libXext-devel |
44be9ed4 | 86 | BuildRequires: xorg-lib-libXinerama-devel |
44be9ed4 | 87 | BuildRequires: xorg-lib-libXt-devel |
5745d706 | 88 | BuildRequires: yasm |
1c62cadb | 89 | BuildRequires: zip |
7d981f69 | 90 | %if %{with xulrunner} |
e8326f77 | 91 | BuildRequires: xulrunner-devel >= %{xulrunner_ver} |
62096d2c | 92 | BuildRequires: xulrunner-devel < 2:32 |
7d981f69 | 93 | %else |
6f32f966 | 94 | Requires: glib2 >= 1:2.20 |
3366507a JB |
95 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.14} |
96 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} | |
62096d2c | 97 | Requires: libvpx >= 1.3.0 |
44be9ed4 | 98 | Requires: myspell-common |
f4114a7f ER |
99 | Requires: nspr >= 1:%{nspr_ver} |
100 | Requires: nss >= 1:%{nss_ver} | |
62096d2c | 101 | Requires: pango >= 1:1.22.0 |
4b6bc367 | 102 | Requires: sqlite3 >= %{sqlite_build_version} |
7d981f69 | 103 | %endif |
4f34f106 ER |
104 | Requires(post): mktemp >= 1.5-18 |
105 | %if %{with xulrunner} | |
106 | %requires_eq_to xulrunner xulrunner-devel | |
107 | %endif | |
e82da7a1 | 108 | Requires: libjpeg-turbo |
44be9ed4 | 109 | Obsoletes: mozilla-thunderbird |
110 | Obsoletes: mozilla-thunderbird-dictionary-en-US | |
d606e9b3 | 111 | Conflicts: icedove-lang-resources < %{version} |
44be9ed4 | 112 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
113 | ||
9e366f18 AM |
114 | %define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+ |
115 | ||
44be9ed4 | 116 | # iceweasel/icedove/iceape provide their own versions |
44be9ed4 | 117 | %define _noautoprovfiles %{_libdir}/%{name}/components |
fb7d4f06 JB |
118 | %if %{without xulrunner} |
119 | # we don't want these to satisfy packages depending on xulrunner | |
6f32f966 | 120 | %define _noautoprov libmozalloc.so libmozjs.so libxul.so |
44be9ed4 | 121 | # and as we don't provide them, don't require either |
6f32f966 | 122 | %define _noautoreq libmozalloc.so libmozjs.so libxul.so |
fb7d4f06 | 123 | %endif |
44be9ed4 | 124 | |
9e7875fc ER |
125 | %define topdir %{_builddir}/%{name}-%{version} |
126 | %define objdir %{topdir}/obj-%{_target_cpu} | |
127 | ||
44be9ed4 | 128 | %description |
6b327de6 | 129 | Icedove is an open-source, fast and portable email client. |
44be9ed4 | 130 | |
131 | %description -l pl.UTF-8 | |
6b327de6 JB |
132 | Icedove jest mającym otwarte źródła, szybkim i przenośnym klientem |
133 | poczty. | |
44be9ed4 | 134 | |
6578c165 | 135 | %package addon-lightning |
136 | Summary: An integrated calendar for Icedove | |
137 | Summary(pl.UTF-8): Zintegrowany kalendarz dla Icedove | |
138 | License: MPL 1.1 or GPL v2+ or LGPL v2.1+ | |
139 | Group: Applications/Networking | |
140 | Requires: %{name} = %{version}-%{release} | |
141 | ||
142 | %description addon-lightning | |
143 | Lightning is an calendar extension to Icedove email client. | |
144 | ||
145 | %description addon-lightning -l pl.UTF-8 | |
146 | Lightning to rozszerzenie do klienta poczty Icedove dodające | |
147 | funkcjonalność kalendarza. | |
148 | ||
44be9ed4 | 149 | %prep |
983562b1 | 150 | %setup -qc |
3a30e2d7 | 151 | %{__mv} comm-esr38 mozilla |
983562b1 | 152 | %setup -q -T -D -a2 |
153 | cd mozilla | |
983562b1 | 154 | %patch0 -p1 |
f53f9bcd | 155 | %patch2 -p1 |
4ccc2157 | 156 | %patch3 -p1 |
f53f9bcd | 157 | %patch5 -p2 |
983562b1 | 158 | %patch6 -p1 |
9a743685 | 159 | %patch7 -p1 |
f53f9bcd JR |
160 | %patch8 -p1 |
161 | %patch9 -p2 | |
d0b96b40 | 162 | |
44be9ed4 | 163 | %build |
983562b1 | 164 | cd mozilla |
cadfb931 SP |
165 | cp -f %{_datadir}/automake/config.* mozilla/build/autoconf |
166 | cp -f %{_datadir}/automake/config.* mozilla/nsprpub/build/autoconf | |
f4114a7f | 167 | cp -f %{_datadir}/automake/config.* ldap/sdks/c-sdk/config/autoconf |
44be9ed4 | 168 | |
fbac75ca | 169 | cat << EOF > .mozconfig |
9e7875fc | 170 | mk_add_options MOZ_OBJDIR=%{objdir} |
cb0e4412 | 171 | |
fac7e24d | 172 | export CFLAGS="%{rpmcflags}" |
73d54cb2 | 173 | export CXXFLAGS="%{rpmcflags}" |
765a3a27 ER |
174 | |
175 | %if %{with crashreporter} | |
176 | export MOZ_DEBUG_SYMBOLS=1 | |
177 | %endif | |
178 | ||
59c5a0e8 | 179 | # Options for 'configure' (same as command-line options). |
44be9ed4 | 180 | ac_add_options --prefix=%{_prefix} |
181 | ac_add_options --exec-prefix=%{_exec_prefix} | |
182 | ac_add_options --bindir=%{_bindir} | |
183 | ac_add_options --sbindir=%{_sbindir} | |
184 | ac_add_options --sysconfdir=%{_sysconfdir} | |
185 | ac_add_options --datadir=%{_datadir} | |
186 | ac_add_options --includedir=%{_includedir} | |
187 | ac_add_options --libdir=%{_libdir} | |
188 | ac_add_options --libexecdir=%{_libexecdir} | |
189 | ac_add_options --localstatedir=%{_localstatedir} | |
190 | ac_add_options --sharedstatedir=%{_sharedstatedir} | |
191 | ac_add_options --mandir=%{_mandir} | |
192 | ac_add_options --infodir=%{_infodir} | |
193 | %if %{?debug:1}0 | |
59c5a0e8 | 194 | ac_add_options --disable-optimize |
44be9ed4 | 195 | ac_add_options --enable-debug |
196 | ac_add_options --enable-debug-modules | |
59c5a0e8 SP |
197 | ac_add_options --enable-debugger-info-modules |
198 | ac_add_options --enable-crash-on-assert | |
44be9ed4 | 199 | %else |
200 | ac_add_options --disable-debug | |
201 | ac_add_options --disable-debug-modules | |
59c5a0e8 SP |
202 | ac_add_options --disable-logging |
203 | ac_add_options --enable-optimize="%{rpmcflags} -Os" | |
44be9ed4 | 204 | %endif |
88149483 ER |
205 | ac_add_options --disable-strip |
206 | ac_add_options --disable-strip-libs | |
44be9ed4 | 207 | %if %{with tests} |
208 | ac_add_options --enable-tests | |
209 | %else | |
210 | ac_add_options --disable-tests | |
211 | %endif | |
3366507a JB |
212 | %if %{with lightning} |
213 | ac_add_options --enable-calendar | |
44be9ed4 | 214 | %else |
3366507a | 215 | ac_add_options --disable-calendar |
44be9ed4 | 216 | %endif |
765a3a27 ER |
217 | %if %{with crashreporter} |
218 | ac_add_options --enable-crashreporter | |
219 | %else | |
59c5a0e8 | 220 | ac_add_options --disable-crashreporter |
765a3a27 | 221 | %endif |
d0b96b40 | 222 | ac_add_options --disable-elf-dynstr-gc |
3366507a JB |
223 | ac_add_options --disable-gnomeui |
224 | ac_add_options --disable-gnomevfs | |
44be9ed4 | 225 | ac_add_options --disable-installer |
d0b96b40 | 226 | ac_add_options --disable-javaxpcom |
3366507a | 227 | ac_add_options --disable-profilesharing |
88149483 | 228 | ac_add_options --disable-updater |
3366507a JB |
229 | ac_add_options --disable-xterm-updates |
230 | ac_add_options --enable-application=mail | |
44be9ed4 | 231 | ac_add_options --enable-crypto |
3366507a JB |
232 | ac_add_options --enable-default-toolkit=%{?with_gtk3:cairo-gtk3}%{!?with_gtk3:cairo-gtk2} |
233 | ac_add_options --enable-gio | |
234 | %if %{with ldap} | |
235 | ac_add_options --enable-ldap | |
236 | ac_add_options --with-system-ldap | |
237 | %else | |
238 | ac_add_options --disable-ldap | |
239 | %endif | |
d0b96b40 | 240 | ac_add_options --enable-libxul |
44be9ed4 | 241 | ac_add_options --enable-pango |
3366507a | 242 | ac_add_options --enable-postscript |
a97d3356 | 243 | %{?with_shared_js:ac_add_options --enable-shared-js} |
3366507a | 244 | ac_add_options --enable-single-profile |
88149483 | 245 | ac_add_options --enable-startup-notification |
44be9ed4 | 246 | ac_add_options --enable-system-cairo |
5e9bb798 | 247 | ac_add_options --enable-system-hunspell |
7d981f69 | 248 | ac_add_options --enable-system-sqlite |
88149483 | 249 | ac_add_options --with-branding=icedove/branding |
3366507a JB |
250 | ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name} |
251 | ac_add_options --with-distribution-id=org.pld-linux | |
88149483 | 252 | %if %{with xulrunner} |
d0b96b40 | 253 | ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul) |
3366507a | 254 | ac_add_options --with-system-libxul |
88149483 ER |
255 | %endif |
256 | ac_add_options --with-pthreads | |
257 | ac_add_options --with-system-bz2 | |
d0b96b40 | 258 | ac_add_options --with-system-ffi |
9b89aca5 | 259 | ac_add_options --with-system-icu |
44be9ed4 | 260 | ac_add_options --with-system-jpeg |
d0b96b40 JR |
261 | ac_add_options --with-system-libevent |
262 | ac_add_options --with-system-libvpx | |
44be9ed4 | 263 | ac_add_options --with-system-nspr |
264 | ac_add_options --with-system-nss | |
265 | ac_add_options --with-system-png | |
266 | ac_add_options --with-system-zlib | |
44be9ed4 | 267 | EOF |
268 | ||
d0b96b40 JR |
269 | mkdir -p %{objdir}/config |
270 | ln -s %{topdir}/mozilla/config/*.mk %{objdir}/config | |
271 | ||
90e998ba | 272 | %{__make} -j1 -f client.mk build \ |
d076d93e | 273 | STRIP="/bin/true" \ |
765a3a27 | 274 | MOZ_MAKE_FLAGS="%{?_smp_mflags}" \ |
d0b96b40 | 275 | installdir=%{_libdir}/%{name} \ |
de09c00d | 276 | XLIBS="-lX11 -lXt" \ |
d076d93e | 277 | CC="%{__cc}" \ |
44be9ed4 | 278 | CXX="%{__cxx}" |
279 | ||
765a3a27 ER |
280 | %if %{with crashreporter} |
281 | # create debuginfo for crash-stats.mozilla.com | |
282 | %{__make} -j1 -C obj-%{_target_cpu} buildsymbols | |
283 | %endif | |
284 | ||
44be9ed4 | 285 | %install |
286 | rm -rf $RPM_BUILD_ROOT | |
765a3a27 | 287 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_datadir}/%{name},%{_pixmapsdir},%{_desktopdir}} |
44be9ed4 | 288 | |
9e7875fc | 289 | cd %{objdir} |
ecf04393 | 290 | %{__make} -C mail/installer stage-package \ |
44be9ed4 | 291 | DESTDIR=$RPM_BUILD_ROOT \ |
d0b96b40 | 292 | installdir=%{_libdir}/%{name} \ |
44be9ed4 | 293 | PKG_SKIP_STRIP=1 |
294 | ||
d0b96b40 JR |
295 | %{__make} -C icedove/branding install \ |
296 | DESTDIR=$RPM_BUILD_ROOT | |
297 | ||
3a30e2d7 | 298 | cp -a dist/icedove/* $RPM_BUILD_ROOT%{_libdir}/%{name}/ |
d0b96b40 | 299 | |
9b40a2c3 JB |
300 | %if %{with xulrunner} |
301 | # needed to find mozilla runtime | |
302 | ln -s ../xulrunner $RPM_BUILD_ROOT%{_libdir}/%{name}/xulrunner | |
303 | %endif | |
304 | ||
305 | # Enable crash reporter for Thunderbird application | |
765a3a27 ER |
306 | %if %{with crashreporter} |
307 | %{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini | |
308 | ||
309 | # Add debuginfo for crash-stats.mozilla.com | |
51a3b6db | 310 | install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name} |
3a30e2d7 | 311 | cp -a dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name} |
765a3a27 ER |
312 | %endif |
313 | ||
44be9ed4 | 314 | # move arch independant ones to datadir |
eca54e0f | 315 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins |
eca54e0f | 316 | ln -s ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins |
44be9ed4 | 317 | |
c6ec3c1c ER |
318 | # dir for arch independant extensions besides arch dependant extensions |
319 | # see mozilla/xpcom/build/nsXULAppAPI.h | |
320 | # XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR | |
321 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions | |
322 | ||
73d54cb2 | 323 | %if %{without xulrunner} |
63d8f5c3 | 324 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries |
44be9ed4 | 325 | ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries |
73d54cb2 | 326 | %endif |
e6bc19b3 | 327 | |
0889474f JR |
328 | %{__sed} -e "s|%MOZAPPDIR%|%{_libdir}/%{name}|" \ |
329 | -e "s|%MOZ_APP_DISPLAYNAME%|Icedove|" \ | |
330 | %{topdir}/mozilla/mozilla/build/unix/mozilla.in > $RPM_BUILD_ROOT%{_libdir}/%{name}/icedove | |
331 | ||
44be9ed4 | 332 | %{__sed} -e 's,@LIBDIR@,%{_libdir},' %{SOURCE5} > $RPM_BUILD_ROOT%{_bindir}/icedove |
333 | ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/thunderbird | |
334 | ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/mozilla-thunderbird | |
335 | ||
d0b96b40 | 336 | # install icons and desktop file |
52f5507d | 337 | cp -p %{topdir}/mozilla/icedove/branding/content/icon64.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png |
d0b96b40 JR |
338 | for i in 16 32 48 64 128 256; do |
339 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${i}x${i}/apps | |
340 | cp -a %{topdir}/mozilla/icedove/branding/icedove${i}.png \ | |
341 | $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${i}x${i}/apps/icedove.png | |
342 | done | |
343 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps | |
344 | cp -a %{topdir}/mozilla/icedove/branding/icedove.svg $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/icedove.svg | |
345 | ||
346 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
44be9ed4 | 347 | |
e8f4ba81 | 348 | # files created by regxpcom -register in post |
52fc61e6 ER |
349 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat |
350 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat | |
e8f4ba81 ER |
351 | cat << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/register |
352 | #!/bin/sh | |
353 | umask 022 | |
354 | # make temporary HOME, as it attempts to touch files in $HOME/.mozilla | |
355 | # dangerous if you run this with sudo with keep_env += HOME | |
356 | # also TMPDIR could be pointing to sudo user's homedir so we reset that too. | |
357 | t=$(mktemp -d) | |
d50a2a28 | 358 | %{__rm} -f %{_libdir}/%{name}/components/{compreg,xpti}.dat |
e8f4ba81 ER |
359 | TMPDIR= TMP= HOME=$t %{_libdir}/%{name}/icedove -register |
360 | rm -rf $t | |
361 | EOF | |
362 | chmod a+rx $RPM_BUILD_ROOT%{_libdir}/%{name}/register | |
52fc61e6 | 363 | |
283702b9 | 364 | # mozldap |
d0b96b40 JR |
365 | %{__sed} -i '/lib\(ldap\|ldif\|prldap\)60.so/d' $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list |
366 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap}60.so | |
283702b9 | 367 | |
44be9ed4 | 368 | %clean |
369 | rm -rf $RPM_BUILD_ROOT | |
370 | ||
371 | %pretrans | |
372 | if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then | |
373 | mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave} | |
374 | fi | |
eca54e0f | 375 | for d in chrome defaults icons isp modules res searchplugins; do |
44be9ed4 | 376 | if [ -d %{_libdir}/%{name}/$d ] && [ ! -L %{_libdir}/%{name}/$d ]; then |
377 | install -d %{_datadir}/%{name} | |
378 | mv %{_libdir}/%{name}/$d %{_datadir}/%{name}/$d | |
379 | fi | |
380 | done | |
381 | exit 0 | |
382 | ||
e8f4ba81 ER |
383 | %post |
384 | %{_libdir}/%{name}/register || : | |
385 | ||
44be9ed4 | 386 | %files |
387 | %defattr(644,root,root,755) | |
388 | %attr(755,root,root) %{_bindir}/icedove | |
389 | %attr(755,root,root) %{_bindir}/mozilla-thunderbird | |
390 | %attr(755,root,root) %{_bindir}/thunderbird | |
391 | %dir %{_libdir}/%{name} | |
765a3a27 | 392 | %{_libdir}/%{name}/application.ini |
6b327de6 JB |
393 | %{_libdir}/%{name}/blocklist.xml |
394 | %{_libdir}/%{name}/chrome.manifest | |
44be9ed4 | 395 | %dir %{_libdir}/%{name}/components |
6b327de6 | 396 | %{_libdir}/%{name}/components/components.manifest |
73d54cb2 JB |
397 | %attr(755,root,root) %{_libdir}/%{name}/*.sh |
398 | %attr(755,root,root) %{_libdir}/%{name}/*-bin | |
399 | %attr(755,root,root) %{_libdir}/%{name}/icedove | |
400 | %attr(755,root,root) %{_libdir}/%{name}/register | |
d0b96b40 | 401 | %{_libdir}/%{name}/omni.ja |
73d54cb2 | 402 | %if %{without xulrunner} |
a367af64 | 403 | %{_libdir}/%{name}/dependentlibs.list |
73d54cb2 | 404 | %{_libdir}/%{name}/platform.ini |
73d54cb2 | 405 | %attr(755,root,root) %{_libdir}/%{name}/components/*.so |
0516fc42 | 406 | %attr(755,root,root) %{_libdir}/%{name}/libmozalloc.so |
a97d3356 | 407 | %{?with_shared_js:%attr(755,root,root) %{_libdir}/%{name}/libmozjs.so} |
0516fc42 | 408 | %attr(755,root,root) %{_libdir}/%{name}/libxul.so |
cf62736e | 409 | %attr(755,root,root) %{_libdir}/%{name}/plugin-container |
73d54cb2 | 410 | %endif |
44be9ed4 | 411 | |
412 | # symlinks | |
413 | %{_libdir}/%{name}/chrome | |
414 | %{_libdir}/%{name}/defaults | |
44be9ed4 | 415 | %{_libdir}/%{name}/isp |
eca54e0f | 416 | %{_libdir}/%{name}/searchplugins |
9b40a2c3 JB |
417 | %if %{with xulrunner} |
418 | %{_libdir}/%{name}/xulrunner | |
419 | %else | |
73d54cb2 | 420 | %{_libdir}/%{name}/dictionaries |
73d54cb2 | 421 | %endif |
44be9ed4 | 422 | |
224cf96a JB |
423 | %{_pixmapsdir}/icedove.png |
424 | %{_desktopdir}/icedove.desktop | |
44be9ed4 | 425 | |
426 | %dir %{_datadir}/%{name} | |
3a30e2d7 JR |
427 | %dir %{_libdir}/%{name}/distribution |
428 | %dir %{_libdir}/%{name}/distribution/extensions | |
eca54e0f | 429 | %{_datadir}/%{name}/extensions |
eca54e0f | 430 | %{_datadir}/%{name}/searchplugins |
44be9ed4 | 431 | |
765a3a27 ER |
432 | %if %{with crashreporter} |
433 | %attr(755,root,root) %{_libdir}/%{name}/crashreporter | |
434 | %{_libdir}/%{name}/crashreporter.ini | |
435 | %{_libdir}/%{name}/Throbber-small.gif | |
436 | %endif | |
437 | ||
44be9ed4 | 438 | %dir %{_libdir}/%{name}/extensions |
439 | %{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd} | |
6578c165 | 440 | |
52fc61e6 ER |
441 | # files created by regxpcom -register |
442 | %ghost %{_libdir}/%{name}/components/compreg.dat | |
443 | %ghost %{_libdir}/%{name}/components/xpti.dat | |
444 | ||
d0b96b40 JR |
445 | %{_iconsdir}/hicolor/*/apps/icedove.* |
446 | ||
6578c165 | 447 | %if %{with lightning} |
448 | %files addon-lightning | |
449 | %defattr(644,root,root,755) | |
3a30e2d7 JR |
450 | %dir %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} |
451 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/app.ini | |
452 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.jar | |
453 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest | |
454 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/defaults | |
455 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/install.rdf | |
456 | %dir %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components | |
457 | %attr(755,root,root) %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.so | |
458 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.js | |
459 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*manifest | |
460 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.xpt | |
461 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/modules | |
462 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/calendar-js | |
463 | %dir %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones | |
464 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones/zones.json | |
6578c165 | 465 | %endif |