]>
Commit | Line | Data |
---|---|---|
c4ddd260 | 1 | # TODO: |
c4ddd260 | 2 | # - separate spec for enigmail |
283702b9 | 3 | # - fix icedove (building) and installing nss/nspr libs! |
283702b9 | 4 | # - build with system mozldap |
91bac034 ER |
5 | # - about dialog broken: |
6 | #XML Parsing Error: undefined entity | |
7 | #Location: chrome://messenger/content/aboutDialog.xul | |
8 | #Line Number 27, Column 37: <description id="copyright">&logoTrademark;</description> | |
9 | #------------------------------------^ | |
c4ddd260 | 10 | # |
44be9ed4 | 11 | # Conditional builds |
12 | %bcond_without enigmail # don't build enigmail - GPG/PGP support | |
13 | %bcond_without gnomeui # disable gnomeui support | |
14 | %bcond_without gnomevfs # disable GNOME comp. (gconf+libgnome+gnomevfs) and gnomevfs ext. | |
15 | %bcond_without gnome # disable all GNOME components (gnome+gnomeui+gnomevfs) | |
16 | %bcond_without ldap # disable e-mail address lookups in LDAP directories | |
6578c165 | 17 | %bcond_without lightning # disable sunbird calendar |
88149483 ER |
18 | %bcond_with xulrunner # build with system xulrunner |
19 | ||
44be9ed4 | 20 | %if %{without gnome} |
21 | %undefine with_gnomeui | |
22 | %undefine with_gnomevfs | |
23 | %endif | |
88149483 | 24 | |
f4aadbdb | 25 | %define enigmail_ver 1.1.2 |
44be9ed4 | 26 | |
7d981f69 ER |
27 | %if %{without xulrunner} |
28 | # The actual sqlite version (see RHBZ#480989): | |
29 | %define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR) | |
30 | %endif | |
31 | ||
44be9ed4 | 32 | Summary: Icedove - email client |
33 | Summary(pl.UTF-8): Icedove - klient poczty | |
34 | Name: icedove | |
ecf04393 | 35 | Version: 3.1.2 |
ccc206fe | 36 | Release: 0.5 |
44be9ed4 | 37 | License: MPL 1.1 or GPL v2+ or LGPL v2.1+ |
75c0f419 | 38 | Group: X11/Applications/Networking |
cadfb931 | 39 | Source0: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/thunderbird-%{version}.source.tar.bz2 |
ecf04393 | 40 | # Source0-md5: 48e80576a7af70e64d30a5162364525a |
44be9ed4 | 41 | Source1: http://www.mozilla-enigmail.org/download/source/enigmail-%{enigmail_ver}.tar.gz |
f4aadbdb | 42 | # Source1-md5: 7d329d5e8afbbb28214ca1995beb09c9 |
44be9ed4 | 43 | Source2: %{name}-branding.tar.bz2 |
6578c165 | 44 | # Source2-md5: 2da351522bdd7f4a3bd8aaff4c776976 |
44be9ed4 | 45 | Source3: %{name}-rm_nonfree.sh |
46 | Source4: %{name}.desktop | |
47 | Source5: %{name}.sh | |
2f151de0 | 48 | Source6: %{name}-enigmail.manifest |
44be9ed4 | 49 | Patch0: %{name}-branding.patch |
faa5c89d SP |
50 | Patch1: %{name}-enigmail-shared.patch |
51 | Patch2: %{name}-gcc.patch | |
52 | Patch3: %{name}-fonts.patch | |
53 | Patch4: %{name}-install.patch | |
5e9bb798 | 54 | Patch5: %{name}-hunspell.patch |
faa5c89d | 55 | Patch6: %{name}-prefs.patch |
9a743685 | 56 | Patch7: system-mozldap.patch |
a85e0ecb | 57 | Patch8: %{name}-makefile.patch |
ca336c77 | 58 | Patch9: %{name}-libpng.patch |
ccc206fe | 59 | Patch10: %{name}-extensiondir.patch |
4922c320 | 60 | URL: http://www.pld-linux.org/Packages/Icedove |
44be9ed4 | 61 | %{?with_gnomevfs:BuildRequires: GConf2-devel >= 1.2.1} |
62 | BuildRequires: automake | |
63 | BuildRequires: freetype-devel >= 1:2.1.8 | |
64 | %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.0} | |
65 | BuildRequires: gtk+2-devel >= 1:2.0.0 | |
5e9bb798 | 66 | BuildRequires: hunspell-devel |
44be9ed4 | 67 | BuildRequires: libIDL-devel >= 0.8.0 |
68 | %{?with_gnomevfs:BuildRequires: libgnome-devel >= 2.0} | |
69 | %{?with_gnomeui:BuildRequires: libgnomeui-devel >= 2.2.0} | |
70 | BuildRequires: libjpeg-devel >= 6b | |
71 | BuildRequires: libpng-devel >= 1.2.0 | |
72 | BuildRequires: libstdc++-devel | |
cadfb931 SP |
73 | BuildRequires: nspr-devel >= 1:4.8 |
74 | BuildRequires: nss-devel >= 1:3.12.0 | |
44be9ed4 | 75 | BuildRequires: pango-devel >= 1:1.1.0 |
1c62cadb | 76 | BuildRequires: pkgconfig |
44be9ed4 | 77 | BuildRequires: sed >= 4.0 |
4b6bc367 | 78 | BuildRequires: sqlite3-devel >= 3.6.22 |
1c62cadb | 79 | BuildRequires: startup-notification-devel >= 0.8 |
44be9ed4 | 80 | BuildRequires: xorg-lib-libXext-devel |
44be9ed4 | 81 | BuildRequires: xorg-lib-libXinerama-devel |
44be9ed4 | 82 | BuildRequires: xorg-lib-libXt-devel |
1c62cadb | 83 | BuildRequires: zip |
7d981f69 ER |
84 | %if %{with xulrunner} |
85 | %else | |
44be9ed4 | 86 | Requires: myspell-common |
87 | Requires: nspr >= 1:4.6.1 | |
88 | Requires: nss >= 1:3.11.3 | |
4b6bc367 | 89 | Requires: sqlite3 >= %{sqlite_build_version} |
7d981f69 | 90 | %endif |
44be9ed4 | 91 | Obsoletes: mozilla-thunderbird |
92 | Obsoletes: mozilla-thunderbird-dictionary-en-US | |
93 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
94 | ||
9e366f18 AM |
95 | %define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+ |
96 | ||
44be9ed4 | 97 | # iceweasel/icedove/iceape provide their own versions |
98 | %define _noautoreqdep libgfxpsshar.so libgkgfx.so libgtkxtbin.so libjsj.so libxpcom_compat.so libxpcom_core.so libxpistub.so | |
99 | %define _noautoprovfiles %{_libdir}/%{name}/components | |
100 | # we don't want these to satisfy xulrunner-devel | |
5ac9187e | 101 | %define _noautoprov libgtkembedmoz.so libmozjs.so libxpcom.so libxul.so |
44be9ed4 | 102 | # and as we don't provide them, don't require either |
5ac9187e | 103 | %define _noautoreq libgtkembedmoz.so libmozjs.so libxpcom.so libxul.so |
44be9ed4 | 104 | |
105 | %description | |
106 | Icedove is an open-source,fast and portable email client. | |
107 | ||
108 | %description -l pl.UTF-8 | |
109 | Icedove jest open sourcowym, szybkim i przenośnym klientem poczty. | |
110 | ||
6578c165 | 111 | %package addon-lightning |
112 | Summary: An integrated calendar for Icedove | |
113 | Summary(pl.UTF-8): Zintegrowany kalendarz dla Icedove | |
114 | License: MPL 1.1 or GPL v2+ or LGPL v2.1+ | |
115 | Group: Applications/Networking | |
116 | Requires: %{name} = %{version}-%{release} | |
117 | ||
118 | %description addon-lightning | |
119 | Lightning is an calendar extension to Icedove email client. | |
120 | ||
121 | %description addon-lightning -l pl.UTF-8 | |
122 | Lightning to rozszerzenie do klienta poczty Icedove dodające | |
123 | funkcjonalność kalendarza. | |
124 | ||
44be9ed4 | 125 | %package addon-enigmail |
126 | Summary: Extension for the authentication and encryption features provided by GnuPG | |
127 | Summary(pl.UTF-8): Rozszerzenie do uwierzytelniania i szyfrowania zapewnianego przez GnuPG | |
128 | License: MPL/LGPL | |
129 | Group: Applications/Networking | |
130 | URL: http://enigmail.mozdev.org/ | |
cd056caa | 131 | Requires: %{name} = %{version}-%{release} |
d076d93e | 132 | Requires: gnupg |
75991bbb | 133 | Obsoletes: mozilla-thunderbird-addon-enigmail |
44be9ed4 | 134 | |
135 | %description addon-enigmail | |
c5e06599 | 136 | Enigmail is an extension to the Icedove mail client which allows users |
137 | to access the authentication and encryption features provided by | |
138 | GnuPG. | |
44be9ed4 | 139 | |
140 | Main Features: | |
141 | - Encrypt/sign mail when sending, decrypt/authenticate received mail | |
142 | - Support for inline-PGP (RFC 2440) and PGP/MIME (RFC 3156) | |
143 | - Per-Account based encryption and signing defaults | |
144 | - Per-Recipient rules for automated key selection, and | |
145 | enabling/disabling encryption and signing | |
146 | - OpenPGP key management interface | |
147 | ||
148 | %description addon-enigmail -l pl.UTF-8 | |
c5e06599 | 149 | Enigmail to rozszerzenie klienta pocztowego Icedove pozwalające |
faa5c89d SP |
150 | użytkownikom na dostęp do uwierzytelniania i szyfrowania zapewnianego |
151 | przez GnuPG. | |
44be9ed4 | 152 | |
153 | Główne możliwości: | |
154 | - szyfrowanie/podpisywanie poczty przy wysyłaniu, | |
155 | odszyfrowywanie/uwierzytelnianie poczty odebranej | |
156 | - obsługa inline-PGP (RFC 2440) i PGP/MIME (RFC 3156) | |
157 | - ustawienia domyślne szyfrowania i podpisywania dla każdego konta | |
158 | - reguły automatycznego wyboru kluczy i włączenia szyfrowania oraz | |
159 | podpisywania dla każdego adresata | |
160 | - interfejs do zarządzania kluczami OpenPGP | |
161 | ||
162 | %prep | |
983562b1 | 163 | %setup -qc |
a85e0ecb | 164 | mv -f comm-1.9.2 mozilla |
983562b1 | 165 | %setup -q -T -D -a2 |
166 | cd mozilla | |
44be9ed4 | 167 | %{?with_enigmail:tar xvfz %{SOURCE1} -C mailnews/extensions} |
168 | /bin/sh %{SOURCE3} | |
983562b1 | 169 | %patch0 -p1 |
faa5c89d SP |
170 | %{?with_enigmail:%patch1 -p1} |
171 | %patch2 -p1 | |
4ccc2157 | 172 | %patch3 -p1 |
faa5c89d | 173 | %patch4 -p1 |
5e9bb798 | 174 | %patch5 -p1 |
983562b1 | 175 | %patch6 -p1 |
9a743685 | 176 | %patch7 -p1 |
a85e0ecb | 177 | %patch8 -p0 |
ca336c77 | 178 | %patch9 -p0 |
ccc206fe | 179 | %patch10 -p2 |
44be9ed4 | 180 | |
181 | %build | |
983562b1 | 182 | cd mozilla |
44be9ed4 | 183 | export CFLAGS="%{rpmcflags} `%{_bindir}/pkg-config mozilla-nspr --cflags-only-I`" |
184 | export CXXFLAGS="%{rpmcflags} `%{_bindir}/pkg-config mozilla-nspr --cflags-only-I`" | |
185 | ||
cadfb931 SP |
186 | cp -f %{_datadir}/automake/config.* mozilla/build/autoconf |
187 | cp -f %{_datadir}/automake/config.* mozilla/nsprpub/build/autoconf | |
44be9ed4 | 188 | cp -f %{_datadir}/automake/config.* directory/c-sdk/config/autoconf |
189 | ||
9a743685 ER |
190 | install -d libxul-sdk |
191 | ln -snf %{_libdir}/xulrunner-sdk libxul-sdk/sdk | |
9a743685 | 192 | |
fbac75ca | 193 | cat << EOF > .mozconfig |
cb0e4412 SP |
194 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-%{_target_cpu} |
195 | ||
59c5a0e8 | 196 | # Options for 'configure' (same as command-line options). |
44be9ed4 | 197 | ac_add_options --prefix=%{_prefix} |
198 | ac_add_options --exec-prefix=%{_exec_prefix} | |
199 | ac_add_options --bindir=%{_bindir} | |
200 | ac_add_options --sbindir=%{_sbindir} | |
201 | ac_add_options --sysconfdir=%{_sysconfdir} | |
202 | ac_add_options --datadir=%{_datadir} | |
203 | ac_add_options --includedir=%{_includedir} | |
204 | ac_add_options --libdir=%{_libdir} | |
205 | ac_add_options --libexecdir=%{_libexecdir} | |
206 | ac_add_options --localstatedir=%{_localstatedir} | |
207 | ac_add_options --sharedstatedir=%{_sharedstatedir} | |
208 | ac_add_options --mandir=%{_mandir} | |
209 | ac_add_options --infodir=%{_infodir} | |
210 | %if %{?debug:1}0 | |
59c5a0e8 | 211 | ac_add_options --disable-optimize |
44be9ed4 | 212 | ac_add_options --enable-debug |
213 | ac_add_options --enable-debug-modules | |
59c5a0e8 SP |
214 | ac_add_options --enable-debugger-info-modules |
215 | ac_add_options --enable-crash-on-assert | |
44be9ed4 | 216 | %else |
217 | ac_add_options --disable-debug | |
218 | ac_add_options --disable-debug-modules | |
59c5a0e8 SP |
219 | ac_add_options --disable-logging |
220 | ac_add_options --enable-optimize="%{rpmcflags} -Os" | |
44be9ed4 | 221 | %endif |
88149483 ER |
222 | ac_add_options --disable-strip |
223 | ac_add_options --disable-strip-libs | |
44be9ed4 | 224 | %if %{with tests} |
225 | ac_add_options --enable-tests | |
226 | %else | |
227 | ac_add_options --disable-tests | |
228 | %endif | |
229 | %if %{with gnomeui} | |
230 | ac_add_options --enable-gnomeui | |
231 | %else | |
232 | ac_add_options --disable-gnomeui | |
233 | %endif | |
234 | %if %{with gnomevfs} | |
235 | ac_add_options --enable-gnomevfs | |
236 | %else | |
237 | ac_add_options --disable-gnomevfs | |
238 | %endif | |
239 | %if %{with ldap} | |
240 | ac_add_options --enable-ldap | |
9a743685 | 241 | ac_add_options --with-system-ldap |
44be9ed4 | 242 | %else |
243 | ac_add_options --disable-ldap | |
244 | %endif | |
59c5a0e8 | 245 | ac_add_options --disable-crashreporter |
59c5a0e8 | 246 | ac_add_options --disable-xterm-updates |
59c5a0e8 | 247 | ac_add_options --enable-postscript |
d076d93e | 248 | %if %{with lightning} |
cb0e4412 | 249 | ac_add_options --enable-calendar |
d076d93e SP |
250 | %else |
251 | ac_add_options --disable-calendar | |
252 | %endif | |
44be9ed4 | 253 | ac_add_options --disable-installer |
254 | ac_add_options --disable-jsd | |
88149483 | 255 | ac_add_options --disable-updater |
44be9ed4 | 256 | ac_add_options --disable-xprint |
cadfb931 SP |
257 | ac_add_options --disable-permissions |
258 | ac_add_options --disable-pref-extensions | |
44be9ed4 | 259 | ac_add_options --enable-canvas |
260 | ac_add_options --enable-crypto | |
44be9ed4 | 261 | ac_add_options --enable-mathml |
44be9ed4 | 262 | ac_add_options --enable-pango |
263 | ac_add_options --enable-reorder | |
88149483 ER |
264 | ac_add_options --enable-startup-notification |
265 | ac_add_options --enable-svg | |
44be9ed4 | 266 | ac_add_options --enable-system-cairo |
5e9bb798 | 267 | ac_add_options --enable-system-hunspell |
7d981f69 | 268 | ac_add_options --enable-system-sqlite |
44be9ed4 | 269 | ac_add_options --enable-xft |
cadfb931 SP |
270 | ac_add_options --enable-application=mail |
271 | ac_add_options --enable-default-toolkit=cairo-gtk2 | |
44be9ed4 | 272 | ac_add_options --enable-xinerama |
88149483 ER |
273 | ac_add_options --with-distribution-id=org.pld-linux |
274 | ac_add_options --with-branding=icedove/branding | |
275 | %if %{with xulrunner} | |
fbac75ca ER |
276 | ac_add_options --with-libxul-sdk=$(pwd)/libxul-sdk |
277 | ac_add_options --enable-shared | |
278 | %else | |
279 | ac_add_options --enable-static | |
88149483 ER |
280 | %endif |
281 | ac_add_options --with-pthreads | |
282 | ac_add_options --with-system-bz2 | |
44be9ed4 | 283 | ac_add_options --with-system-jpeg |
284 | ac_add_options --with-system-nspr | |
285 | ac_add_options --with-system-nss | |
286 | ac_add_options --with-system-png | |
287 | ac_add_options --with-system-zlib | |
44be9ed4 | 288 | ac_add_options --enable-single-profile |
289 | ac_add_options --disable-profilesharing | |
44be9ed4 | 290 | ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name} |
291 | EOF | |
292 | ||
90e998ba | 293 | %{__make} -j1 -f client.mk build \ |
d076d93e SP |
294 | STRIP="/bin/true" \ |
295 | CC="%{__cc}" \ | |
44be9ed4 | 296 | CXX="%{__cxx}" |
297 | ||
298 | %if %{with enigmail} | |
ecf04393 | 299 | top=$(pwd) |
59c5a0e8 | 300 | cd mailnews/extensions/enigmail |
ecf04393 ER |
301 | ./makemake -r -o $top/obj-%{_target_cpu} |
302 | %{__make} -C $top/obj-%{_target_cpu}/mailnews/extensions/enigmail \ | |
d076d93e SP |
303 | STRIP="/bin/true" \ |
304 | CC="%{__cc}" \ | |
305 | CXX="%{__cxx}" | |
44be9ed4 | 306 | %endif |
307 | ||
308 | %install | |
309 | rm -rf $RPM_BUILD_ROOT | |
310 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_pixmapsdir},%{_desktopdir}} \ | |
60c77977 SP |
311 | $RPM_BUILD_ROOT%{_datadir}/%{name} |
312 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name} | |
44be9ed4 | 313 | |
ecf04393 ER |
314 | cd mozilla/obj-%{_target_cpu} |
315 | %{__make} -C mail/installer stage-package \ | |
44be9ed4 | 316 | DESTDIR=$RPM_BUILD_ROOT \ |
317 | MOZ_PKG_APPDIR=%{_libdir}/%{name} \ | |
318 | PKG_SKIP_STRIP=1 | |
319 | ||
ecf04393 ER |
320 | # copy manually lightning files, somewhy they are not installed by make |
321 | cp -a mozilla/dist/bin/extensions/calendar-timezones@mozilla.org \ | |
322 | mozilla/dist/bin/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} \ | |
323 | $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions | |
324 | ||
44be9ed4 | 325 | # move arch independant ones to datadir |
326 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome | |
327 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults | |
328 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/greprefs $RPM_BUILD_ROOT%{_datadir}/%{name}/greprefs | |
44be9ed4 | 329 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp |
9e097178 | 330 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/modules $RPM_BUILD_ROOT%{_datadir}/%{name}/modules |
44be9ed4 | 331 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/res $RPM_BUILD_ROOT%{_datadir}/%{name}/res |
332 | ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome | |
333 | ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults | |
334 | ln -s ../../share/%{name}/greprefs $RPM_BUILD_ROOT%{_libdir}/%{name}/greprefs | |
44be9ed4 | 335 | ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp |
9e097178 | 336 | ln -s ../../share/%{name}/modules $RPM_BUILD_ROOT%{_libdir}/%{name}/modules |
44be9ed4 | 337 | ln -s ../../share/%{name}/res $RPM_BUILD_ROOT%{_libdir}/%{name}/res |
338 | ||
339 | rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries | |
340 | ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries | |
341 | ||
342 | %{__sed} -e 's,@LIBDIR@,%{_libdir},' %{SOURCE5} > $RPM_BUILD_ROOT%{_bindir}/icedove | |
343 | ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/thunderbird | |
344 | ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/mozilla-thunderbird | |
345 | ||
293928f3 | 346 | cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop |
ecf04393 | 347 | cp -a ../icedove/branding/content/icon64.png $RPM_BUILD_ROOT%{_pixmapsdir}/icedove.png |
44be9ed4 | 348 | |
52fc61e6 ER |
349 | # files created by regxpcom -register |
350 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat | |
351 | touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat | |
352 | ||
44be9ed4 | 353 | %if %{with enigmail} |
283702b9 ER |
354 | ext_dir=$RPM_BUILD_ROOT%{_libdir}/%{name}/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\} |
355 | install -d $ext_dir/{chrome,components,defaults/preferences} | |
52fc61e6 ER |
356 | cd mozilla/dist/bin |
357 | cp -rfLp chrome/enigmail.jar $ext_dir/chrome | |
358 | cp -rfLp chrome/enigmime.jar $ext_dir/chrome | |
359 | cp -rfLp components/enig* $ext_dir/components | |
360 | cp -rfLp components/libenigmime.so $ext_dir/components | |
361 | cp -rfLp components/ipc.xpt $ext_dir/components | |
362 | cp -rfLp defaults/preferences/enigmail.js $ext_dir/defaults/preferences | |
363 | cd - | |
364 | cp -a ../mailnews/extensions/enigmail/package/install.rdf $ext_dir | |
283702b9 | 365 | cp -f %{SOURCE6} $ext_dir/chrome.manifest |
44be9ed4 | 366 | %endif |
367 | ||
9a743685 ER |
368 | # remove unecessary stuff |
369 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}/README.txt | |
293928f3 | 370 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}/components/components.list |
44be9ed4 | 371 | |
9a743685 | 372 | # never package these |
283702b9 ER |
373 | # nss |
374 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{freebl3,nss3,nssckbi,nssdbm3,nssutil3,smime3,softokn3,ssl3}.* | |
375 | # nspr | |
376 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{nspr4,plc4,plds4}.so | |
283702b9 ER |
377 | # mozldap |
378 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap,ssldap}60.so | |
379 | ||
44be9ed4 | 380 | %clean |
381 | rm -rf $RPM_BUILD_ROOT | |
382 | ||
383 | %pretrans | |
384 | if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then | |
385 | mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave} | |
386 | fi | |
9e097178 | 387 | for d in chrome defaults greprefs icons isp modules res; do |
44be9ed4 | 388 | if [ -d %{_libdir}/%{name}/$d ] && [ ! -L %{_libdir}/%{name}/$d ]; then |
389 | install -d %{_datadir}/%{name} | |
390 | mv %{_libdir}/%{name}/$d %{_datadir}/%{name}/$d | |
391 | fi | |
392 | done | |
393 | exit 0 | |
394 | ||
395 | %files | |
396 | %defattr(644,root,root,755) | |
397 | %attr(755,root,root) %{_bindir}/icedove | |
398 | %attr(755,root,root) %{_bindir}/mozilla-thunderbird | |
399 | %attr(755,root,root) %{_bindir}/thunderbird | |
400 | %dir %{_libdir}/%{name} | |
60c77977 | 401 | %{_libdir}/%{name}/*.ini |
44be9ed4 | 402 | %dir %{_libdir}/%{name}/components |
403 | %attr(755,root,root) %{_libdir}/%{name}/components/*.so | |
404 | %{_libdir}/%{name}/components/*.js | |
405 | %{_libdir}/%{name}/components/*.xpt | |
283702b9 ER |
406 | %attr(755,root,root) %{_libdir}/%{name}/libmozjs.so |
407 | %attr(755,root,root) %{_libdir}/%{name}/libxpcom.so | |
408 | %attr(755,root,root) %{_libdir}/%{name}/libxpcom_core.so | |
44be9ed4 | 409 | %attr(755,root,root) %{_libdir}/%{name}/*.sh |
410 | %attr(755,root,root) %{_libdir}/%{name}/*-bin | |
411 | %attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client | |
bc9cd18a | 412 | %attr(755,root,root) %{_libdir}/%{name}/icedove |
44be9ed4 | 413 | |
414 | # symlinks | |
415 | %{_libdir}/%{name}/chrome | |
416 | %{_libdir}/%{name}/defaults | |
417 | %{_libdir}/%{name}/dictionaries | |
418 | %{_libdir}/%{name}/greprefs | |
44be9ed4 | 419 | %{_libdir}/%{name}/isp |
9e097178 | 420 | %{_libdir}/%{name}/modules |
44be9ed4 | 421 | %{_libdir}/%{name}/res |
422 | ||
293928f3 | 423 | %{_pixmapsdir}/*.png |
44be9ed4 | 424 | %{_desktopdir}/*.desktop |
425 | ||
426 | %dir %{_datadir}/%{name} | |
427 | %{_datadir}/%{name}/chrome | |
428 | %{_datadir}/%{name}/defaults | |
429 | %{_datadir}/%{name}/greprefs | |
44be9ed4 | 430 | %{_datadir}/%{name}/isp |
9e097178 | 431 | %{_datadir}/%{name}/modules |
44be9ed4 | 432 | %{_datadir}/%{name}/res |
433 | ||
434 | %dir %{_libdir}/%{name}/extensions | |
435 | %{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd} | |
6578c165 | 436 | |
52fc61e6 ER |
437 | # files created by regxpcom -register |
438 | %ghost %{_libdir}/%{name}/components/compreg.dat | |
439 | %ghost %{_libdir}/%{name}/components/xpti.dat | |
440 | ||
6578c165 | 441 | %if %{with lightning} |
442 | %files addon-lightning | |
443 | %defattr(644,root,root,755) | |
94402182 | 444 | %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} |
6578c165 | 445 | %{_libdir}/%{name}/extensions/calendar-timezones@mozilla.org |
446 | %endif | |
44be9ed4 | 447 | |
448 | %if %{with enigmail} | |
449 | %files addon-enigmail | |
450 | %defattr(644,root,root,755) | |
451 | %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5} | |
452 | %endif |