]>
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 | ||
3366507a | 17 | %define nspr_ver 4.10.2 |
1671589b | 18 | %define nss_ver 3.16.2.3 |
44be9ed4 | 19 | |
d0b96b40 | 20 | %define xulrunner_ver 2:24.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 | |
590c075b JR |
30 | Version: 31.3.0 |
31 | Release: 0.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 |
590c075b | 35 | # Source0-md5: 3781dfb541412c7f6b530a654b834ce5 |
44be9ed4 | 36 | Source2: %{name}-branding.tar.bz2 |
d0b96b40 | 37 | # Source2-md5: d8e6897870bf288fdf264c0e9ef85f7d |
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 |
51a3b6db | 68 | BuildRequires: libiw-devel |
e82da7a1 | 69 | # requires libjpeg-turbo implementing at least libjpeg 6b API |
44be9ed4 | 70 | BuildRequires: libjpeg-devel >= 6b |
e82da7a1 | 71 | BuildRequires: libjpeg-turbo-devel |
e820c55e | 72 | BuildRequires: libpng-devel >= 1.4.1 |
44be9ed4 | 73 | BuildRequires: libstdc++-devel |
d0b96b40 | 74 | BuildRequires: mozldap-devel |
f4114a7f ER |
75 | BuildRequires: nspr-devel >= 1:%{nspr_ver} |
76 | BuildRequires: nss-devel >= 1:%{nss_ver} | |
3815090b | 77 | BuildRequires: pango-devel >= 1:1.14.0 |
e820c55e | 78 | BuildRequires: perl-base >= 1:5.6 |
d0b96b40 | 79 | BuildRequires: python-virtualenv |
1c62cadb | 80 | BuildRequires: pkgconfig |
e820c55e | 81 | BuildRequires: python >= 1:2.5 |
44be9ed4 | 82 | BuildRequires: sed >= 4.0 |
3366507a | 83 | BuildRequires: sqlite3-devel >= 3.7.17 |
1c62cadb | 84 | BuildRequires: startup-notification-devel >= 0.8 |
d0b96b40 | 85 | BuildRequires: libvpx-devel >= 1.0.0 |
44be9ed4 | 86 | BuildRequires: xorg-lib-libXext-devel |
44be9ed4 | 87 | BuildRequires: xorg-lib-libXinerama-devel |
44be9ed4 | 88 | BuildRequires: xorg-lib-libXt-devel |
5745d706 | 89 | BuildRequires: yasm |
1c62cadb | 90 | BuildRequires: zip |
7d981f69 | 91 | %if %{with xulrunner} |
e8326f77 | 92 | BuildRequires: xulrunner-devel >= %{xulrunner_ver} |
def321d1 | 93 | BuildRequires: xulrunner-devel < 2:25 |
7d981f69 | 94 | %else |
6f32f966 | 95 | Requires: glib2 >= 1:2.20 |
3366507a JB |
96 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.14} |
97 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} | |
44be9ed4 | 98 | Requires: myspell-common |
f4114a7f ER |
99 | Requires: nspr >= 1:%{nspr_ver} |
100 | Requires: nss >= 1:%{nss_ver} | |
4b6bc367 | 101 | Requires: sqlite3 >= %{sqlite_build_version} |
7d981f69 | 102 | %endif |
4f34f106 ER |
103 | Requires(post): mktemp >= 1.5-18 |
104 | %if %{with xulrunner} | |
105 | %requires_eq_to xulrunner xulrunner-devel | |
106 | %endif | |
e82da7a1 | 107 | Requires: libjpeg-turbo |
44be9ed4 | 108 | Obsoletes: mozilla-thunderbird |
109 | Obsoletes: mozilla-thunderbird-dictionary-en-US | |
d606e9b3 | 110 | Conflicts: icedove-lang-resources < %{version} |
44be9ed4 | 111 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
112 | ||
9e366f18 AM |
113 | %define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+ |
114 | ||
44be9ed4 | 115 | # iceweasel/icedove/iceape provide their own versions |
44be9ed4 | 116 | %define _noautoprovfiles %{_libdir}/%{name}/components |
fb7d4f06 JB |
117 | %if %{without xulrunner} |
118 | # we don't want these to satisfy packages depending on xulrunner | |
6f32f966 | 119 | %define _noautoprov libmozalloc.so libmozjs.so libxul.so |
44be9ed4 | 120 | # and as we don't provide them, don't require either |
6f32f966 | 121 | %define _noautoreq libmozalloc.so libmozjs.so libxul.so |
fb7d4f06 | 122 | %endif |
44be9ed4 | 123 | |
9e7875fc ER |
124 | %define topdir %{_builddir}/%{name}-%{version} |
125 | %define objdir %{topdir}/obj-%{_target_cpu} | |
126 | ||
44be9ed4 | 127 | %description |
6b327de6 | 128 | Icedove is an open-source, fast and portable email client. |
44be9ed4 | 129 | |
130 | %description -l pl.UTF-8 | |
6b327de6 JB |
131 | Icedove jest mającym otwarte źródła, szybkim i przenośnym klientem |
132 | poczty. | |
44be9ed4 | 133 | |
6578c165 | 134 | %package addon-lightning |
135 | Summary: An integrated calendar for Icedove | |
136 | Summary(pl.UTF-8): Zintegrowany kalendarz dla Icedove | |
137 | License: MPL 1.1 or GPL v2+ or LGPL v2.1+ | |
138 | Group: Applications/Networking | |
139 | Requires: %{name} = %{version}-%{release} | |
140 | ||
141 | %description addon-lightning | |
142 | Lightning is an calendar extension to Icedove email client. | |
143 | ||
144 | %description addon-lightning -l pl.UTF-8 | |
145 | Lightning to rozszerzenie do klienta poczty Icedove dodające | |
146 | funkcjonalność kalendarza. | |
147 | ||
44be9ed4 | 148 | %prep |
983562b1 | 149 | %setup -qc |
590c075b | 150 | %{__mv} comm-esr31 mozilla |
983562b1 | 151 | %setup -q -T -D -a2 |
152 | cd mozilla | |
44be9ed4 | 153 | /bin/sh %{SOURCE3} |
983562b1 | 154 | %patch0 -p1 |
4ccc2157 | 155 | %patch3 -p1 |
983562b1 | 156 | %patch6 -p1 |
9a743685 | 157 | %patch7 -p1 |
f4114a7f | 158 | %patch8 -p2 |
ccc206fe | 159 | %patch10 -p2 |
268e7766 | 160 | %patch12 -p1 |
03be87a5 | 161 | %patch13 -p1 |
d0b96b40 | 162 | %patch15 -p1 |
2c416415 | 163 | %patch16 -p2 |
d0b96b40 | 164 | |
44be9ed4 | 165 | %build |
983562b1 | 166 | cd mozilla |
cadfb931 SP |
167 | cp -f %{_datadir}/automake/config.* mozilla/build/autoconf |
168 | cp -f %{_datadir}/automake/config.* mozilla/nsprpub/build/autoconf | |
f4114a7f | 169 | cp -f %{_datadir}/automake/config.* ldap/sdks/c-sdk/config/autoconf |
44be9ed4 | 170 | |
fbac75ca | 171 | cat << EOF > .mozconfig |
9e7875fc | 172 | mk_add_options MOZ_OBJDIR=%{objdir} |
cb0e4412 | 173 | |
fac7e24d | 174 | export CFLAGS="%{rpmcflags}" |
73d54cb2 | 175 | export CXXFLAGS="%{rpmcflags}" |
765a3a27 ER |
176 | |
177 | %if %{with crashreporter} | |
178 | export MOZ_DEBUG_SYMBOLS=1 | |
179 | %endif | |
180 | ||
59c5a0e8 | 181 | # Options for 'configure' (same as command-line options). |
44be9ed4 | 182 | ac_add_options --prefix=%{_prefix} |
183 | ac_add_options --exec-prefix=%{_exec_prefix} | |
184 | ac_add_options --bindir=%{_bindir} | |
185 | ac_add_options --sbindir=%{_sbindir} | |
186 | ac_add_options --sysconfdir=%{_sysconfdir} | |
187 | ac_add_options --datadir=%{_datadir} | |
188 | ac_add_options --includedir=%{_includedir} | |
189 | ac_add_options --libdir=%{_libdir} | |
190 | ac_add_options --libexecdir=%{_libexecdir} | |
191 | ac_add_options --localstatedir=%{_localstatedir} | |
192 | ac_add_options --sharedstatedir=%{_sharedstatedir} | |
193 | ac_add_options --mandir=%{_mandir} | |
194 | ac_add_options --infodir=%{_infodir} | |
195 | %if %{?debug:1}0 | |
59c5a0e8 | 196 | ac_add_options --disable-optimize |
44be9ed4 | 197 | ac_add_options --enable-debug |
198 | ac_add_options --enable-debug-modules | |
59c5a0e8 SP |
199 | ac_add_options --enable-debugger-info-modules |
200 | ac_add_options --enable-crash-on-assert | |
44be9ed4 | 201 | %else |
202 | ac_add_options --disable-debug | |
203 | ac_add_options --disable-debug-modules | |
59c5a0e8 SP |
204 | ac_add_options --disable-logging |
205 | ac_add_options --enable-optimize="%{rpmcflags} -Os" | |
44be9ed4 | 206 | %endif |
88149483 ER |
207 | ac_add_options --disable-strip |
208 | ac_add_options --disable-strip-libs | |
44be9ed4 | 209 | %if %{with tests} |
210 | ac_add_options --enable-tests | |
211 | %else | |
212 | ac_add_options --disable-tests | |
213 | %endif | |
3366507a JB |
214 | %if %{with lightning} |
215 | ac_add_options --enable-calendar | |
44be9ed4 | 216 | %else |
3366507a | 217 | ac_add_options --disable-calendar |
44be9ed4 | 218 | %endif |
765a3a27 ER |
219 | %if %{with crashreporter} |
220 | ac_add_options --enable-crashreporter | |
221 | %else | |
59c5a0e8 | 222 | ac_add_options --disable-crashreporter |
765a3a27 | 223 | %endif |
d0b96b40 | 224 | ac_add_options --disable-elf-dynstr-gc |
3366507a JB |
225 | ac_add_options --disable-gnomeui |
226 | ac_add_options --disable-gnomevfs | |
44be9ed4 | 227 | ac_add_options --disable-installer |
d0b96b40 | 228 | ac_add_options --disable-javaxpcom |
3366507a | 229 | ac_add_options --disable-profilesharing |
88149483 | 230 | ac_add_options --disable-updater |
3366507a JB |
231 | ac_add_options --disable-xterm-updates |
232 | ac_add_options --enable-application=mail | |
44be9ed4 | 233 | ac_add_options --enable-crypto |
3366507a JB |
234 | ac_add_options --enable-default-toolkit=%{?with_gtk3:cairo-gtk3}%{!?with_gtk3:cairo-gtk2} |
235 | ac_add_options --enable-gio | |
236 | %if %{with ldap} | |
237 | ac_add_options --enable-ldap | |
238 | ac_add_options --with-system-ldap | |
239 | %else | |
240 | ac_add_options --disable-ldap | |
241 | %endif | |
d0b96b40 | 242 | ac_add_options --enable-libxul |
44be9ed4 | 243 | ac_add_options --enable-pango |
3366507a | 244 | ac_add_options --enable-postscript |
a97d3356 | 245 | %{?with_shared_js:ac_add_options --enable-shared-js} |
3366507a | 246 | ac_add_options --enable-single-profile |
88149483 | 247 | ac_add_options --enable-startup-notification |
44be9ed4 | 248 | ac_add_options --enable-system-cairo |
5e9bb798 | 249 | ac_add_options --enable-system-hunspell |
7d981f69 | 250 | ac_add_options --enable-system-sqlite |
88149483 | 251 | ac_add_options --with-branding=icedove/branding |
3366507a JB |
252 | ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name} |
253 | ac_add_options --with-distribution-id=org.pld-linux | |
88149483 | 254 | %if %{with xulrunner} |
d0b96b40 | 255 | ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul) |
3366507a | 256 | ac_add_options --with-system-libxul |
88149483 ER |
257 | %endif |
258 | ac_add_options --with-pthreads | |
259 | ac_add_options --with-system-bz2 | |
d0b96b40 | 260 | ac_add_options --with-system-ffi |
44be9ed4 | 261 | ac_add_options --with-system-jpeg |
d0b96b40 JR |
262 | ac_add_options --with-system-libevent |
263 | ac_add_options --with-system-libvpx | |
44be9ed4 | 264 | ac_add_options --with-system-nspr |
265 | ac_add_options --with-system-nss | |
266 | ac_add_options --with-system-png | |
267 | ac_add_options --with-system-zlib | |
44be9ed4 | 268 | EOF |
269 | ||
d0b96b40 JR |
270 | mkdir -p %{objdir}/config |
271 | ln -s %{topdir}/mozilla/config/*.mk %{objdir}/config | |
272 | ||
90e998ba | 273 | %{__make} -j1 -f client.mk build \ |
d076d93e | 274 | STRIP="/bin/true" \ |
765a3a27 | 275 | MOZ_MAKE_FLAGS="%{?_smp_mflags}" \ |
d0b96b40 | 276 | installdir=%{_libdir}/%{name} \ |
de09c00d | 277 | XLIBS="-lX11 -lXt" \ |
d076d93e | 278 | CC="%{__cc}" \ |
44be9ed4 | 279 | CXX="%{__cxx}" |
280 | ||
765a3a27 ER |
281 | %if %{with crashreporter} |
282 | # create debuginfo for crash-stats.mozilla.com | |
283 | %{__make} -j1 -C obj-%{_target_cpu} buildsymbols | |
284 | %endif | |
285 | ||
44be9ed4 | 286 | %install |
287 | rm -rf $RPM_BUILD_ROOT | |
765a3a27 | 288 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_datadir}/%{name},%{_pixmapsdir},%{_desktopdir}} |
44be9ed4 | 289 | |
9e7875fc | 290 | cd %{objdir} |
ecf04393 | 291 | %{__make} -C mail/installer stage-package \ |
44be9ed4 | 292 | DESTDIR=$RPM_BUILD_ROOT \ |
d0b96b40 | 293 | installdir=%{_libdir}/%{name} \ |
44be9ed4 | 294 | PKG_SKIP_STRIP=1 |
295 | ||
d0b96b40 JR |
296 | %{__make} -C icedove/branding install \ |
297 | DESTDIR=$RPM_BUILD_ROOT | |
298 | ||
299 | cp -a mozilla/dist/icedove/* $RPM_BUILD_ROOT%{_libdir}/%{name}/ | |
300 | ||
9b40a2c3 JB |
301 | %if %{with xulrunner} |
302 | # needed to find mozilla runtime | |
303 | ln -s ../xulrunner $RPM_BUILD_ROOT%{_libdir}/%{name}/xulrunner | |
304 | %endif | |
305 | ||
306 | # Enable crash reporter for Thunderbird application | |
765a3a27 ER |
307 | %if %{with crashreporter} |
308 | %{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini | |
309 | ||
310 | # Add debuginfo for crash-stats.mozilla.com | |
51a3b6db | 311 | install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name} |
765a3a27 ER |
312 | cp -a mozilla/dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name} |
313 | %endif | |
314 | ||
ecf04393 | 315 | # copy manually lightning files, somewhy they are not installed by make |
d0b96b40 | 316 | cp -a mozilla/dist/bin/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} \ |
ecf04393 ER |
317 | $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions |
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 |
44be9ed4 | 414 | %attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client |
cf62736e | 415 | %attr(755,root,root) %{_libdir}/%{name}/plugin-container |
73d54cb2 | 416 | %endif |
44be9ed4 | 417 | |
418 | # symlinks | |
419 | %{_libdir}/%{name}/chrome | |
420 | %{_libdir}/%{name}/defaults | |
44be9ed4 | 421 | %{_libdir}/%{name}/isp |
eca54e0f | 422 | %{_libdir}/%{name}/searchplugins |
9b40a2c3 JB |
423 | %if %{with xulrunner} |
424 | %{_libdir}/%{name}/xulrunner | |
425 | %else | |
73d54cb2 | 426 | %{_libdir}/%{name}/dictionaries |
73d54cb2 | 427 | %endif |
44be9ed4 | 428 | |
224cf96a JB |
429 | %{_pixmapsdir}/icedove.png |
430 | %{_desktopdir}/icedove.desktop | |
44be9ed4 | 431 | |
432 | %dir %{_datadir}/%{name} | |
eca54e0f | 433 | %{_datadir}/%{name}/extensions |
eca54e0f | 434 | %{_datadir}/%{name}/searchplugins |
44be9ed4 | 435 | |
765a3a27 ER |
436 | %if %{with crashreporter} |
437 | %attr(755,root,root) %{_libdir}/%{name}/crashreporter | |
438 | %{_libdir}/%{name}/crashreporter.ini | |
439 | %{_libdir}/%{name}/Throbber-small.gif | |
440 | %endif | |
441 | ||
44be9ed4 | 442 | %dir %{_libdir}/%{name}/extensions |
443 | %{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd} | |
6578c165 | 444 | |
52fc61e6 ER |
445 | # files created by regxpcom -register |
446 | %ghost %{_libdir}/%{name}/components/compreg.dat | |
447 | %ghost %{_libdir}/%{name}/components/xpti.dat | |
448 | ||
d0b96b40 JR |
449 | %{_iconsdir}/hicolor/*/apps/icedove.* |
450 | ||
6578c165 | 451 | %if %{with lightning} |
452 | %files addon-lightning | |
453 | %defattr(644,root,root,755) | |
f3b6d696 | 454 | %dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} |
cf62736e | 455 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/application.ini |
f3b6d696 ER |
456 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome |
457 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest | |
cf62736e | 458 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/defaults |
f3b6d696 ER |
459 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/install.rdf |
460 | %dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components | |
461 | %attr(755,root,root) %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.so | |
f3b6d696 | 462 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.js |
cf62736e JB |
463 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.manifest |
464 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.xpt | |
f3b6d696 ER |
465 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/modules |
466 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/calendar-js | |
467 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones.sqlite | |
6578c165 | 468 | %endif |