%bcond_without system_nspr %bcond_without system_nss %bcond_without system_libvpx %bcond_without system_webp %bcond_without system_icu %bcond_without system_ffi %bcond_with system_hunspell %bcond_with system_cairo %bcond_without system_av1 %bcond_without langpacks %bcond_without clang %bcond_with lto %bcond_with stylo %bcond_without calendar %bcond_without dominspector %bcond_without irc %bcond_with debugqa %global nspr_version 4.25.0 %global nss_version 3.53.1 %global libvpx_version 1.5.0 %global webp_version 1.0.0 %global icu_version 63.1 %global ffi_version 3.0.9 %global hunspell_version 1.6.1 %global cairo_version 1.10 %global libaom_version 1.0.0 %global dav1d_version 0.1.1 %define homepage http://start.fedoraproject.org/ %define sources_subdir %{name}-%{version} %define seamonkey_app_id \{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a\} Name: seamonkey Summary: Web browser, e-mail, news, IRC client, HTML editor Version: 2.53.10 Release: 2%{?dist} URL: http://www.seamonkey-project.org License: MPLv2.0 Source0: http://archive.mozilla.org/pub/seamonkey/releases/%{version}/source/seamonkey-%{version}.source.tar.xz %if %{with langpacks} Source1: http://archive.mozilla.org/pub/seamonkey/releases/%{version}/source/seamonkey-%{version}.source-l10n.tar.xz %endif Source3: seamonkey-2.53.8-GNUmakefile Source4: seamonkey.desktop Source12: seamonkey-mail.desktop Patch3: seamonkey-2.53.9-mozilla-1516803.patch Patch5: firefox-35-rhbz-1173156.patch Patch6: firefox-56-build-prbool.patch Patch7: firefox-51-mozilla-1005640.patch Patch9: seamonkey-2.53.1-mozilla-revert-1332139.patch Patch10: seamonkey-2.53.7-mozilla-440908.patch Patch16: firefox-52-rhbz-1451055.patch Patch17: seamonkey-2.53.8-mozilla-1661070-1.patch Patch18: seamonkey-2.53.8-mozilla-1661070-2.patch Patch19: seamonkey-2.53.5-system-av1.patch Patch21: seamonkey-2.53.5-media-document.patch Patch22: seamonkey-2.53.6-client_mk.patch Patch23: seamonkey-2.53.9-revert-1593550.patch Patch24: seamonkey-2.53.6-install_man.patch Patch25: seamonkey-2.53.7-mailnews-useragent.patch Patch26: seamonkey-2.53.7-userDisabled.patch Patch27: seamonkey-2.53.8-ext-if-needed.patch Patch28: seamonkey-2.53.8-mozilla-1619108.patch Patch29: seamonkey-2.53.10-mozilla-1623054.patch Patch30: seamonkey-2.53.5-nss_pkcs11_v3.patch Patch31: seamonkey-2.53.1-mozilla-526293.patch Patch34: seamonkey-2.53.3-startupcache.patch Patch35: seamonkey-2.53.8-server-folder.patch Patch36: seamonkey-2.53.9-locale-matchos-UI.patch Patch37: seamonkey-2.53.9-mozilla-1720968.patch Patch38: seamonkey-2.53.8-mozilla-521861.patch Patch39: seamonkey-2.53.8.1-dateformat.patch Patch40: seamonkey-2.53.10-slowscript.patch Patch41: seamonkey-2.53.10-revert-1737436.patch Patch42: seamonkey-2.53.10-rust156.patch Patch43: seamonkey-2.53.10-allsettled.patch %{?with_system_nspr:BuildRequires: nspr-devel >= %{nspr_version}} %{?with_system_nss:BuildRequires: nss-devel >= %{nss_version}} %{?with_system_nss:BuildRequires: nss-static >= %{nss_version}} %{?with_system_libvpx:BuildRequires: libvpx-devel >= %{libvpx_version}} %{?with_system_webp:BuildRequires: libwebp-devel >= %{webp_version}} %{?with_system_icu:BuildRequires: libicu-devel >= %{icu_version}} %{?with_system_ffi:BuildRequires: libffi-devel >= %{ffi_version}} %{?with_system_hunspell:BuildRequires: hunspell-devel >= %{hunspell_version}} %{?with_system_cairo:BuildRequires: cairo-devel >= %{cairo_version}} %{?with_system_av1:BuildRequires: libaom-devel >= %{libaom_version}} %{?with_system_av1:BuildRequires: libdav1d-devel >= %{dav1d_version}} BuildRequires: libpng-devel BuildRequires: libjpeg-turbo-devel BuildRequires: zlib-devel BuildRequires: zip BuildRequires: libIDL-devel BuildRequires: desktop-file-utils BuildRequires: gtk3-devel BuildRequires: gtk2-devel BuildRequires: GConf2-devel BuildRequires: dbus-glib-devel BuildRequires: krb5-devel BuildRequires: pango-devel BuildRequires: freetype-devel >= 2.1.9 BuildRequires: glib2-devel BuildRequires: libXt-devel BuildRequires: libXrender-devel BuildRequires: coreutils BuildRequires: alsa-lib-devel BuildRequires: libnotify-devel BuildRequires: yasm >= 1.1 BuildRequires: mesa-libGL-devel BuildRequires: pulseaudio-libs-devel BuildRequires: startup-notification-devel %if %{without system_av1} BuildRequires: nasm >= 2.14 %endif BuildRequires: make BuildRequires: autoconf213 BuildRequires: python27 %if %{with clang} || %{with stylo} BuildRequires: clang, llvm-devel %endif %if %{without clang} BuildRequires: gcc-c++ >= 6.1 %endif BuildRequires: rust >= 1.53 BuildRequires: cargo Requires: mozilla-filesystem Requires: hicolor-icon-theme Requires: p11-kit-trust %{?with_system_nspr:Requires: nspr >= %{nspr_version}} %{?with_system_nss:Requires: nss >= %{nss_version}} # ppc64: http://bugzilla.redhat.com/bugzilla/866589 # armv7hl: http://bugzilla.redhat.com/bugzilla/1035485 # %{ix86}: no more supported upstream ExclusiveArch: x86_64 Provides: webclient %description SeaMonkey is an all-in-one Internet application suite (previously made popular by Netscape and Mozilla). It includes an Internet browser, advanced e-mail, newsgroup and feed client, a calendar, IRC client, HTML editor and a tool to inspect the DOM for web pages. It is derived from the application formerly known as Mozilla Application Suite. %prep %setup -q -c mv %{sources_subdir} mozilla %if %{with langpacks} %setup -q -T -D -c -n %{name}-%{version}/l10n -a 1 # come back... %setup -q -T -D %endif cd mozilla cp %{SOURCE3} GNUmakefile %patch3 -p1 -b .1516803 %patch5 -p2 -b .1173156 %patch6 -p1 -b .prbool %patch7 -p1 -b .1005640 %{?with_system_libvpx:%patch9 -p1 -b .1332139} %patch10 -p1 -b .440908 %patch16 -p1 -b .1451055 %patch17 -p1 -b .1661070-1 %patch18 -p0 -b .1661070-2 %patch19 -p1 -b .system_av1 %patch21 -p1 -b .media-document #%patch22 -p1 -b .client_mk %patch23 -p1 -b .1593550 %patch24 -p0 -b .install_man %patch25 -p0 -b .mailnews-useragent %patch26 -p1 -b .userDisabled %patch27 -p0 -b .ext-if-needed %patch28 -p0 -b .1619108 %patch29 -p0 -b .1623054 %{?with_system_nss:%patch30 -p3 -b .nss_pkcs11_v3} %patch31 -p3 -b .526293 %patch34 -p2 -b .startupcache %patch35 -p0 -b .server-folder %patch36 -p0 -b .locale_matchos %patch37 -p1 -b .1720968 %patch38 -p0 -b .521861 %patch39 -p1 -b .dateformat %patch40 -p0 -b .slowscript %patch41 -p0 -b .revert-1737436 %patch42 -p1 -b .rust156 %patch43 -p1 -b .allsettled %if %{without calendar} sed -i 's/MOZ_CALENDAR/UNDEF_MOZ_CALENDAR/' comm/suite/installer/package-manifest.in %endif # # generate .mozconfig # cat >.mozconfig <all-fedora.js <../seamonkey.lang # install desktop files in correct directory mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/ desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE4} desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE12} # install icons icons=$RPM_BUILD_ROOT%{_datadir}/icons/hicolor pushd $RPM_BUILD_ROOT%{_libdir}/seamonkey/chrome/icons/default install -p -m 644 -D default16.png $icons/16x16/apps/seamonkey.png install -p -m 644 -D default22.png $icons/22x22/apps/seamonkey.png install -p -m 644 -D default24.png $icons/24x24/apps/seamonkey.png install -p -m 644 -D default32.png $icons/32x32/apps/seamonkey.png install -p -m 644 -D default48.png $icons/48x48/apps/seamonkey.png install -p -m 644 -D default64.png $icons/64x64/apps/seamonkey.png install -p -m 644 -D default128.png $icons/128x128/apps/seamonkey.png install -p -m 644 -D default256.png $icons/256x256/apps/seamonkey.png install -p -m 644 -D messengerWindow16.png $icons/16x16/apps/seamonkey-mail.png install -p -m 644 -D messengerWindow.png $icons/32x32/apps/seamonkey-mail.png install -p -m 644 -D messengerWindow48.png $icons/48x48/apps/seamonkey-mail.png popd pushd comm/suite/branding/seamonkey/icons/svg install -p -m 644 -D seamonkey.svg $icons/scalable/apps/seamonkey.svg install -p -m 644 -D messengerWindow.svg $icons/scalable/apps/seamonkey-mail.svg popd # System extensions mkdir -p $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/%{seamonkey_app_id} mkdir -p $RPM_BUILD_ROOT%{_libdir}/mozilla/extensions/%{seamonkey_app_id} # Only now and just define (not global) %define __provides_exclude_from ^%{_libdir}/seamonkey %define __requires_exclude ^(%(find %{buildroot}%{_libdir}/seamonkey -name "lib*.so" -printf "%%f " | sed -e 's/.so /|/g' -e 's/|$//'))\\.so.* %files -f seamonkey.lang %license %{_libdir}/seamonkey/license.txt %{_libdir}/seamonkey %{_bindir}/seamonkey %{_mandir}/*/* %{_datadir}/icons/hicolor/*/apps/* %{_datadir}/applications/*.desktop %dir %{_datadir}/mozilla/extensions/%{seamonkey_app_id} %dir %{_libdir}/mozilla/extensions/%{seamonkey_app_id} %changelog * Tue Nov 30 2021 Dmitry Butskoy 2.53.10-2 - add allsettled patch * Tue Nov 23 2021 Dmitry Butskoy 2.53.10-1 - update to 2.53.10 - backport support for custom date format (mozbz#1426907) - fix compile with rust >= 1.56 * Thu Jul 22 2021 Dmitry Butskoy 2.53.8.1-1 - update to 2.53.8.1 - no more set nglayout.enable_drag_images by default - fix mailnews account creation after subscribing by a news URL (mozbz#521861) - avoid staring drag-and-drop in full mailnews's Wide View (mozbz#1720968) - fix clearing in download manager (mozbz#1501277) * Mon Jun 28 2021 Dmitry Butskoy 2.53.8-1 - update to 2.53.8 - fix irc link behaviour and websearch (mozbz#1712498, mozbz#1713458, mozbz#1713467) - fix handling of mail attachments (mozbz#1661070) - no more set browser.display.use_system_colors by default * Sun Jun 13 2021 Robert-Andre Mauchin - 2.53.7-5 - Rebuilt for aom v3.1.1 - Add patch to build against nss 3.66 * Thu May 20 2021 Dmitry Butskoy 2.53.7-4 - move extensions' localization data into the common langpack - fix cpu hogging on network link change when websockets are in use (mozbz#1633339) - better support of the obsoleting javascript versioning stuff (mozbz#1702903) - fix number formats (mozbz#1403319) - fix build with rust >= 1.52 (mozbz#1670538) * Sat Apr 10 2021 Dmitry Butskoy 2.53.7-3 - better support obsoleting javascript stuff (mozbz#1702903) - fixed selection of tab to return on tab close (mozbz#1623054) - fixed opening tabs in background in some cases (mozbz#1619108) - provide a way to auto-select es-AR locale on any Spanish one but es-ES * Fri Apr 2 2021 Dmitry Butskoy 2.53.7-2 - fix obsoleting "for each" javascript statements support - no need to provide own dictionaries (system are used anyway) * Tue Mar 30 2021 Dmitry Butskoy 2.53.7-1 - update to 2.53.7 - fix keyboard input with gtk3 >= 3.24.26 (mozbz #1701288) - backport some refresh driver improvements from upcoming 2.53.8 - avoid spurious update of intersection observers in a case of throbber animation - restore traditional security-button background (to match the location bar highlighting, revert mozbz #1593550) - for new installs add about:addons to the initial pages and don't enable inspector and calendar there by default - enable upcoming module scripts support * Fri Jan 22 2021 Dmitry Butskoy 2.53.6-1 - update to 2.53.6 - build with own GNUmakefile, spec file cleanup * Tue Nov 17 2020 Dmitry Butskoy 2.53.5-3 - add media-document patch (mozbz#1677768) - add packed_simd patch (mozbz#1617782) * Sun Nov 15 2020 Dmitry Butskoy 2.53.5-2 - fix for av1 (mozbz#1490877) - fix main svg icon * Thu Nov 12 2020 Dmitry Butskoy 2.53.5-1 - update to 2.53.5 - add patch to build with system libaom and libdav1d - add official logo icon in svg format * Wed Sep 9 2020 Dmitry Butskoy 2.53.4-1 - update to 2.53.4 - replace all the distributed extensions (calendar, dominspector and irc) as intergated app-global extensions (ie. moved from distribution/extensions/ just to extensions/ , mozbz#1659298) - update seamonkey(1) manual page - update description in spec file * Thu Jul 30 2020 Dmitry Butskoy 2.53.3-3 - fix requires filter * Wed Jul 29 2020 Dmitry Butskoy 2.53.3-2 - add "Default zoom" support (mozbz#1655362) - add "Use system locale" switch in preferences (mozbz#1655842) - backport WebP image format support (mozbz#1653869) - update elfhack code up to esr68 - add fix for rust >= 1.45 (mozbz#1654465) - properly filter provides and requires from the application dir - spec file cleanups and fixes * Mon Jul 6 2020 Dmitry Butskoy 2.53.3-1 - update to 2.53.3 - use sql nss databases (cert9.db, key4.db etc.) since the old format is stopping be supported. * Mon May 4 2020 Dmitry Butskoy 2.53.2-1 - update to 2.53.2 - drop startup shell script (no more needed) * Thu Apr 9 2020 Dmitry Butskoy 2.53.1-5 - rebuild with rust-1.42 * Wed Mar 25 2020 Dmitry Butskoy 2.53.1-4 - drop system-bookmarks dependencies * Sat Mar 21 2020 Dmitry Butskoy 2.53.1-3 - fix localization for bundled calendar and chatzilla (#1815109) - clear obsolete stuff from desktop-file-install * Tue Mar 3 2020 Dmitry Butskoy - 2.53.1-2 - add patch for classic theme (#1808197) * Fri Feb 28 2020 Dmitry Butskoy - 2.53.1-1 - Upgrade to 2.53.1 - use clang to build * Mon Sep 9 2019 Dmitry Butskoy - 2.49.5-2 - rebuid to properly handle external lightning extension (#1750450) * Sat Aug 24 2019 Dmitry Butskoy - 2.49.5-1 - update to 2.49.5 - add support for conditional build of inspector and irc * Fri Jul 26 2019 Fedora Release Engineering - 2.49.4-5 - add patch for new gettid() in glibc >= 2.30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Feb 05 2019 Björn Esser - 2.49.4-4 - rebuilt (libvpx) * Sat Feb 02 2019 Fedora Release Engineering - 2.49.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jul 31 2018 Florian Weimer - 2.49.4-2 - Rebuild with fixed binutils * Fri Jul 27 2018 Dmitry Butskoy - 2.49.4-1 - update to 2.49.4 * Sat Jul 14 2018 Fedora Release Engineering - 2.49.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jul 10 2018 Pete Walter - 2.49.3-3 - Rebuild for ICU 62 * Wed May 16 2018 Pete Walter - 2.49.3-2 - Rebuild for ICU 61.1 * Fri May 4 2018 Dmitry Butskoy 2.49.3-1 - update to 2.49.3 * Mon Apr 30 2018 Pete Walter - 2.49.2-3 - Rebuild for ICU 61.1 * Sun Feb 18 2018 Dmitry Butskoy 2.49.2-2 - revert some upstream gtk3-related changes to avoid regressions since we still build with gtk2 (mozbz#1269145, mozbz#1398973) - spec file cleanup from old deprecated stuff * Sat Feb 17 2018 Dmitry Butskoy 2.49.2-1 - update to 2.49.2 * Fri Feb 09 2018 Fedora Release Engineering - 2.49.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 31 2018 Dmitry Butskoy 2.49.1-4 - rebuild for libvpx 1.7.0 * Fri Jan 26 2018 Tom Callaway 2.49.1-3 - rebuild for new libvpx * Mon Dec 04 2017 Caolán McNamara 2.49.1-2 - rebuild for hunspell 1.6.2 * Sat Oct 21 2017 Dmitry Butskoy 2.49.1-1 - update to 2.49.1 - apply some patches from firefox-52.4.0 package - disable webide by default to avoid autoload of broken addons * Thu Aug 03 2017 Fedora Release Engineering - 2.48-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.48-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jul 23 2017 Dmitry Butskoy 2.48-1 - update to 2.48 - apply some patches from firefox-51 package - use standard optimize level -O2 for compiling - new langpacks obtaining stuff for more easier maintaining - revert broken mozbz#1148544 changes for site-specific overrides * Sat Feb 11 2017 Fedora Release Engineering - 2.46-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Jan 20 2017 Dmitry Butskoy 2.46-2 - fix for new system nss (#1414982, mozbz#1290037) - fix build with system icu (mozbz#1329272) * Fri Dec 23 2016 Dmitry Butskoy 2.46-1 - update to 2.46 - apply some patches from firefox-49 package - avoid runtime linking with too old ffmpeg libraries (#1330898) - still enable XRender extension by default