]>
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 | |
3a30e2d7 | 30 | Version: 38.4.0 |
530c58f8 | 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 |
3a30e2d7 | 35 | # Source0-md5: 483373b1485cf2edea77c75a69602870 |
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 | Patch1: %{name}-fonts.patch |
42 | Patch2: %{name}-prefs.patch | |
43 | Patch3: system-mozldap.patch | |
44 | Patch4: %{name}-makefile.patch | |
45 | Patch5: %{name}-extensiondir.patch | |
46 | Patch6: no-subshell.patch | |
03be87a5 | 47 | # Edit patch below and restore --system-site-packages when system virtualenv gets 1.7 upgrade |
f53f9bcd JR |
48 | Patch7: system-virtualenv.patch |
49 | Patch8: enable-addons.patch | |
50 | Patch9: bump-nss-req.patch | |
a69047ad | 51 | Patch11: freetype-2.6.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 |
3a30e2d7 | 153 | %{__mv} comm-esr38 mozilla |
983562b1 | 154 | %setup -q -T -D -a2 |
155 | cd mozilla | |
983562b1 | 156 | %patch0 -p1 |
3a30e2d7 | 157 | #%patch1 -p1 |
f53f9bcd | 158 | %patch2 -p1 |
4ccc2157 | 159 | %patch3 -p1 |
3a30e2d7 | 160 | #%patch4 -p2 |
f53f9bcd | 161 | %patch5 -p2 |
983562b1 | 162 | %patch6 -p1 |
9a743685 | 163 | %patch7 -p1 |
f53f9bcd JR |
164 | %patch8 -p1 |
165 | %patch9 -p2 | |
a69047ad | 166 | %patch11 -p1 |
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 | ||
3a30e2d7 | 303 | cp -a dist/icedove/* $RPM_BUILD_ROOT%{_libdir}/%{name}/ |
d0b96b40 | 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} |
3a30e2d7 | 316 | cp -a dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name} |
765a3a27 ER |
317 | %endif |
318 | ||
44be9ed4 | 319 | # move arch independant ones to datadir |
eca54e0f | 320 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins |
eca54e0f | 321 | ln -s ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins |
44be9ed4 | 322 | |
c6ec3c1c ER |
323 | # dir for arch independant extensions besides arch dependant extensions |
324 | # see mozilla/xpcom/build/nsXULAppAPI.h | |
325 | # XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR | |
326 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions | |
327 | ||
73d54cb2 | 328 | %if %{without xulrunner} |
63d8f5c3 | 329 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries |
44be9ed4 | 330 | ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries |
73d54cb2 | 331 | %endif |
e6bc19b3 | 332 | |
0889474f JR |
333 | %{__sed} -e "s|%MOZAPPDIR%|%{_libdir}/%{name}|" \ |
334 | -e "s|%MOZ_APP_DISPLAYNAME%|Icedove|" \ | |
335 | %{topdir}/mozilla/mozilla/build/unix/mozilla.in > $RPM_BUILD_ROOT%{_libdir}/%{name}/icedove | |
336 | ||
44be9ed4 | 337 | %{__sed} -e 's,@LIBDIR@,%{_libdir},' %{SOURCE5} > $RPM_BUILD_ROOT%{_bindir}/icedove |
338 | ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/thunderbird | |
339 | ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/mozilla-thunderbird | |
340 | ||
d0b96b40 | 341 | # install icons and desktop file |
52f5507d | 342 | cp -p %{topdir}/mozilla/icedove/branding/content/icon64.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png |
d0b96b40 JR |
343 | for i in 16 32 48 64 128 256; do |
344 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${i}x${i}/apps | |
345 | cp -a %{topdir}/mozilla/icedove/branding/icedove${i}.png \ | |
346 | $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${i}x${i}/apps/icedove.png | |
347 | done | |
348 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps | |
349 | cp -a %{topdir}/mozilla/icedove/branding/icedove.svg $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/icedove.svg | |
350 | ||
351 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
44be9ed4 | 352 | |
e8f4ba81 | 353 | # files created by regxpcom -register in post |
52fc61e6 ER |
354 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat |
355 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat | |
e8f4ba81 ER |
356 | cat << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/register |
357 | #!/bin/sh | |
358 | umask 022 | |
359 | # make temporary HOME, as it attempts to touch files in $HOME/.mozilla | |
360 | # dangerous if you run this with sudo with keep_env += HOME | |
361 | # also TMPDIR could be pointing to sudo user's homedir so we reset that too. | |
362 | t=$(mktemp -d) | |
d50a2a28 | 363 | %{__rm} -f %{_libdir}/%{name}/components/{compreg,xpti}.dat |
e8f4ba81 ER |
364 | TMPDIR= TMP= HOME=$t %{_libdir}/%{name}/icedove -register |
365 | rm -rf $t | |
366 | EOF | |
367 | chmod a+rx $RPM_BUILD_ROOT%{_libdir}/%{name}/register | |
52fc61e6 | 368 | |
283702b9 | 369 | # mozldap |
d0b96b40 JR |
370 | %{__sed} -i '/lib\(ldap\|ldif\|prldap\)60.so/d' $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list |
371 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap}60.so | |
283702b9 | 372 | |
44be9ed4 | 373 | %clean |
374 | rm -rf $RPM_BUILD_ROOT | |
375 | ||
376 | %pretrans | |
377 | if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then | |
378 | mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave} | |
379 | fi | |
eca54e0f | 380 | for d in chrome defaults icons isp modules res searchplugins; do |
44be9ed4 | 381 | if [ -d %{_libdir}/%{name}/$d ] && [ ! -L %{_libdir}/%{name}/$d ]; then |
382 | install -d %{_datadir}/%{name} | |
383 | mv %{_libdir}/%{name}/$d %{_datadir}/%{name}/$d | |
384 | fi | |
385 | done | |
386 | exit 0 | |
387 | ||
e8f4ba81 ER |
388 | %post |
389 | %{_libdir}/%{name}/register || : | |
390 | ||
44be9ed4 | 391 | %files |
392 | %defattr(644,root,root,755) | |
393 | %attr(755,root,root) %{_bindir}/icedove | |
394 | %attr(755,root,root) %{_bindir}/mozilla-thunderbird | |
395 | %attr(755,root,root) %{_bindir}/thunderbird | |
396 | %dir %{_libdir}/%{name} | |
765a3a27 | 397 | %{_libdir}/%{name}/application.ini |
6b327de6 JB |
398 | %{_libdir}/%{name}/blocklist.xml |
399 | %{_libdir}/%{name}/chrome.manifest | |
44be9ed4 | 400 | %dir %{_libdir}/%{name}/components |
6b327de6 | 401 | %{_libdir}/%{name}/components/components.manifest |
73d54cb2 JB |
402 | %attr(755,root,root) %{_libdir}/%{name}/*.sh |
403 | %attr(755,root,root) %{_libdir}/%{name}/*-bin | |
404 | %attr(755,root,root) %{_libdir}/%{name}/icedove | |
405 | %attr(755,root,root) %{_libdir}/%{name}/register | |
d0b96b40 | 406 | %{_libdir}/%{name}/omni.ja |
73d54cb2 | 407 | %if %{without xulrunner} |
a367af64 | 408 | %{_libdir}/%{name}/dependentlibs.list |
73d54cb2 | 409 | %{_libdir}/%{name}/platform.ini |
73d54cb2 | 410 | %attr(755,root,root) %{_libdir}/%{name}/components/*.so |
0516fc42 | 411 | %attr(755,root,root) %{_libdir}/%{name}/libmozalloc.so |
a97d3356 | 412 | %{?with_shared_js:%attr(755,root,root) %{_libdir}/%{name}/libmozjs.so} |
0516fc42 | 413 | %attr(755,root,root) %{_libdir}/%{name}/libxul.so |
cf62736e | 414 | %attr(755,root,root) %{_libdir}/%{name}/plugin-container |
73d54cb2 | 415 | %endif |
44be9ed4 | 416 | |
417 | # symlinks | |
418 | %{_libdir}/%{name}/chrome | |
419 | %{_libdir}/%{name}/defaults | |
44be9ed4 | 420 | %{_libdir}/%{name}/isp |
eca54e0f | 421 | %{_libdir}/%{name}/searchplugins |
9b40a2c3 JB |
422 | %if %{with xulrunner} |
423 | %{_libdir}/%{name}/xulrunner | |
424 | %else | |
73d54cb2 | 425 | %{_libdir}/%{name}/dictionaries |
73d54cb2 | 426 | %endif |
44be9ed4 | 427 | |
224cf96a JB |
428 | %{_pixmapsdir}/icedove.png |
429 | %{_desktopdir}/icedove.desktop | |
44be9ed4 | 430 | |
431 | %dir %{_datadir}/%{name} | |
3a30e2d7 JR |
432 | %dir %{_libdir}/%{name}/distribution |
433 | %dir %{_libdir}/%{name}/distribution/extensions | |
eca54e0f | 434 | %{_datadir}/%{name}/extensions |
eca54e0f | 435 | %{_datadir}/%{name}/searchplugins |
44be9ed4 | 436 | |
765a3a27 ER |
437 | %if %{with crashreporter} |
438 | %attr(755,root,root) %{_libdir}/%{name}/crashreporter | |
439 | %{_libdir}/%{name}/crashreporter.ini | |
440 | %{_libdir}/%{name}/Throbber-small.gif | |
441 | %endif | |
442 | ||
44be9ed4 | 443 | %dir %{_libdir}/%{name}/extensions |
444 | %{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd} | |
6578c165 | 445 | |
52fc61e6 ER |
446 | # files created by regxpcom -register |
447 | %ghost %{_libdir}/%{name}/components/compreg.dat | |
448 | %ghost %{_libdir}/%{name}/components/xpti.dat | |
449 | ||
d0b96b40 JR |
450 | %{_iconsdir}/hicolor/*/apps/icedove.* |
451 | ||
6578c165 | 452 | %if %{with lightning} |
453 | %files addon-lightning | |
454 | %defattr(644,root,root,755) | |
3a30e2d7 JR |
455 | %dir %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} |
456 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/app.ini | |
457 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.jar | |
458 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest | |
459 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/defaults | |
460 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/install.rdf | |
461 | %dir %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components | |
462 | %attr(755,root,root) %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.so | |
463 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.js | |
464 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*manifest | |
465 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.xpt | |
466 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/modules | |
467 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/calendar-js | |
468 | %dir %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones | |
469 | %{_libdir}/%{name}/distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones/zones.json | |
6578c165 | 470 | %endif |