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