]> git.pld-linux.org Git - packages/seamonkey.git/blobdiff - seamonkey.spec
- fixed install
[packages/seamonkey.git] / seamonkey.spec
index 654ce0159919562756cda4db47df7dac9e09a970..9eaf500af486bff7c37173ddf4db4c1e5d9d29c5 100644 (file)
@@ -1,21 +1,22 @@
 #
 # Conditional build:
-%bcond_without gnomevfs        # disable GnomeVFS support
-%bcond_with    gnomeui         # enable GnomeUI
-%bcond_without gnome           # disable gnomevfs (alias)
-%bcond_without svg             # disable svg support
-#
+%bcond_without enigmail        # don't build enigmail - GPG/PGP support
+%bcond_without gnomeui         # disable gnomeui support
+%bcond_without gnome           # disable gnomeui (alias)
+%bcond_without ldap            # disable e-mail address lookups in LDAP directories
+%bcond_without lightning       # disable Sunbird/Lightning calendar
+%bcond_with    xulrunner       # build with system xulrunner
+%bcond_with    tests           # enable tests (whatever they check)
+%bcond_without kerberos        # disable krb5 support
+
 %if %{without gnome}
-%undefine      with_gnomevfs
+%undefine      with_gnomeui
 %endif
 
-%define                enigmail_ver    1.3.2
-%define                nspr_ver        4.8.8
-%define                nss_ver         3.12.10
-
-# convert firefox release number to platform version: 7.0.x -> 7.0.x
-%define                xulrunner_main  8.0
-%define                xulrunner_ver   %(v=%{version}; echo %{xulrunner_main}${v#8.0})
+%define                enigmail_ver    1.4.1
+%define                nspr_ver        4.9
+%define                nss_ver         3.13.3
+%define                xulrunner_ver   12.0
 
 %if %{without xulrunner}
 # The actual sqlite version (see RHBZ#480989):
@@ -27,71 +28,115 @@ Summary(es.UTF-8): Navegador de Internet SeaMonkey Community Edition
 Summary(pl.UTF-8):     SeaMonkey Community Edition - przeglądarka WWW
 Summary(pt_BR.UTF-8):  Navegador SeaMonkey Community Edition
 Name:          seamonkey
-Version:       2.4.1
+Version:       2.9.1
 Release:       0.1
 License:       MPL 1.1 or GPL v2+ or LGPL v2.1+
 Group:         X11/Applications/Networking
 Source0:       ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/source/%{name}-%{version}.source.tar.bz2
-# Source0-md5: ccac3a0971a75cb0798347d60f12f6cf
+# Source0-md5: 8dd18d93a6570c3c9f3873bb177ccc6b
 Source1:       http://www.mozilla-enigmail.org/download/source/enigmail-%{enigmail_ver}.tar.gz
-# Source1-md5: 2318d60320dc6c3db3c34d968bb7d533
+# Source1-md5: 0eba75fbcf8f0bb32d538df102fbb8e9
 Source2:       %{name}.desktop
 Source3:       %{name}-composer.desktop
 Source4:       %{name}-chat.desktop
 Source5:       %{name}-mail.desktop
 Source6:       %{name}-venkman.desktop
+Source7:       %{name}.sh
 Patch0:                %{name}-pld-homepage.patch
-Patch1:                %{name}-ldap-with-nss.patch
-Patch3:                %{name}-lib_path.patch
-Patch5:                %{name}-ti-agent.patch
-Patch6:                %{name}-agent.patch
-Patch7:                %{name}-glueload-fix.patch
+Patch1:                %{name}-agent.patch
+Patch2:                %{name}-glueload-fix.patch
+Patch3:                system-mozldap.patch
+Patch4:                makefile.patch
+Patch5:                system-cairo.patch
 URL:           http://www.seamonkey-project.org/
+BuildRequires: GConf2-devel >= 1.2.1
+BuildRequires: OpenGL-devel
+BuildRequires: alsa-lib-devel
 BuildRequires: automake
-%{?with_svg:BuildRequires:     cairo-devel >= 1.0.0}
+BuildRequires: bzip2-devel
+BuildRequires: cairo-devel >= 1.10.2-5
+BuildRequires: dbus-glib-devel >= 0.60
 BuildRequires: freetype-devel >= 1:2.1.8
+BuildRequires: glib2-devel >= 1:2.18
+BuildRequires: gtk+2-devel >= 2:2.10
+%{?with_kerberos:BuildRequires:        heimdal-devel >= 0.7.1}
+BuildRequires: hunspell-devel
 BuildRequires: libIDL-devel >= 0.8.0
-%{?with_gnomevfs:BuildRequires:        gnome-vfs2-devel >= 2.0.0}
-BuildRequires: gtk+2-devel
-%{?with_gnomeui:BuildRequires: libgnomeui-devel >= 2.2.0}
+BuildRequires: libdnet-devel
+BuildRequires: libevent-devel >= 1.4.7
+# standalone libffi 3.0.9 or gcc's from 4.5(?)+
+BuildRequires: libffi-devel >= 6:3.0.9
+%{?with_gnomeui:BuildRequires:  libgnome-devel >= 2.0}
+%{?with_gnomeui:BuildRequires:  libgnome-keyring-devel}
+%{?with_gnomeui:BuildRequires:  libgnomeui-devel >= 2.2.0}
+BuildRequires: libiw-devel
 BuildRequires: libjpeg-devel >= 6b
-BuildRequires: libpng-devel >= 1.2.7
+BuildRequires: libnotify-devel >= 0.4
+BuildRequires: libpng(APNG)-devel >= 0.10
+BuildRequires: libpng-devel >= 1.4.1
 BuildRequires: libstdc++-devel
-BuildRequires: nspr-devel >= 1:4.6.1
-BuildRequires: nss-devel >= 1:3.11.3
-BuildRequires: perl-modules >= 5.6.0
+BuildRequires: libvpx-devel
+BuildRequires: nspr-devel >= 1:%{nspr_ver}
+BuildRequires: nss-devel >= 1:%{nss_ver}
+BuildRequires: pango-devel >= 1:1.14.0
+BuildRequires: perl-base >= 1:5.6
+BuildRequires: perl-modules >= 5.004
 BuildRequires: pkgconfig
+BuildRequires: python >= 1:2.5
+BuildRequires: python-modules
 BuildRequires: rpm >= 4.4.9-56
-BuildRequires: rpmbuild(macros) >= 1.356
+BuildRequires: rpmbuild(macros) >= 1.601
 BuildRequires: sed >= 4.0
+BuildRequires: sqlite3-devel >= 3.7.10
+BuildRequires: startup-notification-devel >= 0.8
+BuildRequires: xorg-lib-libXScrnSaver-devel
 BuildRequires: xorg-lib-libXext-devel
-BuildRequires: xorg-lib-libXft-devel >= 2.1
 BuildRequires: xorg-lib-libXinerama-devel
-BuildRequires: xorg-lib-libXp-devel
 BuildRequires: xorg-lib-libXt-devel
-BuildRequires: zip >= 2.1
+%if %{with xulrunner}
+BuildRequires: xulrunner-devel >= 2:%{xulrunner_ver}
+%endif
+BuildRequires: yasm
+BuildRequires: zip
 BuildRequires: zlib-devel >= 1.2.3
+Requires(post):        mktemp >= 1.5-18
+Requires:      desktop-file-utils
+Requires:      hicolor-icon-theme
+%if %{with xulrunner}
+%requires_eq_to        xulrunner xulrunner-devel
+%else
 Requires:      browser-plugins >= 2.0
-%{?with_svg:Requires:  cairo >= 1.0.0}
-Requires:      nspr >= 1:4.6.1
-Requires:      nss >= 1:3.11.3
+Requires:      cairo >= 1.10.2-5
+Requires:      dbus-glib >= 0.60
+Requires:      gtk+2 >= 2:2.18
+Requires:      libpng >= 1.4.1
+Requires:      libpng(APNG) >= 0.10
+Requires:      myspell-common
+Requires:      nspr >= 1:%{nspr_ver}
+Requires:      nss >= 1:%{nss_ver}
+Requires:      pango >= 1:1.14.0
+Requires:      sqlite3 >= %{sqlite_build_version}
+Requires:      startup-notification >= 0.8
+%endif
 Provides:      seamonkey-embedded = %{version}-%{release}
 Provides:      wwwbrowser
 Obsoletes:     light
 Obsoletes:     mozilla
 Obsoletes:     seamonkey-calendar
 Obsoletes:     seamonkey-libs
+Obsoletes:     seamonkey-mailnews
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _seamonkeydir   %{_libdir}/%{name}
-%define                _chromedir      %{_libdir}/%{name}/chrome
+%define                topdir          %{_builddir}/%{name}-%{version}
+%define                objdir          %{topdir}/obj-%{_target_cpu}
 
-# don't satisfy other packages by private libs and modules (note: don't use %{name} here)
-%define                _noautoprovfiles        %{_libdir}/seamonkey
-# and as we don't provide them, don't require either
-%define                _noautoreq      libgfxpsshar.so libgkgfx.so libgtkembedmoz.so libgtkxtbin.so libjsj.so libldap50.so libmozjs.so libprldap50.so libssldap50.so libxlibrgb.so libxpcom.so libxpcom_compat.so libxpcom_core.so libmsgbaseutil.so
+%define                filterout_cpp   -D_FORTIFY_SOURCE=[0-9]+
 
-%define                specflags       -fno-strict-aliasing
+# don't satisfy other packages
+%define                _noautoprovfiles        %{_libdir}/%{name}
+# and as we don't provide them, don't require either
+%define                _noautoreq      libmozjs.so libxpcom.so libxul.so libjemalloc.so %{!?with_xulrunner:libmozalloc.so}
+%define                _noautoreqdep   libgfxpsshar.so libgkgfx.so libgtkxtbin.so libjsj.so libxpcom_compat.so libxpistub.so
 
 %description
 SeaMonkey Community Edition is an open-source web browser, designed
@@ -115,31 +160,26 @@ SeaMonkey Community Edition - полнофункциональный web-browser
 открытыми исходными текстами, разработанный для максимального
 соотвествия стандартам, максмимальной переносимости и скорости работы
 
-%package mailnews
-Summary:       SeaMonkey Community Edition - programs for mail and news
-Summary(pl.UTF-8):     SeaMonkey Community Edition - programy do poczty i newsów
-Summary(ru.UTF-8):     Почтовая система на основе SeaMonkey Community Edition
-Group:         X11/Applications/Networking
-Requires(post,postun): %{name} = %{version}-%{release}
+%package addon-lightning
+Summary:       An integrated calendar for SeaMonkey
+Summary(pl.UTF-8):     Zintegrowany kalendarz dla SeaMonkey
+License:       MPL 1.1 or GPL v2+ or LGPL v2.1+
+Group:         Applications/Networking
 Requires:      %{name} = %{version}-%{release}
-Obsoletes:     mozilla-mailnews
-
-%description mailnews
-Programs for mail and news integrated with browser.
 
-%description mailnews -l pl.UTF-8
-Programy pocztowe i obsługa newsów zintegrowane z przeglądarką.
+%description addon-lightning
+Lightning is an calendar extension to Icedove email client.
 
-%description mailnews -l ru.UTF-8
-Клиент почты и новостей, на основе SeaMonkey Community Edition.
-Поддерживает IMAP, POP и NNTP и имеет простой интерфейс пользователя.
+%description addon-lightning -l pl.UTF-8
+Lightning to rozszerzenie do klienta poczty Icedove dodające
+funkcjonalność kalendarza.
 
 %package addon-enigmail
 Summary:       Enigmail %{enigmail_ver} - PGP/GPG support for SeaMonkey Community Edition
 Summary(pl.UTF-8):     Enigmail %{enigmail_ver} - obsługa PGP/GPG dla SeaMonkey Community Edition
 Group:         X11/Applications/Networking
-Requires(post,postun): %{name}-mailnews = %{version}-%{release}
-Requires:      %{name}-mailnews = %{version}-%{release}
+Requires(post,postun): %{name} = %{version}-%{release}
+Requires:      %{name} = %{version}-%{release}
 Requires:      gnupg >= 1.4.2.2
 
 %description addon-enigmail
@@ -201,575 +241,539 @@ To narzędzie pozwala na oglądanie DOM dla stron WWW w SeaMonkey
 Community Edition. Jest bardzo przydatne dla ludzi rozwijających
 chrome w SeaMonkey Community Edition lub tworzących strony WWW.
 
-%package gnomevfs
-Summary:       Gnome-VFS module providing support for smb:// URLs
-Summary(pl.UTF-8):     Moduł Gnome-VFS dodający wsparcie dla URLi smb://
-Group:         X11/Applications/Networking
-Requires(post,postun): %{name} = %{version}-%{release}
-Requires:      %{name} = %{version}-%{release}
-Obsoletes:     mozilla-gnomevfs
-
-%description gnomevfs
-Gnome-VFS module providing support for smb:// URLs.
-
-%description gnomevfs -l pl.UTF-8
-Moduł Gnome-VFS dodający wsparcie dla URLi smb://.
-
 %prep
 %setup -qc
-cd comm-*
+cd comm-release
 tar -C mailnews/extensions -zxf %{SOURCE1}
-#%patch0 -p1
+#patch0 -p1
 %patch1 -p1
-#%patch3 -p1
-%if "%{pld_release}" == "ti"
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
 %patch5 -p1
+
+%build
+cd comm-release
+%if %{with xulrunner}
+if [ "$(grep -E '^[0-9]+\.' mozilla/config/milestone.txt)" != "%{xulrunner_ver}" ]; then
+       echo >&2
+       echo >&2 "Xulrunner version %{xulrunner_ver} does not match mozilla/config/milestone.txt!"
+       echo >&2
+       exit 1
+fi
+%endif
+
+cp -f %{_datadir}/automake/config.* build/autoconf
+cp -f %{_datadir}/automake/config.* mozilla/build/autoconf
+cp -f %{_datadir}/automake/config.* mozilla/nsprpub/build/autoconf
+cp -f %{_datadir}/automake/config.* ldap/sdks/c-sdk/config/autoconf
+
+cat << EOF > .mozconfig
+mk_add_options MOZ_OBJDIR=%{objdir}
+
+export CFLAGS="%{rpmcflags}"
+export CXXFLAGS="%{rpmcflags}"
+
+%if %{with crashreporter}
+export MOZ_DEBUG_SYMBOLS=1
+%endif
+
+# Options for 'configure' (same as command-line options).
+ac_add_options --prefix=%{_prefix}
+ac_add_options --exec-prefix=%{_exec_prefix}
+ac_add_options --bindir=%{_bindir}
+ac_add_options --sbindir=%{_sbindir}
+ac_add_options --sysconfdir=%{_sysconfdir}
+ac_add_options --datadir=%{_datadir}
+ac_add_options --includedir=%{_includedir}
+ac_add_options --libdir=%{_libdir}
+ac_add_options --libexecdir=%{_libexecdir}
+ac_add_options --localstatedir=%{_localstatedir}
+ac_add_options --sharedstatedir=%{_sharedstatedir}
+ac_add_options --mandir=%{_mandir}
+ac_add_options --infodir=%{_infodir}
+ac_add_options --disable-elf-hack
+%if %{?debug:1}0
+ac_add_options --disable-optimize
+ac_add_options --enable-debug
+ac_add_options --enable-debug-modules
+ac_add_options --enable-debugger-info-modules
+ac_add_options --enable-crash-on-assert
 %else
-%patch6 -p1
+ac_add_options --disable-debug
+ac_add_options --disable-debug-modules
+ac_add_options --disable-logging
+ac_add_options --enable-optimize="%{rpmcflags} -Os"
 %endif
-%patch7 -p1
+ac_add_options --disable-strip
+ac_add_options --disable-strip-libs
+%if %{with tests}
+ac_add_options --enable-tests
+%else
+ac_add_options --disable-tests
+%endif
+ac_add_options --enable-gio
+%if %{with gnomeui}
+ac_add_options --enable-gnomeui
+%else
+ac_add_options --disable-gnomeui
+%endif
+ac_add_options --disable-gnomevfs
+%if %{with ldap}
+ac_add_options --enable-ldap
+ac_add_options --with-system-ldap
+%else
+ac_add_options --disable-ldap
+%endif
+%if %{with crashreporter}
+ac_add_options --enable-crashreporter
+%else
+ac_add_options --disable-crashreporter
+%endif
+ac_add_options --disable-xterm-updates
+ac_add_options --enable-postscript
+%if %{with lightning}
+ac_add_options --enable-calendar
+%else
+ac_add_options --disable-calendar
+%endif
+ac_add_options --disable-installer
+ac_add_options --disable-javaxpcom
+ac_add_options --disable-updater
+ac_add_options --disable-xprint
+ac_add_options --disable-permissions
+ac_add_options --disable-pref-extensions
+ac_add_options --enable-canvas
+ac_add_options --enable-crypto
+ac_add_options --enable-mathml
+ac_add_options --enable-libxul
+ac_add_options --enable-pango
+ac_add_options --enable-reorder
+ac_add_options --enable-startup-notification
+ac_add_options --enable-svg
+ac_add_options --enable-system-cairo
+ac_add_options --enable-system-hunspell
+ac_add_options --enable-system-sqlite
+ac_add_options --enable-application=suite
+ac_add_options --enable-default-toolkit=cairo-gtk2
+ac_add_options --enable-xinerama
+ac_add_options --with-distribution-id=org.pld-linux
+ac_add_options --enable-shared-js
+%if %{with xulrunner}
+ac_add_options --with-system-libxul
+ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul)
+%endif
+ac_add_options --with-pthreads
+ac_add_options --with-system-bz2
+ac_add_options --with-system-ffi
+ac_add_options --with-system-jpeg
+ac_add_options --with-system-libevent
+ac_add_options --with-system-libvpx
+ac_add_options --with-system-nspr
+ac_add_options --with-system-nss
+ac_add_options --with-system-png
+ac_add_options --with-system-zlib
+ac_add_options --enable-single-profile
+ac_add_options --disable-profilesharing
+ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name}
+EOF
 
-%build
-cd mozilla
-
-cp -f /usr/share/automake/config.* build/autoconf
-cp -f /usr/share/automake/config.* nsprpub/build/autoconf
-cp -f /usr/share/automake/config.* directory/c-sdk/config/autoconf
-ac_cv_visibility_pragma=no; export ac_cv_visibility_pragma
-%configure2_13 \
-       %{!?debug:--disable-debug} \
-       --disable-elf-dynstr-gc \
-       %{!?with_gnomeui:--disable-gnomeui} \
-       %{!?with_gnomevfs:--disable-gnomevfs} \
-       --disable-pedantic \
-       --disable-tests \
-       --disable-xterm-updates \
-       --enable-application=suite \
-       --enable-crypto \
-       --enable-default-toolkit=gtk2 \
-       --enable-extensions \
-       --enable-ldap \
-       --enable-mathml \
-       --enable-optimize="%{rpmcflags}" \
-       --enable-postscript \
-       %{!?debug:--enable-strip} \
-       %{?with_svg:--enable-svg --enable-svg-renderer-cairo} \
-       %{?with_svg:--enable-system-cairo} \
-       --enable-xft \
-       --enable-xinerama \
-       --enable-xprint \
-       --enable-old-abi-compat-wrappers \
-       --with-default-mozilla-five-home=%{_seamonkeydir} \
-       --with-pthreads \
-       --with-system-jpeg \
-       --with-system-nspr \
-       --with-system-nss \
-       --with-system-png \
-       --with-system-zlib \
-       --with-x
-
-%{__make} \
-       STRIP=echo
+%{__make} -j1 -f client.mk build \
+       STRIP="/bin/true" \
+       MOZ_MAKE_FLAGS="%{?_smp_mflags}" \
+       installdir=%{_libdir}/%{name} \
+       CC="%{__cc}" \
+       CXX="%{__cxx}"
+
+%if %{with crashreporter}
+# create debuginfo for crash-stats.mozilla.com
+%{__make} -j1 -C obj-%{_target_cpu} buildsymbols
+%endif
 
+%if %{with enigmail}
 cd mailnews/extensions/enigmail
-./makemake -r
-%{__make}
-cd ../../..
+./makemake -r -o %{objdir}
+%{__make} -C %{objdir}/mailnews/extensions/enigmail \
+       STRIP="/bin/true" \
+       CC="%{__cc}" \
+       CXX="%{__cxx}"
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-cd mozilla
+cd comm-release
 install -d \
-       $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_datadir}} \
+       $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} \
        $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
-       $RPM_BUILD_ROOT%{_datadir}/%{name}/{chrome,defaults,dictionaries,icons,greprefs,res,searchplugins} \
-       $RPM_BUILD_ROOT%{_seamonkeydir}/{components,plugins}
-
-# preparing to create register
-# remove empty directory trees
-rm -fr dist/bin/chrome/{US,chatzilla,classic,comm,content-packs,cview,embed,embed-sample,en-US,en-mac,en-unix,en-win,help,inspector,messenger,modern,pipnss,pippki,toolkit,venkman,xmlterm}
-# non-unix
-rm -f dist/bin/chrome/en-{mac,win}.jar
-
-# creating and installing register
-LD_LIBRARY_PATH="dist/bin" MOZILLA_FIVE_HOME="dist/bin" dist/bin/regxpcom
-LD_LIBRARY_PATH="dist/bin" MOZILLA_FIVE_HOME="dist/bin" dist/bin/regchrome
-
-ln -sf ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_chromedir}
-ln -sf ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_seamonkeydir}/defaults
-ln -sf ../../share/%{name}/dictionaries $RPM_BUILD_ROOT%{_seamonkeydir}/dictionaries
-ln -sf ../../share/%{name}/greprefs $RPM_BUILD_ROOT%{_seamonkeydir}/greprefs
-ln -sf ../../share/%{name}/icons $RPM_BUILD_ROOT%{_seamonkeydir}/icons
-ln -sf ../../share/%{name}/res $RPM_BUILD_ROOT%{_seamonkeydir}/res
-ln -sf ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_seamonkeydir}/searchplugins
-
-cp -frL dist/bin/chrome/*      $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome
-cp -frL dist/bin/components/{[!m],m[!y]}*      $RPM_BUILD_ROOT%{_seamonkeydir}/components
-cp -frL dist/bin/defaults/*    $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults
-cp -frL dist/bin/dictionaries/*        $RPM_BUILD_ROOT%{_datadir}/%{name}/dictionaries
-cp -frL dist/bin/greprefs/*    $RPM_BUILD_ROOT%{_datadir}/%{name}/greprefs
-cp -frL dist/bin/res/*         $RPM_BUILD_ROOT%{_datadir}/%{name}/res
-cp -frL dist/bin/searchplugins/* $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins
-
-install dist/bin/*.so $RPM_BUILD_ROOT%{_seamonkeydir}
-
-ln -s %{_libdir}/libnssckbi.so $RPM_BUILD_ROOT%{_seamonkeydir}/libnssckbi.so
+       $RPM_BUILD_ROOT%{_datadir}/%{name} \
+       $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins
 
-install %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} \
-       $RPM_BUILD_ROOT%{_desktopdir}
+%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
 
-install suite/branding/icons/gtk/seamonkey.png $RPM_BUILD_ROOT%{_pixmapsdir}
+cd %{objdir}
+%{__make} -C suite/installer stage-package \
+       DESTDIR=$RPM_BUILD_ROOT \
+       installdir=%{_libdir}/%{name} \
+       PKG_SKIP_STRIP=1
 
-install dist/bin/seamonkey-bin $RPM_BUILD_ROOT%{_seamonkeydir}
-install dist/bin/regchrome $RPM_BUILD_ROOT%{_seamonkeydir}
-install dist/bin/regxpcom $RPM_BUILD_ROOT%{_seamonkeydir}
-install dist/bin/xpidl $RPM_BUILD_ROOT%{_seamonkeydir}
+cp -a mozilla/dist/seamonkey/* $RPM_BUILD_ROOT%{_libdir}/%{name}/
 
-cp $RPM_BUILD_ROOT%{_chromedir}/installed-chrome.txt \
-        $RPM_BUILD_ROOT%{_chromedir}/%{name}-installed-chrome.txt
+%if %{with xulrunner}
+# >= 5.0 seems to require this
+ln -s ../xulrunner $RPM_BUILD_ROOT%{_libdir}/%{name}/xulrunner
+%endif
 
-cat << 'EOF' > $RPM_BUILD_ROOT%{_bindir}/seamonkey
-#!/bin/sh
-# (c) vip at linux.pl, wolf at pld-linux.org
+# Enable crash reporter for Thunderbird application
+%if %{with crashreporter}
+%{__sed} -i -e 's/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/' $RPM_BUILD_ROOT%{_libdir}/%{name}/application.ini
 
-LD_LIBRARY_PATH=%{_seamonkeydir}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
-export LD_LIBRARY_PATH
+# Add debuginfo for crash-stats.mozilla.com
+install -d $RPM_BUILD_ROOT%{_exec_prefix}/lib/debug%{_libdir}/%{name}
+cp -a mozilla/dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name}
+%endif
 
-MOZILLA_FIVE_HOME="%{_seamonkeydir}"
-SEAMONKEY="$MOZILLA_FIVE_HOME/seamonkey-bin"
-if [ "$1" == "-remote" ]; then
-       exec $SEAMONKEY "$@"
-fi
+# copy manually lightning files, somewhy they are not installed by make
+cp -a mozilla/dist/bin/extensions/calendar-timezones@mozilla.org \
+       mozilla/dist/bin/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} \
+       $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions
+               
+# move arch independant ones to datadir
+mv $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/chrome
+mv $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/defaults
+mv $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp
+mv $RPM_BUILD_ROOT%{_libdir}/%{name}/modules $RPM_BUILD_ROOT%{_datadir}/%{name}/modules
+mv $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins $RPM_BUILD_ROOT%{_datadir}/%{name}/searchplugins
+%if %{without xulrunner}
+mv $RPM_BUILD_ROOT%{_libdir}/%{name}/greprefs.js $RPM_BUILD_ROOT%{_datadir}/%{name}/greprefs.js
+mv $RPM_BUILD_ROOT%{_libdir}/%{name}/res $RPM_BUILD_ROOT%{_datadir}/%{name}/res
+%endif
 
-PING=`$SEAMONKEY -remote 'ping()' 2>&1 >/dev/null`
-if [ -n "$PING" ]; then
-       if [ -f "`pwd`/$1" ]; then
-               exec $SEAMONKEY "file://`pwd`/$1"
-       else
-               exec $SEAMONKEY "$@"
-       fi
-fi
+ln -s ../../share/%{name}/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/chrome
+ln -s ../../share/%{name}/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults
+ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp
+ln -s ../../share/%{name}/modules $RPM_BUILD_ROOT%{_libdir}/%{name}/modules
+ln -s ../../share/%{name}/searchplugins $RPM_BUILD_ROOT%{_libdir}/%{name}/searchplugins
+%if %{without xulrunner}
+ln -s ../../share/%{name}/greprefs.js $RPM_BUILD_ROOT%{_libdir}/%{name}/greprefs.js
+ln -s ../../share/%{name}/res $RPM_BUILD_ROOT%{_libdir}/%{name}/res
+%endif
 
-if [ -z "$1" ]; then
-       exec $SEAMONKEY -remote 'xfeDoCommand (openBrowser)'
-elif [ "$1" == "-mail" ]; then
-       exec $SEAMONKEY -remote 'xfeDoCommand (openInbox)'
-elif [ "$1" == "-compose" ]; then
-       exec $SEAMONKEY -remote 'xfeDoCommand (composeMessage)'
-fi
+mv $RPM_BUILD_ROOT%{_libdir}/%{name}/distribution/extensions/* \
+       $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions/
 
-[[ $1 == -* ]] && exec $SEAMONKEY "$@"
+# dir for arch independant extensions besides arch dependant extensions
+# see mozilla/xpcom/build/nsXULAppAPI.h
+# XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and XRE_SYS_SHARE_EXTENSION_PARENT_DIR
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions
+%if %{without xulrunner}
+%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
+ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
+%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/hyphenation
+ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/hyphenation
+%endif
 
-if [ -f "`pwd`/$1" ]; then
-       URL="file://`pwd`/$1"
-else
-       URL="$1"
-fi
-if grep -q -E 'browser.tabs.opentabfor.middleclick.*true' \
-               ~/.mozilla/default/*/prefs.js; then
-       exec $SEAMONKEY -remote "OpenUrl($URL,new-tab)"
-else
-       exec $SEAMONKEY -remote "OpenUrl($URL,new-window)"
-fi
+sed 's,@LIBDIR@,%{_libdir},' %{SOURCE7} > $RPM_BUILD_ROOT%{_bindir}/seamonkey
+chmod a+rx $RPM_BUILD_ROOT%{_bindir}/seamonkey
 
-echo "Cannot execute SeaMonkey ($SEAMONKEY)!" >&2
-exit 1
-EOF
+install %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} \
+       $RPM_BUILD_ROOT%{_desktopdir}
+
+cp -p %{topdir}/comm-release/suite/branding/nightly/content/icon64.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
 
-cat << 'EOF' > $RPM_BUILD_ROOT%{_sbindir}/%{name}-chrome+xpcom-generate
+# files created by seamonkey -register
+touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat
+touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat
+
+cat << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/register
 #!/bin/sh
 umask 022
-cd %{_datadir}/%{name}/chrome
-cat *-installed-chrome.txt > installed-chrome.txt
-rm -f chrome.rdf overlays.rdf
-rm -f %{_seamonkeydir}/components/{compreg,xpti}.dat
+rm -f %{_libdir}/%{name}/components/{compreg,xpti}.dat
+
+# it attempts to touch files in $HOME/.mozilla
+# beware if you run this with sudo!!!
+export HOME=$(mktemp -d)
+# also TMPDIR could be pointing to sudo user's homedir
+unset TMPDIR TMP || :
 
-LD_LIBRARY_PATH=%{_seamonkeydir}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
-export LD_LIBRARY_PATH
+%{_libdir}/%{name}/seamonkey -register
 
-MOZILLA_FIVE_HOME=%{_seamonkeydir} %{_seamonkeydir}/regxpcom
-MOZILLA_FIVE_HOME=%{_seamonkeydir} %{_seamonkeydir}/regchrome
-exit 0
+rm -rf $HOME
 EOF
+chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/register
+
+%if %{with enigmail}
+ext_dir=$RPM_BUILD_ROOT%{_libdir}/%{name}/extensions/\{847b3a00-7ab1-11d4-8f02-006008948af5\}
+install -d $ext_dir/{chrome,components,defaults/preferences}
+cd mozilla/dist/bin
+#cp -rfLp chrome/enigmail.jar $ext_dir/chrome
+#cp -rfLp chrome/enigmime.jar $ext_dir/chrome
+cp -rfLp components/enig* $ext_dir/components
+cp -rfLp components/libenigmime.so $ext_dir/components
+cp -rfLp components/libipc.so $ext_dir/components
+cp -rfLp components/ipc.xpt $ext_dir/components
+cp -rfLp defaults/preferences/enigmail.js $ext_dir/defaults/preferences
+cd -
+cp -p %{topdir}/comm-release/mailnews/extensions/enigmail/package/install.rdf $ext_dir
+cp -p %{topdir}/comm-release/mailnews/extensions/enigmail/package/chrome.manifest $ext_dir/chrome.manifest
+%endif
 
-%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
+# never package these. always remove
+# nss
+%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{freebl3,nss3,nssckbi,nssdbm3,nssutil3,smime3,softokn3,ssl3}.*
+# nspr
+%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{nspr4,plc4,plds4}.so
+# mozldap
+%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap,ssldap}60.so
+# testpilot quiz
+%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/distribution/extensions/tbtestpilot@labs.mozilla.com.xpi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ "$1" = 1 ]; then
-       %{_sbindir}/seamonkey-chrome+xpcom-generate
-fi
+%{_libdir}/%{name}/register || :
 %update_browser_plugins
+%update_desktop_database
 
 %postun
-[ ! -x %{_sbindir}/seamonkey-chrome+xpcom-generate ] || %{_sbindir}/seamonkey-chrome+xpcom-generate
 if [ "$1" = 0 ]; then
        %update_browser_plugins
 fi
 
-%post mailnews -p %{_sbindir}/%{name}-chrome+xpcom-generate
-%postun mailnews -p %{_sbindir}/%{name}-chrome+xpcom-generate
-
-%post addon-enigmail -p %{_sbindir}/%{name}-chrome+xpcom-generate
-%postun addon-enigmail -p %{_sbindir}/%{name}-chrome+xpcom-generate
-
-%post chat -p %{_sbindir}/%{name}-chrome+xpcom-generate
-%postun chat -p %{_sbindir}/%{name}-chrome+xpcom-generate
-
-%post js-debugger -p %{_sbindir}/%{name}-chrome+xpcom-generate
-%postun js-debugger -p %{_sbindir}/%{name}-chrome+xpcom-generate
-
-%post dom-inspector -p %{_sbindir}/%{name}-chrome+xpcom-generate
-%postun dom-inspector -p %{_sbindir}/%{name}-chrome+xpcom-generate
-
-%post gnomevfs -p %{_sbindir}/%{name}-chrome+xpcom-generate
-%postun gnomevfs -p %{_sbindir}/%{name}-chrome+xpcom-generate
-
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/seamonkey
-%attr(744,root,root) %{_sbindir}/%{name}-chrome+xpcom-generate
 
 # browser plugins v2
 %{_browserpluginsconfdir}/browsers.d/%{name}.*
 %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
 
-%dir %{_chromedir}
-%dir %{_seamonkeydir}
-%dir %{_seamonkeydir}/components
-%dir %{_seamonkeydir}/defaults
-%dir %{_seamonkeydir}/dictionaries
-%dir %{_seamonkeydir}/greprefs
-%dir %{_seamonkeydir}/icons
-%dir %{_seamonkeydir}/plugins
-%dir %{_seamonkeydir}/res
-%dir %{_seamonkeydir}/searchplugins
-%dir %{_datadir}/%{name}
+%dir %{_libdir}/%{name}
+%if %{without xulrunner}
+%attr(755,root,root) %{_libdir}/%{name}/libmozalloc.so
+%attr(755,root,root) %{_libdir}/%{name}/libmozjs.so
+%attr(755,root,root) %{_libdir}/%{name}/libxpcom.so
+%attr(755,root,root) %{_libdir}/%{name}/libxul.so
+%endif
+
+%{_libdir}/%{name}/blocklist.xml
+%attr(755,root,root) %{_libdir}/%{name}/register
+
+%if %{with crashreporter}
+%{_libdir}/%{name}/crashreporter
+%{_libdir}/%{name}/crashreporter-override.ini
+%{_libdir}/%{name}/crashreporter.ini
+%{_libdir}/%{name}/Throbber-small.gif
+%endif
+
+# config?
+%{_libdir}/%{name}/application.ini
+%{_libdir}/%{name}/chrome.manifest
+
+%dir %{_libdir}/%{name}/components
+
+%{_libdir}/%{name}/components/FeedConverter.js
+%{_libdir}/%{name}/components/FeedWriter.js
+%{_libdir}/%{name}/components/Weave.js
+%{_libdir}/%{name}/components/WebContentConverter.js
+%{_libdir}/%{name}/components/browser.xpt
+%{_libdir}/%{name}/components/nsBrowserContentHandler.js
+%{_libdir}/%{name}/components/nsSessionStartup.js
+%{_libdir}/%{name}/components/nsSessionStore.js
+%{_libdir}/%{name}/components/nsSidebar.js
+
+%{_libdir}/%{name}/components/components.manifest
+%{_libdir}/%{name}/components/interfaces.manifest
 
-%attr(755,root,root) %{_seamonkeydir}/libgfxpsshar.so
-%attr(755,root,root) %{_seamonkeydir}/libgkgfx.so
-%attr(755,root,root) %{_seamonkeydir}/libgtkembedmoz.so
-%attr(755,root,root) %{_seamonkeydir}/libgtkxtbin.so
-%attr(755,root,root) %{_seamonkeydir}/libjsj.so
-%attr(755,root,root) %{_seamonkeydir}/libldap50.so
-%attr(755,root,root) %{_seamonkeydir}/libmozjs.so
-%attr(755,root,root) %{_seamonkeydir}/libprldap50.so
-%attr(755,root,root) %{_seamonkeydir}/libssldap50.so
-%attr(755,root,root) %{_seamonkeydir}/libxlibrgb.so
-%attr(755,root,root) %{_seamonkeydir}/libxpcom.so
-%attr(755,root,root) %{_seamonkeydir}/libxpcom_compat.so
-%attr(755,root,root) %{_seamonkeydir}/libxpcom_core.so
-%attr(755,root,root) %{_seamonkeydir}/libxpistub.so
-
-%attr(755,root,root) %{_seamonkeydir}/seamonkey-bin
-%attr(755,root,root) %{_seamonkeydir}/regchrome
-%attr(755,root,root) %{_seamonkeydir}/regxpcom
-%attr(755,root,root) %{_seamonkeydir}/xpidl
-
-%attr(755,root,root) %{_seamonkeydir}/libnssckbi.so
-
-%attr(755,root,root) %{_seamonkeydir}/components/libaccessibility.so
-%attr(755,root,root) %{_seamonkeydir}/components/libappcomps.so
-%attr(755,root,root) %{_seamonkeydir}/components/libauth.so
-%attr(755,root,root) %{_seamonkeydir}/components/libautoconfig.so
-%attr(755,root,root) %{_seamonkeydir}/components/libcaps.so
-%attr(755,root,root) %{_seamonkeydir}/components/libchrome.so
-%attr(755,root,root) %{_seamonkeydir}/components/libcomposer.so
-%attr(755,root,root) %{_seamonkeydir}/components/libcookie.so
-%attr(755,root,root) %{_seamonkeydir}/components/libdocshell.so
-%attr(755,root,root) %{_seamonkeydir}/components/libeditor.so
-%attr(755,root,root) %{_seamonkeydir}/components/libembedcomponents.so
-%attr(755,root,root) %{_seamonkeydir}/components/libfileview.so
-%attr(755,root,root) %{_seamonkeydir}/components/libgfx_gtk.so
-%attr(755,root,root) %{_seamonkeydir}/components/libgfxps.so
-%attr(755,root,root) %{_seamonkeydir}/components/libgfxxprint.so
-%attr(755,root,root) %{_seamonkeydir}/components/libgkdebug.so
-%attr(755,root,root) %{_seamonkeydir}/components/libgklayout.so
-%attr(755,root,root) %{_seamonkeydir}/components/libgkplugin.so
-%attr(755,root,root) %{_seamonkeydir}/components/libhtmlpars.so
-%attr(755,root,root) %{_seamonkeydir}/components/libi18n.so
-%attr(755,root,root) %{_seamonkeydir}/components/libimglib2.so
-%{?with_gnomeui:%attr(755,root,root) %{_seamonkeydir}/components/libimgicon.so}
-%attr(755,root,root) %{_seamonkeydir}/components/libjar50.so
-%attr(755,root,root) %{_seamonkeydir}/components/libjsd.so
-%attr(755,root,root) %{_seamonkeydir}/components/libmork.so
-%attr(755,root,root) %{_seamonkeydir}/components/libmozfind.so
-%attr(755,root,root) %{_seamonkeydir}/components/libmozldap.so
-%attr(755,root,root) %{_seamonkeydir}/components/libmyspell.so
-%attr(755,root,root) %{_seamonkeydir}/components/libnecko.so
-%attr(755,root,root) %{_seamonkeydir}/components/libnecko2.so
-%attr(755,root,root) %{_seamonkeydir}/components/libnkdatetime.so
-%attr(755,root,root) %{_seamonkeydir}/components/libnkfinger.so
-%attr(755,root,root) %{_seamonkeydir}/components/libnsappshell.so
-%attr(755,root,root) %{_seamonkeydir}/components/libnsprefm.so
-%attr(755,root,root) %{_seamonkeydir}/components/liboji.so
-%attr(755,root,root) %{_seamonkeydir}/components/libp3p.so
-%attr(755,root,root) %{_seamonkeydir}/components/libpermissions.so
-%attr(755,root,root) %{_seamonkeydir}/components/libpipboot.so
-%attr(755,root,root) %{_seamonkeydir}/components/libpipnss.so
-%attr(755,root,root) %{_seamonkeydir}/components/libpippki.so
-%attr(755,root,root) %{_seamonkeydir}/components/libpref.so
-%attr(755,root,root) %{_seamonkeydir}/components/libprofile.so
-%attr(755,root,root) %{_seamonkeydir}/components/librdf.so
-%attr(755,root,root) %{_seamonkeydir}/components/libremoteservice.so
-%attr(755,root,root) %{_seamonkeydir}/components/libschemavalidation.so
-%attr(755,root,root) %{_seamonkeydir}/components/libsearchservice.so
-%attr(755,root,root) %{_seamonkeydir}/components/libspellchecker.so
-%attr(755,root,root) %{_seamonkeydir}/components/libsql.so
-%attr(755,root,root) %{_seamonkeydir}/components/libsroaming.so
-%attr(755,root,root) %{_seamonkeydir}/components/libstoragecomps.so
-%attr(755,root,root) %{_seamonkeydir}/components/libsystem-pref.so
-%attr(755,root,root) %{_seamonkeydir}/components/libtransformiix.so
-%attr(755,root,root) %{_seamonkeydir}/components/libtxmgr.so
-%attr(755,root,root) %{_seamonkeydir}/components/libtypeaheadfind.so
-%attr(755,root,root) %{_seamonkeydir}/components/libuconv.so
-%attr(755,root,root) %{_seamonkeydir}/components/libucvmath.so
-%attr(755,root,root) %{_seamonkeydir}/components/libuniversalchardet.so
-%attr(755,root,root) %{_seamonkeydir}/components/libwallet.so
-%attr(755,root,root) %{_seamonkeydir}/components/libwalletviewers.so
-%attr(755,root,root) %{_seamonkeydir}/components/libwebbrwsr.so
-%attr(755,root,root) %{_seamonkeydir}/components/libwebsrvcs.so
-%attr(755,root,root) %{_seamonkeydir}/components/libwidget_gtk2.so
-%attr(755,root,root) %{_seamonkeydir}/components/libxforms.so
-%attr(755,root,root) %{_seamonkeydir}/components/libxmlextras.so
-%attr(755,root,root) %{_seamonkeydir}/components/libxpcom_compat_c.so
-%attr(755,root,root) %{_seamonkeydir}/components/libxpconnect.so
-%attr(755,root,root) %{_seamonkeydir}/components/libxpinstall.so
-%attr(755,root,root) %{_seamonkeydir}/components/libxremoteservice.so
-
-%{_seamonkeydir}/components/access*.xpt
-%{_seamonkeydir}/components/alerts.xpt
-%{_seamonkeydir}/components/appshell.xpt
-%{_seamonkeydir}/components/appstartup.xpt
-%{_seamonkeydir}/components/autocomplete.xpt
-%{_seamonkeydir}/components/autoconfig.xpt
-%{_seamonkeydir}/components/bookmarks.xpt
-%{_seamonkeydir}/components/caps.xpt
-%{_seamonkeydir}/components/chardet.xpt
-%{_seamonkeydir}/components/chrome.xpt
-%{_seamonkeydir}/components/commandhandler.xpt
-%{_seamonkeydir}/components/composer.xpt
-%{_seamonkeydir}/components/content*.xpt
-%{_seamonkeydir}/components/cookie.xpt
-%{_seamonkeydir}/components/directory.xpt
-%{_seamonkeydir}/components/docshell.xpt
-%{_seamonkeydir}/components/dom*.xpt
-%{_seamonkeydir}/components/downloadmanager.xpt
-%{_seamonkeydir}/components/editor.xpt
-%{_seamonkeydir}/components/embed_base.xpt
-%{_seamonkeydir}/components/extensions.xpt
-%{_seamonkeydir}/components/exthandler.xpt
-%{_seamonkeydir}/components/find.xpt
-%{_seamonkeydir}/components/filepicker.xpt
-%{_seamonkeydir}/components/gfx*.xpt
-%{?with_svg:%{_seamonkeydir}/components/gksvgrenderer.xpt}
-%{_seamonkeydir}/components/history.xpt
-%{_seamonkeydir}/components/htmlparser.xpt
-%{?with_gnomeui:%{_seamonkeydir}/components/imgicon.xpt}
-%{_seamonkeydir}/components/imglib2.xpt
-%{_seamonkeydir}/components/intl.xpt
-%{_seamonkeydir}/components/jar.xpt
-%{_seamonkeydir}/components/js*.xpt
-%{_seamonkeydir}/components/layout*.xpt
-%{_seamonkeydir}/components/locale.xpt
-%{_seamonkeydir}/components/lwbrk.xpt
-%{_seamonkeydir}/components/mimetype.xpt
-%{_seamonkeydir}/components/moz*.xpt
-%{_seamonkeydir}/components/necko*.xpt
-%{_seamonkeydir}/components/oji.xpt
-%{_seamonkeydir}/components/p3p.xpt
-%{_seamonkeydir}/components/pipboot.xpt
-%{_seamonkeydir}/components/pipnss.xpt
-%{_seamonkeydir}/components/pippki.xpt
-%{_seamonkeydir}/components/plugin.xpt
-%{_seamonkeydir}/components/pref.xpt
-%{_seamonkeydir}/components/prefetch.xpt
-%{_seamonkeydir}/components/prefmigr.xpt
-%{_seamonkeydir}/components/profile.xpt
-%{_seamonkeydir}/components/progressDlg.xpt
-%{_seamonkeydir}/components/proxyObjInst.xpt
-%{_seamonkeydir}/components/rdf.xpt
-%{_seamonkeydir}/components/related.xpt
-%{_seamonkeydir}/components/saxparser.xpt
-%{_seamonkeydir}/components/search.xpt
-%{_seamonkeydir}/components/schemavalidation.xpt
-%{_seamonkeydir}/components/shistory.xpt
-%{_seamonkeydir}/components/signonviewer.xpt
-%{_seamonkeydir}/components/spellchecker.xpt
-%{_seamonkeydir}/components/sql.xpt
-%{_seamonkeydir}/components/storage.xpt
-%{_seamonkeydir}/components/toolkitremote.xpt
-%{_seamonkeydir}/components/txmgr.xpt
-%{_seamonkeydir}/components/txtsvc.xpt
-%{_seamonkeydir}/components/typeaheadfind.xpt
-%{_seamonkeydir}/components/uconv.xpt
-%{_seamonkeydir}/components/unicharutil.xpt
-%{_seamonkeydir}/components/uriloader.xpt
-%{_seamonkeydir}/components/urlformatter.xpt
-%{_seamonkeydir}/components/wallet*.xpt
-%{_seamonkeydir}/components/webBrowser_core.xpt
-%{_seamonkeydir}/components/webbrowserpersist.xpt
-%{_seamonkeydir}/components/webshell_idls.xpt
-%{_seamonkeydir}/components/websrvcs.xpt
-%{_seamonkeydir}/components/widget.xpt
-%{_seamonkeydir}/components/windowds.xpt
-%{_seamonkeydir}/components/windowwatcher.xpt
-%{_seamonkeydir}/components/x*.xpt
-
-%{_seamonkeydir}/components/jsconsole-clhandler.js
-%{_seamonkeydir}/components/nsCloseAllWindows.js
-%{_seamonkeydir}/components/nsComposerCmdLineHandler.js
-%{_seamonkeydir}/components/nsDictionary.js
-%{_seamonkeydir}/components/nsDownloadProgressListener.js
-%{_seamonkeydir}/components/nsFilePicker.js
-%{_seamonkeydir}/components/nsHelperAppDlg.js
-%{_seamonkeydir}/components/nsInterfaceInfoToIDL.js
-%{_seamonkeydir}/components/nsKillAll.js
-%{_seamonkeydir}/components/nsProgressDialog.js
-%{_seamonkeydir}/components/nsProxyAutoConfig.js
-%{_seamonkeydir}/components/nsResetPref.js
-%{_seamonkeydir}/components/nsSchemaValidatorRegexp.js
-%{_seamonkeydir}/components/nsSidebar.js
-%{_seamonkeydir}/components/nsUpdateNotifier.js
-%{_seamonkeydir}/components/nsURLFormatter.js
-%{_seamonkeydir}/components/nsXmlRpcClient.js
-%{_seamonkeydir}/components/xulappinfo.js
-
-# not *.dat, so check-files can catch any new files
-# (and they won't be just silently placed empty in rpm)
-%ghost %{_seamonkeydir}/components/compreg.dat
-%ghost %{_seamonkeydir}/components/xpti.dat
-
-%dir %{_datadir}/%{name}/chrome
-%{_datadir}/%{name}/chrome/US.jar
-%{_datadir}/%{name}/chrome/classic.jar
-%{_datadir}/%{name}/chrome/comm.jar
-%{_datadir}/%{name}/chrome/content-packs.jar
-%{_datadir}/%{name}/chrome/cview.jar
-%{_datadir}/%{name}/chrome/embed-sample.jar
-%{_datadir}/%{name}/chrome/en-US.jar
-%{_datadir}/%{name}/chrome/en-unix.jar
-%{_datadir}/%{name}/chrome/help.jar
-%{_datadir}/%{name}/chrome/layoutdebug.jar
-%{_datadir}/%{name}/chrome/modern.jar
-%{_datadir}/%{name}/chrome/pipnss.jar
-%{_datadir}/%{name}/chrome/pippki.jar
-%{_datadir}/%{name}/chrome/reporter.jar
-%{_datadir}/%{name}/chrome/sql.jar
-%{_datadir}/%{name}/chrome/sroaming.jar
-%{_datadir}/%{name}/chrome/tasks.jar
-%{_datadir}/%{name}/chrome/toolkit.jar
-%{_datadir}/%{name}/chrome/xforms.jar
-
-%ghost %{_datadir}/%{name}/chrome/chrome.rdf
-%ghost %{_datadir}/%{name}/chrome/overlays.rdf
-# not generated automatically ?
-%{_datadir}/%{name}/chrome/stylesheets.rdf
-%{_datadir}/%{name}/chrome/chromelist.txt
-%{_datadir}/%{name}/chrome/icons
-%exclude %{_datadir}/%{name}/chrome/icons/default/abcardWindow*.xpm
-%exclude %{_datadir}/%{name}/chrome/icons/default/addressbookWindow*.xpm
-%exclude %{_datadir}/%{name}/chrome/icons/default/chatzilla-window*.xpm
-%exclude %{_datadir}/%{name}/chrome/icons/default/messengerWindow*.xpm
-%exclude %{_datadir}/%{name}/chrome/icons/default/msgcomposeWindow*.xpm
-%exclude %{_datadir}/%{name}/chrome/icons/default/venkman-window*.xpm
-%exclude %{_datadir}/%{name}/chrome/icons/default/winInspectorMain*.xpm
-
-%{_datadir}/%{name}/chrome/%{name}-installed-chrome.txt
-%ghost %{_datadir}/%{name}/chrome/installed-chrome.txt
+%if %{without xulrunner}
+%{_libdir}/%{name}/platform.ini
+%{_libdir}/%{name}/components/ConsoleAPI.js
+%{_libdir}/%{name}/components/FeedProcessor.js
+%{_libdir}/%{name}/components/GPSDGeolocationProvider.js
+%{_libdir}/%{name}/components/NetworkGeolocationProvider.js
+%{_libdir}/%{name}/components/PlacesCategoriesStarter.js
+%{_libdir}/%{name}/components/TelemetryPing.js
+%{_libdir}/%{name}/components/addonManager.js
+%{_libdir}/%{name}/components/amContentHandler.js
+%{_libdir}/%{name}/components/amWebInstallListener.js
+%{_libdir}/%{name}/components/contentAreaDropListener.js
+%{_libdir}/%{name}/components/contentSecurityPolicy.js
+%{_libdir}/%{name}/components/crypto-SDR.js
+%{_libdir}/%{name}/components/jsconsole-clhandler.js
+%{_libdir}/%{name}/components/nsBadCertHandler.js
+%{_libdir}/%{name}/components/nsBlocklistService.js
+%{_libdir}/%{name}/components/nsContentDispatchChooser.js
+%{_libdir}/%{name}/components/nsContentPrefService.js
+%{_libdir}/%{name}/components/nsDefaultCLH.js
+%{_libdir}/%{name}/components/nsFilePicker.js
+%{_libdir}/%{name}/components/nsFormAutoComplete.js
+%{_libdir}/%{name}/components/nsFormHistory.js
+%{_libdir}/%{name}/components/nsHandlerService.js
+%{_libdir}/%{name}/components/nsHelperAppDlg.js
+%{_libdir}/%{name}/components/nsINIProcessor.js
+%{_libdir}/%{name}/components/nsInputListAutoComplete.js
+%{_libdir}/%{name}/components/nsLivemarkService.js
+%{_libdir}/%{name}/components/nsLoginInfo.js
+%{_libdir}/%{name}/components/nsLoginManager.js
+%{_libdir}/%{name}/components/nsLoginManagerPrompter.js
+%{_libdir}/%{name}/components/nsPlacesAutoComplete.js
+%{_libdir}/%{name}/components/nsPlacesExpiration.js
+%{_libdir}/%{name}/components/nsPrompter.js
+%{_libdir}/%{name}/components/nsProxyAutoConfig.js
+%{_libdir}/%{name}/components/nsSearchService.js
+%{_libdir}/%{name}/components/nsSearchSuggestions.js
+%{_libdir}/%{name}/components/nsTaggingService.js
+%{_libdir}/%{name}/components/nsURLFormatter.js
+%{_libdir}/%{name}/components/nsUpdateTimerManager.js
+%{_libdir}/%{name}/components/nsWebHandlerApp.js
+%{_libdir}/%{name}/components/storage-Legacy.js
+%{_libdir}/%{name}/components/storage-mozStorage.js
+%{_libdir}/%{name}/components/txEXSLTRegExFunctions.js
+%endif
+
+%{_libdir}/%{name}/components/nsAbout.js
+%{_libdir}/%{name}/components/nsAboutCertError.js
+%{_libdir}/%{name}/components/nsAboutData.js
+%{_libdir}/%{name}/components/nsAboutFeeds.js
+%{_libdir}/%{name}/components/nsAboutLife.js
+%{_libdir}/%{name}/components/nsAboutRights.js
+%{_libdir}/%{name}/components/nsAboutSessionRestore.js
+%{_libdir}/%{name}/components/nsAboutSyncTabs.js
+%{_libdir}/%{name}/components/nsComposerCmdLineHandler.js
+%{_libdir}/%{name}/components/nsSuiteDownloadManagerUI.js
+%{_libdir}/%{name}/components/nsSuiteGlue.js
+%{_libdir}/%{name}/components/nsTypeAheadFind.js
+%{_libdir}/%{name}/components/smileApplication.js
+
+%if %{without xulrunner}
+%attr(755,root,root) %{_libdir}/%{name}/components/libdbusservice.so
+%endif
 
+%if %{without xulrunner}
+%attr(755,root,root) %{_libdir}/%{name}/components/libmozgnome.so
+%endif
+
+%attr(755,root,root) %{_libdir}/%{name}/components/libsuite.so
+
+%attr(755,root,root) %{_libdir}/%{name}/seamonkey
+%dir %{_libdir}/%{name}/plugins
+%if %{without xulrunner}
+%attr(755,root,root) %{_libdir}/%{name}/run-mozilla.sh
+%attr(755,root,root) %{_libdir}/%{name}/seamonkey-bin
+%attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client
+%attr(755,root,root) %{_libdir}/%{name}/plugin-container
+%endif
+
+# symlinks
+%{_libdir}/%{name}/chrome
+%{_libdir}/%{name}/defaults
+%{_libdir}/%{name}/modules
+%{_libdir}/%{name}/searchplugins
+%if %{with xulrunner}
+%{_libdir}/%{name}/xulrunner
+%else
+%{_libdir}/%{name}/dictionaries
+%{_libdir}/%{name}/hyphenation
+%{_libdir}/%{name}/greprefs.js
+%{_libdir}/%{name}/res
+%endif
+
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/chrome
 %{_datadir}/%{name}/defaults
-%{_datadir}/%{name}/dictionaries
-%{_datadir}/%{name}/greprefs
-%exclude %{_datadir}/%{name}/defaults/pref/inspector.js
-%{_datadir}/%{name}/icons
-%{_datadir}/%{name}/res
+%{_datadir}/%{name}/modules
 %{_datadir}/%{name}/searchplugins
+%if %{without xulrunner}
+%{_datadir}/%{name}/greprefs.js
+%{_datadir}/%{name}/res
+%endif
+
+%dir %{_datadir}/%{name}/extensions
+%dir %{_libdir}/%{name}/extensions
+# the signature of the default theme
+%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
+%{_libdir}/%{name}/extensions/modern@themes.mozilla.org.xpi
+
+# files created by seamonkey -register
+%ghost %{_libdir}/%{name}/components/compreg.dat
+%ghost %{_libdir}/%{name}/components/xpti.dat
+
+%{_libdir}/%{name}/components/glautocomp.js
+%{_libdir}/%{name}/components/jsmimeemitter.js
+%{_libdir}/%{name}/components/mail.xpt
+%{_libdir}/%{name}/components/mdn-service.js
+%{_libdir}/%{name}/components/msgAsyncPrompter.js
+%{_libdir}/%{name}/components/newsblog.js
+%{_libdir}/%{name}/components/nsAbAutoCompleteMyDomain.js
+%{_libdir}/%{name}/components/nsAbAutoCompleteSearch.js
+%{_libdir}/%{name}/components/nsAbLDAPAttributeMap.js
+%{_libdir}/%{name}/components/nsLDAPProtocolHandler.js
+%{_libdir}/%{name}/components/nsMailNewsCommandLineHandler.js
+%{_libdir}/%{name}/components/nsMsgTraitService.js
+%{_libdir}/%{name}/components/nsSMTPProtocolHandler.js
+%{_libdir}/%{name}/components/offlineStartup.js
+%{_libdir}/%{name}/components/smime-service.js
+
+%{_libdir}/%{name}/isp
+%dir %{_datadir}/%{name}/isp
+%{_datadir}/%{name}/isp/Bogofilter.sfd
+%{_datadir}/%{name}/isp/DSPAM.sfd
+%{_datadir}/%{name}/isp/POPFile.sfd
+%{_datadir}/%{name}/isp/SpamAssassin.sfd
+%{_datadir}/%{name}/isp/SpamPal.sfd
+%{_datadir}/%{name}/isp/movemail.rdf
+%{_datadir}/%{name}/isp/rss.rdf
 
 %{_pixmapsdir}/seamonkey.png
 %{_desktopdir}/%{name}.desktop
 %{_desktopdir}/%{name}-composer.desktop
+%{_desktopdir}/%{name}-mail.desktop
 
-%files mailnews
+%if %{with lightning}
+%files addon-lightning
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_seamonkeydir}/libmsgbaseutil.so
-%attr(755,root,root) %{_seamonkeydir}/components/libaddrbook.so
-%attr(755,root,root) %{_seamonkeydir}/components/libbayesflt.so
-%attr(755,root,root) %{_seamonkeydir}/components/libimpText.so
-%attr(755,root,root) %{_seamonkeydir}/components/libimpComm4xMail.so
-%attr(755,root,root) %{_seamonkeydir}/components/libimport.so
-%attr(755,root,root) %{_seamonkeydir}/components/liblocalmail.so
-%attr(755,root,root) %{_seamonkeydir}/components/libmailnews.so
-%attr(755,root,root) %{_seamonkeydir}/components/libmailview.so
-%attr(755,root,root) %{_seamonkeydir}/components/libmime.so
-%attr(755,root,root) %{_seamonkeydir}/components/libmimeemitter.so
-%attr(755,root,root) %{_seamonkeydir}/components/libmsg*.so
-%attr(755,root,root) %{_seamonkeydir}/components/libvcard.so
-
-%{_seamonkeydir}/components/addrbook.xpt
-%{_seamonkeydir}/components/impComm4xMail.xpt
-%{_seamonkeydir}/components/import.xpt
-%{_seamonkeydir}/components/mailnews.xpt
-%{_seamonkeydir}/components/mailview.xpt
-%{_seamonkeydir}/components/mime.xpt
-%{_seamonkeydir}/components/msg*.xpt
-
-%{_seamonkeydir}/components/mdn-service.js
-%{_seamonkeydir}/components/nsAbLDAPAttributeMap.js
-%{_seamonkeydir}/components/nsLDAPPrefsService.js
-%{_seamonkeydir}/components/offlineStartup.js
-%{_seamonkeydir}/components/smime-service.js
-
-%{_datadir}/%{name}/chrome/messenger.jar
-
-%{_datadir}/%{name}/chrome/icons/default/abcardWindow*.xpm
-%{_datadir}/%{name}/chrome/icons/default/addressbookWindow*.xpm
-%{_datadir}/%{name}/chrome/icons/default/messengerWindow*.xpm
-%{_datadir}/%{name}/chrome/icons/default/msgcomposeWindow*.xpm
-
-%{_desktopdir}/%{name}-mail.desktop
+%dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}
+%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/application.ini
+%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome
+%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest
+%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/defaults
+%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/install.rdf
+%dir %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components
+%attr(755,root,root) %{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.so
+%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.js
+%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.manifest
+%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/components/*.xpt
+%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/modules
+%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/calendar-js
+%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/timezones.sqlite
+%{_libdir}/%{name}/extensions/calendar-timezones@mozilla.org
+%endif
 
+%if %{with enigmail}
 %files addon-enigmail
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_seamonkeydir}/components/libenigmime.so
-%{_seamonkeydir}/components/enigmail.xpt
-%{_seamonkeydir}/components/enigmime.xpt
-%{_seamonkeydir}/components/ipc.xpt
-%{_seamonkeydir}/components/enigmail.js
-%{_seamonkeydir}/components/enigprefs-service.js
-%{_datadir}/%{name}/chrome/enigmail-en-US.jar
-%{_datadir}/%{name}/chrome/enigmail-locale.jar
-%{_datadir}/%{name}/chrome/enigmail-skin-tbird.jar
-%{_datadir}/%{name}/chrome/enigmail-skin.jar
-%{_datadir}/%{name}/chrome/enigmail.jar
-%{_datadir}/%{name}/chrome/enigmime.jar
+%dir %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}
+%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults
+%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome
+%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome.manifest
+%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/install.rdf
+%dir %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components
+%attr(755,root,root) %{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/*.so
+%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/*.xpt
+%{_libdir}/%{name}/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/*.js
+%endif
 
 %files chat
 %defattr(644,root,root,755)
-%{_seamonkeydir}/components/chatzilla-service.js
-%{_datadir}/%{name}/chrome/chatzilla.jar
-%{_datadir}/%{name}/chrome/icons/default/chatzilla-window*.xpm
+%{_libdir}/%{name}/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}.xpi
 %{_desktopdir}/%{name}-chat.desktop
 
 %files js-debugger
 %defattr(644,root,root,755)
-%{_seamonkeydir}/components/venkman-service.js
-%{_datadir}/%{name}/chrome/venkman.jar
-%{_datadir}/%{name}/chrome/icons/default/venkman-window*.xpm
+%{_libdir}/%{name}/extensions/{f13b157f-b174-47e7-a34d-4815ddfdfeb8}.xpi
 %{_desktopdir}/%{name}-venkman.desktop
 
 %files dom-inspector
 %defattr(644,root,root,755)
-%{_seamonkeydir}/components/inspector.xpt
-%{_seamonkeydir}/components/inspector-cmdline.js
-%{_datadir}/%{name}/chrome/inspector.jar
-%{_datadir}/%{name}/chrome/icons/default/winInspectorMain*.xpm
-%{_datadir}/%{name}/defaults/pref/inspector.js
-
-%if %{with gnomevfs}
-%files gnomevfs
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_seamonkeydir}/components/libnkgnomevfs.so
-%endif
+%{_libdir}/%{name}/extensions/inspector@mozilla.org.xpi
This page took 0.111639 seconds and 4 git commands to generate.