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