X-Git-Url: http://git.pld-linux.org/?p=packages%2Fseamonkey.git;a=blobdiff_plain;f=seamonkey.spec;h=cbdbe895339fb00dd7f65e5b20837918480fee41;hp=95fc08c081e727b037b32c35f904eb4177f1e252;hb=3cab66c;hpb=5d0f79b7e962b2a75f29748b759c7edd56d0c985 diff --git a/seamonkey.spec b/seamonkey.spec index 95fc08c..cbdbe89 100644 --- a/seamonkey.spec +++ b/seamonkey.spec @@ -1,26 +1,34 @@ +# TODO: +# - consider --enable-libproxy +# - do something with *.rdf file, there if file conflict with other lang packages # # Conditional build: -%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_without kerberos # krb5 support +%bcond_without lightning # Lightning calendar +%bcond_without gold # gold linker +%bcond_with crashreporter # report crashes to crash-stats.mozilla.com +%bcond_with system_cairo # build with system cairo (not supported in 2.53.9+) %bcond_with tests # enable tests (whatever they check) -%bcond_without kerberos # disable krb5 support +%bcond_with lowmem # lower memory requirements -%if %{without gnome} -%undefine with_gnomeui +%ifarch %{ix86} %{arm} aarch64 +%define with_lowmem 1 +%endif +%ifarch %{ix86} +# /usr/bin/ld.gold: internal error in relocate_section, at i386.cc:3683 (seamonkey 2.53.9, binutils 2.37-1) +%undefine with_gold %endif -%define enigmail_ver 1.4.1 -%define nspr_ver 4.9 -%define nss_ver 3.13.3 -%define xulrunner_ver 12.0 +%define nspr_ver 4.25 +%define nss_ver 3.53.1 -%if %{without xulrunner} -# The actual sqlite version (see RHBZ#480989): -%define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR) +# UPDATING TRANSALTIONS: +%if 0 +rm -vf *.xpi +./builder -g +V=2.49.5 +U=http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/$V/langpacks/linux-i686/ +curl -s $U | sed -ne 's,.*href="\([^"]\+\)/".*,'"$U"'xpi/\1.xpi,p' %endif Summary: SeaMonkey Community Edition - web browser @@ -28,105 +36,178 @@ 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.9.1 +Version: 2.53.9.1 Release: 1 -License: MPL 1.1 or GPL v2+ or LGPL v2.1+ +License: MPL v2.0 Group: X11/Applications/Networking -Source0: ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/source/%{name}-%{version}.source.tar.bz2 -# Source0-md5: 8dd18d93a6570c3c9f3873bb177ccc6b -Source1: http://www.mozilla-enigmail.org/download/source/enigmail-%{enigmail_ver}.tar.gz -# 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}-agent.patch -Patch2: %{name}-glueload-fix.patch -Patch3: system-mozldap.patch -Patch4: makefile.patch -Patch5: system-cairo.patch -URL: http://www.seamonkey-project.org/ +Source0: http://releases.mozilla.org/pub/seamonkey/releases/%{version}/source/%{name}-%{version}.source.tar.xz +# Source0-md5: 70e06d388eb796dc0f8b847794eabea0 +Source4: %{name}.desktop +Source5: %{name}-composer.desktop +Source7: %{name}-mail.desktop +Source9: %{name}.sh +Source100: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.cs.langpack.xpi +# Source100-md5: 437a2d1bbad026dc74a7c0fcbb7424fc +Source101: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.de.langpack.xpi +# Source101-md5: 7276fae4dafbe3a08081bcd6898a9bde +Source102: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.el.langpack.xpi +# Source102-md5: 883a09a2e0072256a6032fbcf88f7d2a +Source103: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.en-GB.langpack.xpi +# Source103-md5: cb02b909a34818f99a819251eb320a32 +Source104: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.en-US.langpack.xpi +# Source104-md5: e17799319431fa85c4cb4f8220cd4079 +Source105: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.es-AR.langpack.xpi +# Source105-md5: ccd4098f1663a35bb98c14f28248c9b1 +Source106: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.es-ES.langpack.xpi +# Source106-md5: 87af49b1bc8eba578731cce32f2624a8 +Source107: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.fi.langpack.xpi +# Source107-md5: 64bc8f2fb6079fa5d5060b68b6f38fea +Source108: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.fr.langpack.xpi +# Source108-md5: 0d227930867da87a56eb336a505b2eaf +Source109: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.hu.langpack.xpi +# Source109-md5: 6555c1e14ef98c0b81cd6031158214ef +Source110: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.it.langpack.xpi +# Source110-md5: 41718a184f31a2cd0289bcba147346a1 +Source111: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.ja.langpack.xpi +# Source111-md5: 88650255b12d79e18936d2c7efbe2973 +Source112: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.ka.langpack.xpi +# Source112-md5: be5378ba5752dbfdde45bc4b11d4e898 +Source113: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.nb-NO.langpack.xpi +# Source113-md5: 5cb424fae93729ea265c5706b73cdeb2 +Source114: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.nl.langpack.xpi +# Source114-md5: aaaa34f083d0d9ff79b6e1afa23165e0 +Source115: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.pl.langpack.xpi +# Source115-md5: b5543e675686bf2588e872be47930d27 +Source116: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.pt-BR.langpack.xpi +# Source116-md5: 0494ed28449d8a3dd68357747b9b4c90 +Source117: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.pt-PT.langpack.xpi +# Source117-md5: 9d60182b448a5766abe3db4a84987fc7 +Source118: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.ru.langpack.xpi +# Source118-md5: 12c353c43e711e1c338a91355e57631a +Source119: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.sk.langpack.xpi +# Source119-md5: 1b3c55139e9be85ebc9c314fc55fcb92 +Source120: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.sv-SE.langpack.xpi +# Source120-md5: 4c8468e94ebfa61eced9e3ac2818e40d +Source121: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.zh-CN.langpack.xpi +# Source121-md5: 4a96e31e56b5cc1e24c3f266cfed4dbe +Source122: http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/%{version}/langpack/seamonkey-%{version}.zh-TW.langpack.xpi +# Source122-md5: 21fb4db28ec66653b6bf26043f5681e8 +Patch1: %{name}-mozilla-revert-1332139.patch +Patch2: %{name}-pld-branding.patch +Patch3: %{name}-enable-addons.patch +# Edit patch below and restore --system-site-packages when system virtualenv gets 1.7 upgrade +Patch4: %{name}-system-virtualenv.patch +Patch5: %{name}-icu-detect.patch +URL: https://www.seamonkey-project.org/ BuildRequires: GConf2-devel >= 1.2.1 BuildRequires: OpenGL-devel BuildRequires: alsa-lib-devel -BuildRequires: automake +BuildRequires: autoconf2_13 >= 2.13 BuildRequires: bzip2-devel -BuildRequires: cairo-devel >= 1.10.2-5 +%{?with_system_cairo:BuildRequires: cairo-devel >= 1.10.2-5} +BuildRequires: cargo BuildRequires: dbus-glib-devel >= 0.60 +BuildRequires: fontconfig-devel >= 1:2.7.0 BuildRequires: freetype-devel >= 1:2.1.8 -BuildRequires: glib2-devel >= 1:2.18 -BuildRequires: gtk+2-devel >= 2:2.10 +BuildRequires: glib2-devel >= 1:2.22 +BuildRequires: gtk+2-devel >= 2:2.18 +BuildRequires: gtk+3-devel >= 3.4.0 %{?with_kerberos:BuildRequires: heimdal-devel >= 0.7.1} BuildRequires: hunspell-devel -BuildRequires: libIDL-devel >= 0.8.0 -BuildRequires: libdnet-devel +# DECnet (dnprogs.spec), not dummy net (libdnet.spec) +#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: libicu-devel >= 50.1 +# requires libjpeg-turbo implementing at least libjpeg 6b API BuildRequires: libjpeg-devel >= 6b +BuildRequires: libjpeg-turbo-devel BuildRequires: libnotify-devel >= 0.4 BuildRequires: libpng(APNG)-devel >= 0.10 -BuildRequires: libpng-devel >= 1.4.1 -BuildRequires: libstdc++-devel -BuildRequires: libvpx-devel +BuildRequires: libpng-devel >= 2:1.6.35 +BuildRequires: libstdc++-devel >= 6:4.7 +BuildRequires: libvpx-devel >= 1.5.0 +BuildRequires: mozldap-devel >= 6.0 BuildRequires: nspr-devel >= 1:%{nspr_ver} BuildRequires: nss-devel >= 1:%{nss_ver} -BuildRequires: pango-devel >= 1:1.14.0 +BuildRequires: pango-devel >= 1:1.22.0 BuildRequires: perl-base >= 1:5.6 BuildRequires: perl-modules >= 5.004 +BuildRequires: pixman-devel >= 0.19.2 BuildRequires: pkgconfig -BuildRequires: python >= 1:2.5 -BuildRequires: python-modules -BuildRequires: rpm >= 4.4.9-56 +BuildRequires: python >= 1:2.7 +BuildRequires: python-modules >= 1:2.7 +BuildRequires: python-virtualenv >= 15 +BuildRequires: rpm-build >= 4.6 BuildRequires: rpmbuild(macros) >= 1.601 +BuildRequires: rust >= 1.47.0 BuildRequires: sed >= 4.0 -BuildRequires: sqlite3-devel >= 3.7.10 BuildRequires: startup-notification-devel >= 0.8 -BuildRequires: xorg-lib-libXScrnSaver-devel +BuildRequires: tar >= 1:1.22 +BuildRequires: xorg-lib-libX11-devel +BuildRequires: xorg-lib-libXcomposite-devel +BuildRequires: xorg-lib-libXdamage-devel BuildRequires: xorg-lib-libXext-devel -BuildRequires: xorg-lib-libXinerama-devel +BuildRequires: xorg-lib-libXfixes-devel BuildRequires: xorg-lib-libXt-devel -%if %{with xulrunner} -BuildRequires: xulrunner-devel >= 2:%{xulrunner_ver} +BuildRequires: xz +%ifarch %{ix86} %{x8664} +BuildRequires: yasm >= 1.0.1 %endif -BuildRequires: yasm BuildRequires: zip BuildRequires: zlib-devel >= 1.2.3 Requires(post): mktemp >= 1.5-18 Requires: desktop-file-utils +Requires: fontconfig >= 1:2.7.0 Requires: hicolor-icon-theme -%if %{with xulrunner} -%requires_eq_to xulrunner xulrunner-devel -%else Requires: browser-plugins >= 2.0 -Requires: cairo >= 1.10.2-5 +%{?with_system_cairo:Requires: cairo >= 1.10.2-5} Requires: dbus-glib >= 0.60 +Requires: glib2 >= 1:2.22 Requires: gtk+2 >= 2:2.18 -Requires: libpng >= 1.4.1 +Requires: gtk+3 >= 3.4.0 +Requires: libjpeg-turbo +Requires: libpng >= 2:1.6.35 Requires: libpng(APNG) >= 0.10 +Requires: libvpx >= 1.5.0 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: pango >= 1:1.22.0 +Requires: pixman >= 0.19.2 Requires: startup-notification >= 0.8 -%endif Provides: seamonkey-embedded = %{version}-%{release} Provides: wwwbrowser -Obsoletes: light -Obsoletes: mozilla -Obsoletes: mozilla-gnomevfs -Obsoletes: seamonkey-calendar -Obsoletes: seamonkey-libs -Obsoletes: seamonkey-mailnews -Obsoletes: seamonkey-gnomevfs +Obsoletes: iceape < 2.47 +Obsoletes: iceape-js-debugger < 2.40 +Obsoletes: iceape-lang-be < 2.47 +Obsoletes: iceape-lang-ca < 2.47 +Obsoletes: iceape-lang-gl < 2.47 +Obsoletes: iceape-lang-lt < 2.47 +Obsoletes: iceape-lang-tr < 2.47 +Obsoletes: iceape-lang-uk < 2.47 +Obsoletes: iceape-mailnews < 2.9 +Obsoletes: iceape-gnomevfs < 2.9 +Obsoletes: light < 1.4.13 +Obsoletes: mozilla < 1.8 +Obsoletes: mozilla-gnomevfs < 1.8 +Obsoletes: mozilla-js-debugger < 1.8 +Obsoletes: mozilla-mailnews < 1.8 +Obsoletes: seamonkey-calendar < 1.1 +Obsoletes: seamonkey-js-debugger < 2.31 +Obsoletes: seamonkey-lang-be < 2.47 +Obsoletes: seamonkey-lang-ca < 2.47 +Obsoletes: seamonkey-lang-gl < 2.47 +Obsoletes: seamonkey-lang-lt < 2.53 +Obsoletes: seamonkey-lang-tr < 2.47 +Obsoletes: seamonkey-lang-uk < 2.47 +Obsoletes: seamonkey-libs < 1.1.8-2 +Obsoletes: seamonkey-mailnews < 2.9.1 +Obsoletes: seamonkey-gnomevfs < 2.9.1 +Conflicts: seamonkey-lang-resources < %{version} +# TODO: change to supported archs list +ExcludeArch: x32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define topdir %{_builddir}/%{name}-%{version} @@ -137,8 +218,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # 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 +%define _noautoreq liblgpllibs.so libmozavcodec.so libmozavutil.so libmozgtk.so libmozsandbox.so libmozsqlite3.so libxul.so %description SeaMonkey Community Edition is an open-source web browser, designed @@ -165,9 +245,9 @@ SeaMonkey Community Edition - полнофункциональный web-browser %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: iceape-addon-lightning < 2.46 %description addon-lightning Lightning is an calendar extension to Icedove email client. @@ -176,31 +256,14 @@ Lightning is an calendar extension to Icedove email client. 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} = %{version}-%{release} -Requires: %{name} = %{version}-%{release} -Requires: gnupg >= 1.4.2.2 - -%description addon-enigmail -Enigmail is an extension to the mail client of SeaMonkey / Mozilla / -Netscape and Mozilla Thunderbird which allows users to access the -authentication and encryption features provided by GnuPG. - -%description addon-enigmail -l pl.UTF-8 -Enigmail jest rozszerzeniem dla klienta pocztowego SeaMonkey, Mozilla -i Mozilla Thunderdbird pozwalającym użytkownikowi korzystać z -funkcjonalności GnuPG. - %package chat Summary: SeaMonkey Community Edition Chat - integrated IRC client Summary(pl.UTF-8): SeaMonkey Community Edition Chat - zintegrowany klient IRC-a Group: X11/Applications/Networking Requires(post,postun): %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release} -Obsoletes: mozilla-chat +Obsoletes: iceape-chat < 2.46 +Obsoletes: mozilla-chat < 1.8 %description chat SeaMonkey Community Edition Chat - IRC client that is integrated with @@ -210,27 +273,14 @@ the SeaMonkey Community Edition web browser. SeaMonkey Community Edition Chat - klient IRC-a zintegrowany z przeglądarką SeaMonkey Community Edition. -%package js-debugger -Summary: JavaScript debugger for use with SeaMonkey Community Edition -Summary(pl.UTF-8): Odpluskwiacz JavaScriptu do używania z SeaMonkey Community Edition -Group: X11/Applications/Networking -Requires(post,postun): %{name} = %{version}-%{release} -Requires: %{name} = %{version}-%{release} -Obsoletes: mozilla-js-debugger - -%description js-debugger -JavaScript debugger for use with SeaMonkey Community Edition. - -%description js-debugger -l pl.UTF-8 -Odpluskwiacz JavaScriptu do używania z SeaMonkey Community Edition. - %package dom-inspector Summary: A tool for inspecting the DOM of pages in SeaMonkey Community Edition Summary(pl.UTF-8): Narzędzie do oglądania DOM stron w SeaMonkey Community Edition Group: X11/Applications/Networking Requires(post,postun): %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release} -Obsoletes: mozilla-dom-inspector +Obsoletes: iceape-dom-inspector < 2.46 +Obsoletes: mozilla-dom-inspector < 1.8 %description dom-inspector This is a tool that allows you to inspect the DOM for web pages in @@ -243,11 +293,390 @@ 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 lang-cs +Summary: Czech resources for SeaMonkey +Summary(pl.UTF-8): Czeskie pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-cs < 2.47 +BuildArch: noarch + +%description lang-cs +Czech resources for SeaMonkey. + +%description lang-cs -l pl.UTF-8 +Czeskie pliki językowe dla SeaMonkeya. + +%package lang-de +Summary: German resources for SeaMonkey +Summary(pl.UTF-8): Niemieckie pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-de < 2.47 +BuildArch: noarch + +%description lang-de +German resources for SeaMonkey. + +%description lang-de -l pl.UTF-8 +Niemieckie pliki językowe dla SeaMonkeya. + +%package lang-el +Summary: Greek resources for SeaMonkey +Summary(pl.UTF-8): Greckie pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +BuildArch: noarch + +%description lang-el +Greek resources for SeaMonkey. + +%description lang-el -l pl.UTF-8 +Greckie pliki językowe dla SeaMonkeya. + +%package lang-en_GB +Summary: English (British) resources for SeaMonkey +Summary(pl.UTF-8): Angielskie (brytyjskie) pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-en_GB < 2.47 +BuildArch: noarch + +%description lang-en_GB +English (British) resources for SeaMonkey. + +%description lang-en_GB -l pl.UTF-8 +Angielskie (brytyjskie) pliki językowe dla SeaMonkeya. + +%package lang-en_US +Summary: English (American) resources for SeaMonkey +Summary(pl.UTF-8): Angielskie (amerykańskie) pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-en_US < 2.47 +BuildArch: noarch + +%description lang-en_US +English (American) resources for SeaMonkey. + +%description lang-en_US -l pl.UTF-8 +Angielskie (amerykańskie) pliki językowe dla SeaMonkeya. + +%package lang-es_AR +Summary: Spanish (Andorra) resources for SeaMonkey +Summary(ca.UTF-8): Recursos espanyols (Andorra) per SeaMonkey +Summary(es.UTF-8): Recursos españoles (Andorra) para SeaMonkey +Summary(pl.UTF-8): Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Andory) +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-es_AR < 2.47 +BuildArch: noarch + +%description lang-es_AR +Spanish (Spain) resources for SeaMonkey. + +%description lang-es_AR -l ca.UTF-8 +Recursos espanyols (Andorra) per SeaMonkey. + +%description lang-es_AR -l es.UTF-8 +Recursos españoles (Andorra) para SeaMonkey. + +%description lang-es_AR -l pl.UTF-8 +Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Andory). + +%package lang-es +Summary: Spanish (Spain) resources for SeaMonkey +Summary(ca.UTF-8): Recursos espanyols (Espanya) per SeaMonkey +Summary(es.UTF-8): Recursos españoles (España) para SeaMonkey +Summary(pl.UTF-8): Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Hiszpanii) +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-es < 2.47 +BuildArch: noarch + +%description lang-es +Spanish (Spain) resources for SeaMonkey. + +%description lang-es -l ca.UTF-8 +Recursos espanyols (Espanya) per SeaMonkey. + +%description lang-es -l es.UTF-8 +Recursos españoles (España) para SeaMonkey. + +%description lang-es -l pl.UTF-8 +Hiszpańskie pliki językowe dla SeaMonkeya (wersja dla Hiszpanii). + +%package lang-fi +Summary: Finnish resources for SeaMonkey +Summary(pl.UTF-8): Fińskie pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-fi < 2.47 +BuildArch: noarch + +%description lang-fi +Finnish resources for SeaMonkey. + +%description lang-fi -l pl.UTF-8 +Fińskie pliki językowe dla SeaMonkeya. + +%package lang-fr +Summary: French resources for SeaMonkey +Summary(pl.UTF-8): Francuskie pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-fr < 2.47 +BuildArch: noarch + +%description lang-fr +French resources for SeaMonkey. + +%description lang-fr -l pl.UTF-8 +Francuskie pliki językowe dla SeaMonkeya. + +%package lang-hu +Summary: Hungarian resources for SeaMonkey +Summary(hu.UTF-8): Magyar nyelv SeaMonkey-hez +Summary(pl.UTF-8): Węgierskie pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-hu < 2.47 +BuildArch: noarch + +%description lang-hu +Hungarian resources for SeaMonkey. + +%description lang-hu -l hu.UTF-8 +Magyar nyelv SeaMonkey-hez. + +%description lang-hu -l pl.UTF-8 +Węgierskie pliki językowe dla SeaMonkeya. + +%package lang-it +Summary: Italian resources for SeaMonkey +Summary(pl.UTF-8): Włoskie pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-it < 2.47 +BuildArch: noarch + +%description lang-it +Italian resources for SeaMonkey. + +%description lang-it -l pl.UTF-8 +Włoskie pliki językowe dla SeaMonkeya. + +%package lang-ja +Summary: Japanese resources for SeaMonkey +Summary(pl.UTF-8): Japońskie pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-ja < 2.47 +BuildArch: noarch + +%description lang-ja +Japanese resources for SeaMonkey. + +%description lang-ja -l pl.UTF-8 +Japońskie pliki językowe dla SeaMonkeya. + +%package lang-ka +Summary: Georgian resources for SeaMonkey +Summary(pl.UTF-8): Gruzińskie pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +BuildArch: noarch + +%description lang-ka +Georgian resources for SeaMonkey. + +%description lang-ka -l pl.UTF-8 +Gruzińskie pliki językowe dla SeaMonkeya. + +%package lang-lt +Summary: Lithuanian resources for SeaMonkey +Summary(pl.UTF-8): Litewskie pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-lt < 2.47 +BuildArch: noarch + +%description lang-lt +Lithuanian resources for SeaMonkey. + +%description lang-lt -l pl.UTF-8 +Litewskie pliki językowe dla SeaMonkeya. + +%package lang-nb +Summary: Norwegian Bokmaal resources for SeaMonkey +Summary(pl.UTF-8): Norweskie (bokmaal) pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-nb < 2.47 +BuildArch: noarch + +%description lang-nb +Norwegian Bokmaal resources for SeaMonkey. + +%description lang-nb -l pl.UTF-8 +Norweskie (bokmaal) pliki językowe dla SeaMonkeya. + +%package lang-nl +Summary: Dutch resources for SeaMonkey +Summary(pl.UTF-8): Holenderskie pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-nl < 2.47 +BuildArch: noarch + +%description lang-nl +Dutch resources for SeaMonkey. + +%description lang-nl -l pl.UTF-8 +Holenderskie pliki językowe dla SeaMonkeya. + +%package lang-pl +Summary: Polish resources for SeaMonkey +Summary(pl.UTF-8): Polskie pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-pl < 2.47 +BuildArch: noarch + +%description lang-pl +Polish resources for SeaMonkey. + +%description lang-pl -l pl.UTF-8 +Polskie pliki językowe dla SeaMonkeya. + +%package lang-pt_BR +Summary: Portuguese (Brazilian) resources for SeaMonkey +Summary(pl.UTF-8): Portugalskie pliki językowe dla SeaMonkeya (wersja dla Brazylii) +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +BuildArch: noarch + +%description lang-pt_BR +Portuguese (Brazilian) resources for SeaMonkey. + +%description lang-pt_BR -l pl.UTF-8 +Portugalskie pliki językowe dla SeaMonkeya (wersja dla Brazylii). + +%package lang-pt +Summary: Portuguese (Portugal) resources for SeaMonkey +Summary(pl.UTF-8): Portugalskie pliki językowe dla SeaMonkeya (wersja dla Portugalii) +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-pt < 2.47 +BuildArch: noarch + +%description lang-pt +Portuguese (Portugal) resources for SeaMonkey. + +%description lang-pt -l pl.UTF-8 +Portugalskie pliki językowe dla SeaMonkeya (wersja dla Portugalii). + +%package lang-ru +Summary: Russian resources for SeaMonkey +Summary(pl.UTF-8): Rosyjskie pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-ru < 2.47 +BuildArch: noarch + +%description lang-ru +Russian resources for SeaMonkey. + +%description lang-ru -l pl.UTF-8 +Rosyjskie pliki językowe dla SeaMonkeya. + +%package lang-sk +Summary: Slovak resources for SeaMonkey +Summary(pl.UTF-8): Słowackie pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-sk < 2.47 +BuildArch: noarch + +%description lang-sk +Slovak resources for SeaMonkey. + +%description lang-sk -l pl.UTF-8 +Słowackie pliki językowe dla SeaMonkeya. + +%package lang-sv +Summary: Swedish resources for SeaMonkey +Summary(pl.UTF-8): Szwedzkie pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-sv < 2.47 +BuildArch: noarch + +%description lang-sv +Swedish resources for SeaMonkey. + +%description lang-sv -l pl.UTF-8 +Szwedzkie pliki językowe dla SeaMonkeya. + +%package lang-zh_CN +Summary: Simplified Chinese resources for SeaMonkey +Summary(pl.UTF-8): Chińskie (uproszczone) pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-zh_CN < 2.47 +BuildArch: noarch + +%description lang-zh_CN +Simplified Chinese resources for SeaMonkey. + +%description lang-zh_CN -l pl.UTF-8 +Chińskie uproszczone pliki językowe dla SeaMonkeya. + +%package lang-zh_TW +Summary: Traditional Chinese resources for SeaMonkey +Summary(pl.UTF-8): Chińskie tradycyjne pliki językowe dla SeaMonkeya +Group: I18n +Requires: seamonkey >= %{version} +Provides: seamonkey-lang-resources = %{version} +Obsoletes: iceape-lang-zh_TW < 2.47 +BuildArch: noarch + +%description lang-zh_TW +Traditional Chinese resources for SeaMonkey. + +%description lang-zh_TW -l pl.UTF-8 +Chińskie tradycyjne pliki językowe dla SeaMonkeya. + %prep -%setup -qc -cd comm-release -tar -C mailnews/extensions -zxf %{SOURCE1} -#patch0 -p1 +unpack() { + local args="$1" file="$2" + cp -p $file . +} +%define __unzip unpack +%setup -q %(seq -f '-a %g' 100 122 | xargs) %patch1 -p1 %patch2 -p1 %patch3 -p1 @@ -255,26 +684,21 @@ tar -C mailnews/extensions -zxf %{SOURCE1} %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}" +export CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64" +export CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64" + +%if %{with lowmem} +export CFLAGS="$CFLAGS -g0" +export CXXFLAGS="$CXXFLAGS -g0" +export MOZ_DEBUG_FLAGS=" " +export LLVM_USE_SPLIT_DWARF=1 +export LLVM_PARALLEL_LINK_JOBS=1 +export MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads" +export RUSTFLAGS="-Cdebuginfo=0" +%endif %if %{with crashreporter} export MOZ_DEBUG_SYMBOLS=1 @@ -282,97 +706,70 @@ export MOZ_DEBUG_SYMBOLS=1 # 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-crash-on-assert 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 ac_add_options --disable-debug -ac_add_options --disable-debug-modules -ac_add_options --disable-logging -ac_add_options --enable-optimize="%{rpmcflags} -Os" %endif ac_add_options --disable-strip -ac_add_options --disable-strip-libs +ac_add_options --disable-install-strip %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 +ac_add_options --disable-elf-hack +ac_add_options --disable-necko-wifi +ac_add_options --disable-updater +ac_add_options --enable-application=comm/suite %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 --enable-crypto -ac_add_options --enable-libxul -ac_add_options --enable-pango -ac_add_options --enable-shared-js +ac_add_options --enable-chrome-format=omni +ac_add_options --enable-default-toolkit=cairo-gtk3 +ac_add_options --enable-dominspector +ac_add_options --enable-extensions=default +ac_add_options --enable-irc +%if %{without gold} +ac_add_options --enable-linker=bfd +%endif +# breaks build +#ac_add_options --enable-shared-js ac_add_options --enable-startup-notification +%if %{with system_cairo} ac_add_options --enable-system-cairo +%endif ac_add_options --enable-system-hunspell -ac_add_options --enable-system-sqlite -ac_add_options --enable-application=suite ac_add_options --with-distribution-id=org.pld-linux -%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-icu 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-pixman ac_add_options --with-system-png ac_add_options --with-system-zlib -ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name} EOF -%{__make} -j1 -f client.mk build \ +%{__make} -j1 build \ + AUTOCONF=/usr/bin/autoconf2_13 \ STRIP="/bin/true" \ MOZ_MAKE_FLAGS="%{?_smp_mflags}" \ installdir=%{_libdir}/%{name} \ + XLIBS="-lX11 -lXt" \ CC="%{__cc}" \ CXX="%{__cxx}" @@ -381,38 +778,26 @@ EOF %{__make} -j1 -C obj-%{_target_cpu} buildsymbols %endif -%if %{with enigmail} -cd mailnews/extensions/enigmail -./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 comm-release install -d \ $RPM_BUILD_ROOT{%{_bindir},%{_libdir}} \ $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \ $RPM_BUILD_ROOT%{_datadir}/%{name} \ - $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins + $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins \ + $RPM_BUILD_ROOT%{_mandir}/man1 %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins cd %{objdir} -%{__make} -C suite/installer stage-package \ +cwd=`pwd` +%{__make} -C comm/suite/installer stage-package \ DESTDIR=$RPM_BUILD_ROOT \ installdir=%{_libdir}/%{name} \ PKG_SKIP_STRIP=1 -cp -a mozilla/dist/seamonkey/* $RPM_BUILD_ROOT%{_libdir}/%{name}/ - -%if %{with xulrunner} -# >= 5.0 seems to require this -ln -s ../xulrunner $RPM_BUILD_ROOT%{_libdir}/%{name}/xulrunner -%endif +cp -a dist/seamonkey/* $RPM_BUILD_ROOT%{_libdir}/%{name}/ +cp -p dist/man/man1/seamonkey.1 $RPM_BUILD_ROOT%{_mandir}/man1 # Enable crash reporter for Thunderbird application %if %{with crashreporter} @@ -420,136 +805,90 @@ ln -s ../xulrunner $RPM_BUILD_ROOT%{_libdir}/%{name}/xulrunner # 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} +cp -a dist/%{name}-%{version}.en-US.linux-*.crashreporter-symbols.zip $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_libdir}/%{name} %endif -# 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 +# move arch independent 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}/fonts $RPM_BUILD_ROOT%{_datadir}/%{name}/fonts 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 +ln -s ../../share/%{name}/fonts $RPM_BUILD_ROOT%{_libdir}/%{name}/fonts -mv $RPM_BUILD_ROOT%{_libdir}/%{name}/distribution/extensions/* \ - $RPM_BUILD_ROOT%{_libdir}/%{name}/extensions/ +%{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/isp $RPM_BUILD_ROOT%{_datadir}/%{name}/isp +ln -s ../../share/%{name}/isp $RPM_BUILD_ROOT%{_libdir}/%{name}/isp # 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 -sed 's,@LIBDIR@,%{_libdir},' %{SOURCE7} > $RPM_BUILD_ROOT%{_bindir}/seamonkey +sed 's,@LIBDIR@,%{_libdir},' %{SOURCE9} > $RPM_BUILD_ROOT%{_bindir}/seamonkey chmod a+rx $RPM_BUILD_ROOT%{_bindir}/seamonkey -install %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} \ +install %{SOURCE4} %{SOURCE5} %{SOURCE7} \ $RPM_BUILD_ROOT%{_desktopdir} -cp -p %{topdir}/comm-release/suite/branding/nightly/content/icon64.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png - -# files created by seamonkey -register -touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/compreg.dat -touch $RPM_BUILD_ROOT%{_libdir}/%{name}/components/xpti.dat +for d in 16 32 48 64 128 ; do +install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${d}x${d}/apps +cp -p %{topdir}/comm/suite/branding/seamonkey/default${d}.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${d}x${d}/apps/%{name}.png +done -cat << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/register -#!/bin/sh -umask 022 -rm -f %{_libdir}/%{name}/components/{compreg,xpti}.dat +# don't package, rely on system mozldap libraries +%{__sed} -i '/lib\(ldap\|ldif\|prldap\)60.so/d' $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list +%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap}60.so -# 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 || : +cd .. +for a in *.xpi; do + basename=$(basename $a .langpack.xpi) + basename=${basename##seamonkey-%{version}.} + cp -p $a $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions/langpack-$basename@seamonkey.mozilla.org.xpi +done -%{_libdir}/%{name}/seamonkey -register - -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 - -# 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 +%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{license.txt,precomplete,removed-files} %clean rm -rf $RPM_BUILD_ROOT %post -%{_libdir}/%{name}/register || : %update_browser_plugins +%update_icon_cache hicolor %update_desktop_database %postun if [ "$1" = 0 ]; then %update_browser_plugins + %update_icon_cache hicolor fi %files %defattr(644,root,root,755) +%doc AUTHORS %attr(755,root,root) %{_bindir}/seamonkey +%{_mandir}/man1/seamonkey.1* # browser plugins v2 %{_browserpluginsconfdir}/browsers.d/%{name}.* %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist %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}/liblgpllibs.so +%attr(755,root,root) %{_libdir}/%{name}/libmozavcodec.so +%attr(755,root,root) %{_libdir}/%{name}/libmozavutil.so +%attr(755,root,root) %{_libdir}/%{name}/libmozgtk.so +%attr(755,root,root) %{_libdir}/%{name}/libmozsandbox.so +%attr(755,root,root) %{_libdir}/%{name}/libmozsqlite3.so %attr(755,root,root) %{_libdir}/%{name}/libxul.so -%endif +%dir %{_libdir}/%{name}/gtk2 +%attr(755,root,root) %{_libdir}/%{name}/gtk2/libmozgtk.so %{_libdir}/%{name}/blocklist.xml -%attr(755,root,root) %{_libdir}/%{name}/register +%{_libdir}/%{name}/omni.ja %if %{with crashreporter} %{_libdir}/%{name}/crashreporter @@ -562,123 +901,25 @@ fi %{_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 - -%if %{without xulrunner} +%{_libdir}/%{name}/dependentlibs.list %{_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 + +%attr(755,root,root) %{_libdir}/%{name}/seamonkey +%dir %{_libdir}/%{name}/plugins # symlinks %{_libdir}/%{name}/chrome %{_libdir}/%{name}/defaults -%{_libdir}/%{name}/modules -%{_libdir}/%{name}/searchplugins -%if %{with xulrunner} -%{_libdir}/%{name}/xulrunner -%else +%{_libdir}/%{name}/fonts %{_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}/modules -%{_datadir}/%{name}/searchplugins -%if %{without xulrunner} -%{_datadir}/%{name}/greprefs.js -%{_datadir}/%{name}/res -%endif +%{_datadir}/%{name}/fonts %dir %{_datadir}/%{name}/extensions %dir %{_libdir}/%{name}/extensions @@ -686,26 +927,6 @@ fi %{_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 @@ -716,7 +937,7 @@ fi %{_datadir}/%{name}/isp/movemail.rdf %{_datadir}/%{name}/isp/rss.rdf -%{_pixmapsdir}/seamonkey.png +%{_iconsdir}/hicolor/*x*/apps/seamonkey.png %{_desktopdir}/%{name}.desktop %{_desktopdir}/%{name}-composer.desktop %{_desktopdir}/%{name}-mail.desktop @@ -724,47 +945,109 @@ fi %if %{with lightning} %files addon-lightning %defattr(644,root,root,755) -%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) -%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 +%{_libdir}/%{name}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi %endif %files chat %defattr(644,root,root,755) %{_libdir}/%{name}/extensions/{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}.xpi -%{_desktopdir}/%{name}-chat.desktop - -%files js-debugger -%defattr(644,root,root,755) -%{_libdir}/%{name}/extensions/{f13b157f-b174-47e7-a34d-4815ddfdfeb8}.xpi -%{_desktopdir}/%{name}-venkman.desktop %files dom-inspector %defattr(644,root,root,755) %{_libdir}/%{name}/extensions/inspector@mozilla.org.xpi + +%files lang-cs +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-cs@seamonkey.mozilla.org.xpi + +%files lang-de +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-de@seamonkey.mozilla.org.xpi + +%files lang-el +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-el@seamonkey.mozilla.org.xpi + +%files lang-en_GB +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-en-GB@seamonkey.mozilla.org.xpi + +%files lang-en_US +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-en-US@seamonkey.mozilla.org.xpi + +%files lang-es_AR +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-es-AR@seamonkey.mozilla.org.xpi + +%files lang-es +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-es-ES@seamonkey.mozilla.org.xpi + +%files lang-fi +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-fi@seamonkey.mozilla.org.xpi + +%files lang-fr +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-fr@seamonkey.mozilla.org.xpi + +%files lang-hu +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-hu@seamonkey.mozilla.org.xpi + +%files lang-it +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-it@seamonkey.mozilla.org.xpi + +%files lang-ja +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-ja@seamonkey.mozilla.org.xpi + +%files lang-ka +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-ka@seamonkey.mozilla.org.xpi + +#%files lang-lt +#%defattr(644,root,root,755) +#%{_datadir}/%{name}/extensions/langpack-lt@seamonkey.mozilla.org.xpi + +%files lang-nb +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-nb-NO@seamonkey.mozilla.org.xpi + +%files lang-nl +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-nl@seamonkey.mozilla.org.xpi + +%files lang-pl +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-pl@seamonkey.mozilla.org.xpi + +%files lang-pt_BR +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-pt-BR@seamonkey.mozilla.org.xpi + +%files lang-pt +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-pt-PT@seamonkey.mozilla.org.xpi + +%files lang-ru +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-ru@seamonkey.mozilla.org.xpi + +%files lang-sk +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-sk@seamonkey.mozilla.org.xpi + +%files lang-sv +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-sv-SE@seamonkey.mozilla.org.xpi + +%files lang-zh_CN +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-zh-CN@seamonkey.mozilla.org.xpi + +%files lang-zh_TW +%defattr(644,root,root,755) +%{_datadir}/%{name}/extensions/langpack-zh-TW@seamonkey.mozilla.org.xpi