]>
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 |
88149483 | 10 | |
f4114a7f | 11 | %if 0%{?_enable_debug_packages} != 1 |
765a3a27 ER |
12 | %undefine crashreporter |
13 | %endif | |
14 | ||
3366507a | 15 | %define nspr_ver 4.10.2 |
1671589b | 16 | %define nss_ver 3.16.2.3 |
44be9ed4 | 17 | |
d0b96b40 | 18 | %define xulrunner_ver 2:24.0 |
4f34f106 | 19 | |
7d981f69 ER |
20 | %if %{without xulrunner} |
21 | # The actual sqlite version (see RHBZ#480989): | |
22 | %define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR) | |
23 | %endif | |
24 | ||
44be9ed4 | 25 | Summary: Icedove - email client |
26 | Summary(pl.UTF-8): Icedove - klient poczty | |
27 | Name: icedove | |
590c075b JR |
28 | Version: 31.3.0 |
29 | Release: 0.1 | |
3366507a | 30 | License: MPL v2.0 |
2d289b25 | 31 | Group: X11/Applications/Mail |
cadfb931 | 32 | Source0: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/thunderbird-%{version}.source.tar.bz2 |
590c075b | 33 | # Source0-md5: 3781dfb541412c7f6b530a654b834ce5 |
44be9ed4 | 34 | Source2: %{name}-branding.tar.bz2 |
d0b96b40 | 35 | # Source2-md5: d8e6897870bf288fdf264c0e9ef85f7d |
44be9ed4 | 36 | Source3: %{name}-rm_nonfree.sh |
37 | Source4: %{name}.desktop | |
38 | Source5: %{name}.sh | |
44be9ed4 | 39 | Patch0: %{name}-branding.patch |
faa5c89d | 40 | Patch3: %{name}-fonts.patch |
faa5c89d | 41 | Patch6: %{name}-prefs.patch |
9a743685 | 42 | Patch7: system-mozldap.patch |
a85e0ecb | 43 | Patch8: %{name}-makefile.patch |
ccc206fe | 44 | Patch10: %{name}-extensiondir.patch |
268e7766 | 45 | Patch12: no-subshell.patch |
03be87a5 JR |
46 | # Edit patch below and restore --system-site-packages when system virtualenv gets 1.7 upgrade |
47 | Patch13: system-virtualenv.patch | |
d0b96b40 | 48 | Patch15: enable-addons.patch |
1671589b | 49 | Patch16: bump-nss-req.patch |
5745d706 | 50 | URL: http://www.pld-linux.org/Packages/Icedove |
6458b220 | 51 | BuildRequires: GConf2-devel >= 1.2.1 |
51a3b6db | 52 | BuildRequires: alsa-lib-devel |
44be9ed4 | 53 | BuildRequires: automake |
51a3b6db | 54 | BuildRequires: bzip2-devel |
e820c55e JB |
55 | BuildRequires: cairo-devel >= 1.10 |
56 | BuildRequires: dbus-glib-devel >= 0.60 | |
44be9ed4 | 57 | BuildRequires: freetype-devel >= 1:2.1.8 |
6f32f966 | 58 | BuildRequires: glib2-devel >= 1:2.20 |
d0b96b40 JR |
59 | BuildRequires: gstreamer0.10-devel |
60 | BuildRequires: gstreamer0.10-plugins-base-devel | |
3366507a JB |
61 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.14} |
62 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} | |
5e9bb798 | 63 | BuildRequires: hunspell-devel |
44be9ed4 | 64 | BuildRequires: libIDL-devel >= 0.8.0 |
d0b96b40 | 65 | BuildRequires: libevent-devel |
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} | |
3815090b | 75 | BuildRequires: pango-devel >= 1:1.14.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 |
3366507a | 81 | BuildRequires: sqlite3-devel >= 3.7.17 |
1c62cadb | 82 | BuildRequires: startup-notification-devel >= 0.8 |
d0b96b40 | 83 | BuildRequires: libvpx-devel >= 1.0.0 |
44be9ed4 | 84 | BuildRequires: xorg-lib-libXext-devel |
44be9ed4 | 85 | BuildRequires: xorg-lib-libXinerama-devel |
44be9ed4 | 86 | BuildRequires: xorg-lib-libXt-devel |
5745d706 | 87 | BuildRequires: yasm |
1c62cadb | 88 | BuildRequires: zip |
7d981f69 | 89 | %if %{with xulrunner} |
e8326f77 | 90 | BuildRequires: xulrunner-devel >= %{xulrunner_ver} |
def321d1 | 91 | BuildRequires: xulrunner-devel < 2:25 |
7d981f69 | 92 | %else |
6f32f966 | 93 | Requires: glib2 >= 1:2.20 |
3366507a JB |
94 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.14} |
95 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} | |
44be9ed4 | 96 | Requires: myspell-common |
f4114a7f ER |
97 | Requires: nspr >= 1:%{nspr_ver} |
98 | Requires: nss >= 1:%{nss_ver} | |
4b6bc367 | 99 | Requires: sqlite3 >= %{sqlite_build_version} |
7d981f69 | 100 | %endif |
4f34f106 ER |
101 | Requires(post): mktemp >= 1.5-18 |
102 | %if %{with xulrunner} | |
103 | %requires_eq_to xulrunner xulrunner-devel | |
104 | %endif | |
e82da7a1 | 105 | Requires: libjpeg-turbo |
44be9ed4 | 106 | Obsoletes: mozilla-thunderbird |
107 | Obsoletes: mozilla-thunderbird-dictionary-en-US | |
d606e9b3 | 108 | Conflicts: icedove-lang-resources < %{version} |
44be9ed4 | 109 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
110 | ||
9e366f18 AM |
111 | %define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+ |
112 | ||
44be9ed4 | 113 | # iceweasel/icedove/iceape provide their own versions |
44be9ed4 | 114 | %define _noautoprovfiles %{_libdir}/%{name}/components |
fb7d4f06 JB |
115 | %if %{without xulrunner} |
116 | # we don't want these to satisfy packages depending on xulrunner | |
6f32f966 | 117 | %define _noautoprov libmozalloc.so libmozjs.so libxul.so |
44be9ed4 | 118 | # and as we don't provide them, don't require either |
6f32f966 | 119 | %define _noautoreq libmozalloc.so libmozjs.so libxul.so |
fb7d4f06 | 120 | %endif |
44be9ed4 | 121 | |
9e7875fc ER |
122 | %define topdir %{_builddir}/%{name}-%{version} |
123 | %define objdir %{topdir}/obj-%{_target_cpu} | |
124 | ||
44be9ed4 | 125 | %description |
6b327de6 | 126 | Icedove is an open-source, fast and portable email client. |
44be9ed4 | 127 | |
128 | %description -l pl.UTF-8 | |
6b327de6 JB |
129 | Icedove jest mającym otwarte źródła, szybkim i przenośnym klientem |
130 | poczty. | |
44be9ed4 | 131 | |
6578c165 | 132 | %package addon-lightning |
133 | Summary: An integrated calendar for Icedove | |
134 | Summary(pl.UTF-8): Zintegrowany kalendarz dla Icedove | |
135 | License: MPL 1.1 or GPL v2+ or LGPL v2.1+ | |
136 | Group: Applications/Networking | |
137 | Requires: %{name} = %{version}-%{release} | |
138 | ||
139 | %description addon-lightning | |
140 | Lightning is an calendar extension to Icedove email client. | |
141 | ||
142 | %description addon-lightning -l pl.UTF-8 | |
143 | Lightning to rozszerzenie do klienta poczty Icedove dodające | |
144 | funkcjonalność kalendarza. | |
145 | ||
44be9ed4 | 146 | %prep |
983562b1 | 147 | %setup -qc |
590c075b | 148 | %{__mv} comm-esr31 mozilla |
983562b1 | 149 | %setup -q -T -D -a2 |
150 | cd mozilla | |
44be9ed4 | 151 | /bin/sh %{SOURCE3} |
983562b1 | 152 | %patch0 -p1 |
4ccc2157 | 153 | %patch3 -p1 |
983562b1 | 154 | %patch6 -p1 |
9a743685 | 155 | %patch7 -p1 |
f4114a7f | 156 | %patch8 -p2 |
ccc206fe | 157 | %patch10 -p2 |
268e7766 | 158 | %patch12 -p1 |
03be87a5 | 159 | %patch13 -p1 |
d0b96b40 | 160 | %patch15 -p1 |
2c416415 | 161 | %patch16 -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 |
d0b96b40 | 243 | 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 |
44be9ed4 | 259 | ac_add_options --with-system-jpeg |
d0b96b40 JR |
260 | ac_add_options --with-system-libevent |
261 | ac_add_options --with-system-libvpx | |
44be9ed4 | 262 | ac_add_options --with-system-nspr |
263 | ac_add_options --with-system-nss | |
264 | ac_add_options --with-system-png | |
265 | ac_add_options --with-system-zlib | |
44be9ed4 | 266 | EOF |
267 | ||
d0b96b40 JR |
268 | mkdir -p %{objdir}/config |
269 | ln -s %{topdir}/mozilla/config/*.mk %{objdir}/config | |
270 | ||
90e998ba | 271 | %{__make} -j1 -f client.mk build \ |
d076d93e | 272 | STRIP="/bin/true" \ |
765a3a27 | 273 | MOZ_MAKE_FLAGS="%{?_smp_mflags}" \ |
d0b96b40 | 274 | installdir=%{_libdir}/%{name} \ |
de09c00d | 275 | XLIBS="-lX11 -lXt" \ |
d076d93e | 276 | CC="%{__cc}" \ |
44be9ed4 | 277 | CXX="%{__cxx}" |
278 | ||
765a3a27 ER |
279 | %if %{with crashreporter} |
280 | # create debuginfo for crash-stats.mozilla.com | |
281 | %{__make} -j1 -C obj-%{_target_cpu} buildsymbols | |
282 | %endif | |
283 | ||
44be9ed4 | 284 | %install |
285 | rm -rf $RPM_BUILD_ROOT | |
765a3a27 | 286 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_datadir}/%{name},%{_pixmapsdir},%{_desktopdir}} |
44be9ed4 | 287 | |
9e7875fc | 288 | cd %{objdir} |
ecf04393 | 289 | %{__make} -C mail/installer stage-package \ |
44be9ed4 | 290 | DESTDIR=$RPM_BUILD_ROOT \ |
d0b96b40 | 291 | installdir=%{_libdir}/%{name} \ |
44be9ed4 | 292 | PKG_SKIP_STRIP=1 |
293 | ||
d0b96b40 JR |
294 | %{__make} -C icedove/branding install \ |
295 | DESTDIR=$RPM_BUILD_ROOT | |
296 | ||
297 | cp -a mozilla/dist/icedove/* $RPM_BUILD_ROOT%{_libdir}/%{name}/ | |
298 | ||
9b40a2c3 JB |
299 | %if %{with xulrunner} |
300 | # needed to find mozilla runtime | |
301 | ln -s ../xulrunner $RPM_BUILD_ROOT%{_libdir}/%{name}/xulrunner | |
302 | %endif | |
303 | ||
304 | # Enable crash reporter for Thunderbird application | |
765a3a27 ER |
305 | %if %{with crashreporter} |
306 | %{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini | |
307 | ||
308 | # Add debuginfo for crash-stats.mozilla.com | |
51a3b6db | 309 | install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name} |
765a3a27 ER |
310 | cp -a mozilla/dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name} |
311 | %endif | |
312 | ||
ecf04393 | 313 | # copy manually lightning files, somewhy they are not installed by make |
d0b96b40 | 314 | cp -a mozilla/dist/bin/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} \ |
ecf04393 ER |
315 | $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions |
316 | ||
44be9ed4 | 317 | # move arch independant ones to datadir |
eca54e0f | 318 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins |
eca54e0f | 319 | ln -s ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins |
44be9ed4 | 320 | |
c6ec3c1c ER |
321 | # dir for arch independant extensions besides arch dependant extensions |
322 | # see mozilla/xpcom/build/nsXULAppAPI.h | |
323 | # XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR | |
324 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions | |
325 | ||
73d54cb2 | 326 | %if %{without xulrunner} |
63d8f5c3 | 327 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries |
44be9ed4 | 328 | ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries |
73d54cb2 | 329 | %endif |
e6bc19b3 | 330 | |
0889474f JR |
331 | %{__sed} -e "s|%MOZAPPDIR%|%{_libdir}/%{name}|" \ |
332 | -e "s|%MOZ_APP_DISPLAYNAME%|Icedove|" \ | |
333 | %{topdir}/mozilla/mozilla/build/unix/mozilla.in > $RPM_BUILD_ROOT%{_libdir}/%{name}/icedove | |
334 | ||
44be9ed4 | 335 | %{__sed} -e 's,@LIBDIR@,%{_libdir},' %{SOURCE5} > $RPM_BUILD_ROOT%{_bindir}/icedove |
336 | ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/thunderbird | |
337 | ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/mozilla-thunderbird | |
338 | ||
d0b96b40 | 339 | # install icons and desktop file |
52f5507d | 340 | cp -p %{topdir}/mozilla/icedove/branding/content/icon64.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png |
d0b96b40 JR |
341 | for i in 16 32 48 64 128 256; do |
342 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${i}x${i}/apps | |
343 | cp -a %{topdir}/mozilla/icedove/branding/icedove${i}.png \ | |
344 | $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${i}x${i}/apps/icedove.png | |
345 | done | |
346 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps | |
347 | cp -a %{topdir}/mozilla/icedove/branding/icedove.svg $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/icedove.svg | |
348 | ||
349 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
44be9ed4 | 350 | |
e8f4ba81 | 351 | # files created by regxpcom -register in post |
52fc61e6 ER |
352 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat |
353 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat | |
e8f4ba81 ER |
354 | cat << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/register |
355 | #!/bin/sh | |
356 | umask 022 | |
357 | # make temporary HOME, as it attempts to touch files in $HOME/.mozilla | |
358 | # dangerous if you run this with sudo with keep_env += HOME | |
359 | # also TMPDIR could be pointing to sudo user's homedir so we reset that too. | |
360 | t=$(mktemp -d) | |
d50a2a28 | 361 | %{__rm} -f %{_libdir}/%{name}/components/{compreg,xpti}.dat |
e8f4ba81 ER |
362 | TMPDIR= TMP= HOME=$t %{_libdir}/%{name}/icedove -register |
363 | rm -rf $t | |
364 | EOF | |
365 | chmod a+rx $RPM_BUILD_ROOT%{_libdir}/%{name}/register | |
52fc61e6 | 366 | |
283702b9 | 367 | # mozldap |
d0b96b40 JR |
368 | %{__sed} -i '/lib\(ldap\|ldif\|prldap\)60.so/d' $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list |
369 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap}60.so | |
283702b9 | 370 | |
44be9ed4 | 371 | %clean |
372 | rm -rf $RPM_BUILD_ROOT | |
373 | ||
374 | %pretrans | |
375 | if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then | |
376 | mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave} | |
377 | fi | |
eca54e0f | 378 | for d in chrome defaults icons isp modules res searchplugins; do |
44be9ed4 | 379 | if [ -d %{_libdir}/%{name}/$d ] && [ ! -L %{_libdir}/%{name}/$d ]; then |
380 | install -d %{_datadir}/%{name} | |
381 | mv %{_libdir}/%{name}/$d %{_datadir}/%{name}/$d | |
382 | fi | |
383 | done | |
384 | exit 0 | |
385 | ||
e8f4ba81 ER |
386 | %post |
387 | %{_libdir}/%{name}/register || : | |
388 | ||
44be9ed4 | 389 | %files |
390 | %defattr(644,root,root,755) | |
391 | %attr(755,root,root) %{_bindir}/icedove | |
392 | %attr(755,root,root) %{_bindir}/mozilla-thunderbird | |
393 | %attr(755,root,root) %{_bindir}/thunderbird | |
394 | %dir %{_libdir}/%{name} | |
765a3a27 | 395 | %{_libdir}/%{name}/application.ini |
6b327de6 JB |
396 | %{_libdir}/%{name}/blocklist.xml |
397 | %{_libdir}/%{name}/chrome.manifest | |
44be9ed4 | 398 | %dir %{_libdir}/%{name}/components |
6b327de6 | 399 | %{_libdir}/%{name}/components/components.manifest |
73d54cb2 JB |
400 | %attr(755,root,root) %{_libdir}/%{name}/*.sh |
401 | %attr(755,root,root) %{_libdir}/%{name}/*-bin | |
402 | %attr(755,root,root) %{_libdir}/%{name}/icedove | |
403 | %attr(755,root,root) %{_libdir}/%{name}/register | |
d0b96b40 | 404 | %{_libdir}/%{name}/omni.ja |
73d54cb2 | 405 | %if %{without xulrunner} |
a367af64 | 406 | %{_libdir}/%{name}/dependentlibs.list |
73d54cb2 | 407 | %{_libdir}/%{name}/platform.ini |
73d54cb2 | 408 | %attr(755,root,root) %{_libdir}/%{name}/components/*.so |
0516fc42 | 409 | %attr(755,root,root) %{_libdir}/%{name}/libmozalloc.so |
d0b96b40 | 410 | %attr(755,root,root) %{_libdir}/%{name}/libmozjs.so |
0516fc42 | 411 | %attr(755,root,root) %{_libdir}/%{name}/libxul.so |
44be9ed4 | 412 | %attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client |
cf62736e | 413 | %attr(755,root,root) %{_libdir}/%{name}/plugin-container |
73d54cb2 | 414 | %endif |
44be9ed4 | 415 | |
416 | # symlinks | |
417 | %{_libdir}/%{name}/chrome | |
418 | %{_libdir}/%{name}/defaults | |
44be9ed4 | 419 | %{_libdir}/%{name}/isp |
eca54e0f | 420 | %{_libdir}/%{name}/searchplugins |
9b40a2c3 JB |
421 | %if %{with xulrunner} |
422 | %{_libdir}/%{name}/xulrunner | |
423 | %else | |
73d54cb2 | 424 | %{_libdir}/%{name}/dictionaries |
73d54cb2 | 425 | %endif |
44be9ed4 | 426 | |
224cf96a JB |
427 | %{_pixmapsdir}/icedove.png |
428 | %{_desktopdir}/icedove.desktop | |
44be9ed4 | 429 | |
430 | %dir %{_datadir}/%{name} | |
eca54e0f | 431 | %{_datadir}/%{name}/extensions |
eca54e0f | 432 | %{_datadir}/%{name}/searchplugins |
44be9ed4 | 433 | |
765a3a27 ER |
434 | %if %{with crashreporter} |
435 | %attr(755,root,root) %{_libdir}/%{name}/crashreporter | |
436 | %{_libdir}/%{name}/crashreporter.ini | |
437 | %{_libdir}/%{name}/Throbber-small.gif | |
438 | %endif | |
439 | ||
44be9ed4 | 440 | %dir %{_libdir}/%{name}/extensions |
441 | %{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd} | |
6578c165 | 442 | |
52fc61e6 ER |
443 | # files created by regxpcom -register |
444 | %ghost %{_libdir}/%{name}/components/compreg.dat | |
445 | %ghost %{_libdir}/%{name}/components/xpti.dat | |
446 | ||
d0b96b40 JR |
447 | %{_iconsdir}/hicolor/*/apps/icedove.* |
448 | ||
6578c165 | 449 | %if %{with lightning} |
450 | %files addon-lightning | |
451 | %defattr(644,root,root,755) | |
f3b6d696 | 452 | %dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} |
cf62736e | 453 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/application.ini |
f3b6d696 ER |
454 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome |
455 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest | |
cf62736e | 456 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/defaults |
f3b6d696 ER |
457 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/install.rdf |
458 | %dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components | |
459 | %attr(755,root,root) %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.so | |
f3b6d696 | 460 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.js |
cf62736e JB |
461 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.manifest |
462 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.xpt | |
f3b6d696 ER |
463 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/modules |
464 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/calendar-js | |
465 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones.sqlite | |
6578c165 | 466 | %endif |