## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # ppc64le started to fail permanently, apparently OOM, # first f42 https://koji.fedoraproject.org/koji/taskinfo?taskID=124917502 # then f40 https://koji.fedoraproject.org/koji/taskinfo?taskID=125295645 # then also f41 https://koji.fedoraproject.org/koji/taskinfo?taskID=125632253 # Excluded due to https://bugzilla.mozilla.org/show_bug.cgi?id=1792159 # https://bugzilla.redhat.com/show_bug.cgi?id=2129720 ExcludeArch: i686 %global autorelease 0.1%{?dist} %ifarch ppc64le %global rustflags_debuginfo 1 %endif %if 0%{?fedora} > 35 || 0%{?rhel} > 9 %global dictionarydir hunspell %else %global dictionarydir myspell %endif # Disabled arm due to rhbz#1658940 ExcludeArch: armv7hl # Use system nspr/nss? %define system_nss 1 # Build as a debug package? %define debug_build 0 %define system_ffi 1 %define build_langpacks 1 %bcond_with toolchain_clang %global use_bundled_cbindgen 1 %if %{?system_nss} %global nspr_version 4.26.0 %global nspr_build_version %(pkg-config --silence-errors --modversion nspr 2>/dev/null || echo 65536) %global nss_version 3.55.0 %global nss_build_version %(pkg-config --silence-errors --modversion nss 2>/dev/null || echo 65536) %endif %define freetype_version 2.1.9 %define libnotify_version 0.4 %define _default_patch_fuzz 2 # libvpx is too new for Firefox 65 %define system_jpeg 1 # Big endian platforms %ifarch ppc64 s390x # Javascript Intl API is not supported on big endian platforms right now: # https://bugzilla.mozilla.org/show_bug.cgi?id=1322212 %define big_endian 1 %endif %define thunderbird_app_id \{3550f703-e582-4d05-9a08-453d09bdfdc6\} %global langpackdir %{mozappdir}/extensions # The tarball is pretty inconsistent with directory structure. # Sometimes there is a top level directory. That goes here. # # IMPORTANT: If there is no top level directory, this should be # set to the cwd, ie: '.' %define objdir objdir %define mozappdir %{_libdir}/thunderbird %define official_branding 1 #define pre_version %define enable_mozilla_crashreporter 0 %if %{with toolchain_clang} %global toolchain clang %endif # Fedora version number from which no extra Wayland package is built and Wayland is default, F40+. %global only_wayland %[0%{?fedora} || 0%{?rhel} >= 10] # Where to place node-stdout-nonblocking-wrapper for build. %if 0%{?fedora} >= 41 || 0%{?rhel} >= 11 # RPM 4.20 defines %builddir %global nodewrapperdir %{builddir}/bin %else %global nodewrapperdir %{_buildrootdir}/bin %endif # Exclude private libraries from autogenerated provides and requires %global __provides_exclude_from ^%{mozappdir} %global __requires_exclude ^(%%(find %{buildroot}%{mozappdir} -name '*.so' | xargs -n1 basename | sort -u | paste -s -d '|' -)) Summary: Mozilla Thunderbird mail/newsgroup client Name: thunderbird Version: 147.0.2 Release: %autorelease URL: http://www.mozilla.org/projects/thunderbird/ License: MPL-2.0 OR GPL-2.0-or-later OR LGPL-2.0-or-later Source0: https://archive.mozilla.org/pub/thunderbird/releases/%{version}%{?pre_version}/source/thunderbird-%{version}%{?pre_version}.source.tar.xz %if %{build_langpacks} Source1: thunderbird-langpacks-%{version}%{?pre_version}-20260218.tar.xz %endif Source3: get-calendar-langpacks.sh Source4: cbindgen-vendor.tar.xz Source10: thunderbird-mozconfig Source11: thunderbird-mozconfig-branded Source12: thunderbird-redhat-default-prefs.js Source21: thunderbird.sh.in Source25: thunderbird-symbolic.svg Source28: thunderbird-wayland.sh.in Source29: thunderbird-wayland.desktop Source32: node-stdout-nonblocking-wrapper Source33: net.thunderbird.Thunderbird.desktop Source34: net.thunderbird.Thunderbird.appdata.xml #Patch416: firefox-SIOCGSTAMP.patch Patch418: mozilla-1512162.patch #Patch419: bindgen-d0dfc52706f23db9dc9d74642eeebd89d73cb8d0.patch # gcc 12 build fix patches Patch422: 0001-GLIBCXX-fix-for-GCC-12.patch Patch425: build-disable-elfhack.patch # Build patches Patch32: build-rust-ppc64le.patch Patch35: build-ppc-jit.patch Patch36: build-botan-target.patch Patch37: build-c11-threads-avail.patch # Fixing missing cacheFlush when JS_CODEGEN_NONE is used (s390x) Patch40: build-aarch64-skia.patch Patch44: build-arm-libopus.patch Patch53: firefox-gcc-build.patch Patch71: 0001-GLIBCXX-fix-for-GCC-12.patch Patch78: firefox-i686-build.patch Patch79: firefox-gcc-13-build.patch # PROTOBUF_MUSTTAIL return ... error: cannot tail-call: target is not able to optimize the call into a sibling call Patch82: build-s390x-protobuf-musttail.patch # Build failure on rawhide of wrongly defined SYS_SECCOMP Patch83: build-seccomp.patch Patch84: build-minimal-lexical.patch Patch85: build-libcubeb.patch Patch86: build-missing-gitmodules.patch # PPC fix # Fedora specific patches # Upstream patches Patch402: mozilla-526293.patch Patch406: mozilla-1170092.patch # https://bugzilla.mozilla.org/show_bug.cgi?id=1998188 # this is the Firefox patch, manually rediffed against 146.0.1 # https://bugzilla.mozilla.org/show_bug.cgi?id=2008377 # fix crash on aarch64 # Bundled expat backported patches # Tentative patch for RUSTFLAGS parsing issue, # borrowed from firefox commit 24c9accce19c5cae9394430b24eaf938a9c17882: # https://bugzilla.redhat.com/show_bug.cgi?id=2184743 # https://bugzilla.mozilla.org/show_bug.cgi?id=1474486 Patch1200: rustflags-commasplit.patch %if %{official_branding} # Required by Mozilla Corporation %else # Not yet approved by Mozillla Corporation %endif BuildRequires: make BuildRequires: gcc-c++ %if %{?system_nss} BuildRequires: nss-static >= %{nss_version} BuildRequires: nspr-devel >= %{nspr_version} BuildRequires: nss-devel >= %{nss_version} Requires: nspr >= %{nspr_build_version} Requires: nss >= %{nss_build_version} %endif BuildRequires: libappstream-glib BuildRequires: libnotify-devel >= %{libnotify_version} BuildRequires: libpng-devel BuildRequires: libjpeg-devel BuildRequires: zip BuildRequires: bzip2-devel BuildRequires: zlib-devel #BuildRequires: libIDL-devel BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: krb5-devel BuildRequires: pango-devel BuildRequires: freetype-devel >= %{freetype_version} BuildRequires: libXt-devel BuildRequires: libXrender-devel BuildRequires: hunspell-devel BuildRequires: llvm BuildRequires: llvm-devel BuildRequires: clang BuildRequires: clang-libs %if "%toolchain" == "clang" BuildRequires: lld %endif %if %{?system_ffi} BuildRequires: libffi-devel %endif BuildRequires: startup-notification-devel BuildRequires: alsa-lib-devel BuildRequires: m4 BuildRequires: desktop-file-utils BuildRequires: libcurl-devel BuildRequires: mesa-libGL-devel BuildRequires: pulseaudio-libs-devel BuildRequires: libicu-devel BuildRequires: perl-interpreter Requires: mozilla-filesystem BuildRequires: dbus-glib-devel Obsoletes: thunderbird-lightning Provides: thunderbird-lightning Obsoletes: thunderbird-lightning-gdata <= 1:3.3.0.14 BuildRequires: rust BuildRequires: cargo BuildRequires: rust-version_check-devel %if 0%{?fedora} >= 40 BuildRequires: clang17-devel %else BuildRequires: clang-devel %endif BuildRequires: python3.11-devel %if !0%{?use_bundled_cbindgen} BuildRequires: cbindgen %endif BuildRequires: /usr/bin/node BuildRequires: nasm >= 1.13 %if 0%{?big_endian} BuildRequires: icu %endif # require any OpenPGP backend with the librnp interface # see comm/mail/extensions/openpgp/content/modules/RNPLib.jsm # %%{mozappdir}/librnp.so or %%{_libdir}/librnp.so.0 Requires: (thunderbird-librnp%{?_isa} or librnp%{?_isa}) # prefer the librnp implementation bundled with thunderbird Suggests: thunderbird-librnp-rnp%{?_isa} Suggests: u2f-hidraw-policy %if %{only_wayland} Obsoletes: thunderbird-wayland < 115.11.0-1 %endif %description Mozilla Thunderbird is a standalone mail and newsgroup client. %package librnp-rnp Summary: OpenPGP implementation for Thunderbird based on RNP Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Provides: thunderbird-librnp Provides: thunderbird-librnp%{?_isa} Conflicts: thunderbird-librnp%{?_isa} %description librnp-rnp The thunderbird-librnp-rnp package contains an OpenPGP implementation based on RNP. %files librnp-rnp %{mozappdir}/librnp.so %{mozappdir}/rnp-cli %{mozappdir}/rnpkeys %if ! %{only_wayland} %package wayland Summary: Thunderbird Wayland launcher. Requires: %{name} %description wayland The thunderbird-wayland package contains launcher and desktop file to run Thunderbird natively on Wayland. %files wayland %{_bindir}/thunderbird-wayland %attr(644,root,root) %{_datadir}/applications/mozilla-thunderbird-wayland.desktop %endif %if %{enable_mozilla_crashreporter} %global moz_debug_prefix %{_prefix}/lib/debug %global moz_debug_dir %{moz_debug_prefix}%{mozappdir} %global uname_m %(uname -m) %global symbols_file_name %{name}-%{version}.en-US.%{_os}-%{uname_m}.crashreporter-symbols.zip %global symbols_file_path %{moz_debug_dir}/%{symbols_file_name} %global _find_debuginfo_opts -p %{symbols_file_path} -o debugcrashreporter.list %global crashreporter_pkg_name mozilla-crashreporter-%{name}-debuginfo %package -n %{crashreporter_pkg_name} Summary: Debugging symbols used by Mozilla's crash reporter servers %description -n %{crashreporter_pkg_name} This package provides debug information for XULRunner, for use by Mozilla's crash reporter servers. If you are trying to locally debug %{name}, you want to install %{name}-debuginfo instead. %files -n %{crashreporter_pkg_name} -f debugcrashreporter.list %defattr(-,root,root) %endif %prep %setup -q # Build patches #ARM run-time patch %ifarch aarch64 #%patch -P 226 -p1 -b .1354671 %endif #FIXME %%patch -P 416 -p1 -b .SIOCGSTAMP %patch -P36 -p1 -b .build-botan %patch -P37 -p1 -b .build-c11-threads-avail %patch -P 418 -p1 -b .mozbz-1512162 # most likely fixed #%%patch -P 419 -p1 -b .bindgen %patch -P 402 -p1 -b .526293 %patch -P 406 -p1 -b .1170092-etc-conf %patch -P 422 -p1 -b .0001-GLIBCXX-fix-for-GCC-12 #patch -P40 -p1 -b .aarch64-skia %patch -P44 -p1 -b .build-arm-libopus #patch -P53 -p1 -b .firefox-gcc-build %patch -P71 -p1 -b .0001-GLIBCXX-fix-for-GCC-12 %patch -P78 -p1 -b .firefox-i686 %patch -P79 -p1 -b .firefox-gcc-13-build %patch -P82 -p1 -b .build-s390x-protobuf-musttail %patch -P83 -p1 -b .build-seccomp %patch -P84 -p1 -b .minimal-lexical %patch -P85 -p1 -b .libcubeb %patch -P86 -p1 -b .missing-gitmodules #patch -P 1200 -p1 -b .rustflags-commasplit %if %{official_branding} # Required by Mozilla Corporation %else # Not yet approved by Mozilla Corporation %endif %{__rm} -f .mozconfig %{__cp} %{SOURCE10} .mozconfig %if %{official_branding} %{__cat} %{SOURCE11} >> .mozconfig %endif echo "ac_add_options --prefix=\"%{_prefix}\"" >> .mozconfig echo "ac_add_options --libdir=\"%{_libdir}\"" >> .mozconfig %if %{?system_nss} echo "ac_add_options --with-system-nspr" >> .mozconfig echo "ac_add_options --with-system-nss" >> .mozconfig %else echo "ac_add_options --without-system-nspr" >> .mozconfig echo "ac_add_options --without-system-nss" >> .mozconfig %endif # Second arches fail to start with jemalloc enabled %ifnarch %{ix86} x86_64 echo "ac_add_options --disable-jemalloc" >> .mozconfig %endif %if %{?system_ffi} echo "ac_add_options --enable-system-ffi" >> .mozconfig %endif %if %{?debug_build} echo "ac_add_options --enable-debug" >> .mozconfig echo "ac_add_options --disable-optimize" >> .mozconfig %else %global optimize_flags "none" %ifarch ppc64le aarch64 %global optimize_flags "-g -O2" %endif %if %{?optimize_flags} != "none" echo 'ac_add_options --enable-optimize=%{?optimize_flags}' >> .mozconfig %else echo 'ac_add_options --enable-optimize' >> .mozconfig %endif echo "ac_add_options --disable-debug" >> .mozconfig %endif %ifarch aarch64 echo "ac_add_options --disable-elf-hack" >> .mozconfig echo "ac_add_options --disable-jit" >> .mozconfig %endif %ifnarch %{ix86} x86_64 echo "ac_add_options --disable-webrtc" >> .mozconfig %endif %ifarch armv7hl echo "ac_add_options --with-arch=armv7-a" >> .mozconfig echo "ac_add_options --with-float-abi=hard" >> .mozconfig echo "ac_add_options --with-fpu=vfpv3-d16" >> .mozconfig %endif %ifarch armv7hnl echo "ac_add_options --with-arch=armv7-a" >> .mozconfig echo "ac_add_options --with-float-abi=hard" >> .mozconfig echo "ac_add_options --with-fpu=neon" >> .mozconfig echo "ac_add_options --disable-yarr-jit" >> .mozconfig %endif %ifarch armv5tel echo "ac_add_options --with-arch=armv5te" >> .mozconfig echo "ac_add_options --with-float-abi=soft" >> .mozconfig echo "ac_add_options --disable-yarr-jit" >> .mozconfig %endif %if %{?system_jpeg} echo "ac_add_options --with-system-jpeg" >> .mozconfig %else echo "ac_add_options --without-system-jpeg" >> .mozconfig %endif %if %{enable_mozilla_crashreporter} echo "ac_add_options --enable-crashreporter" >> .mozconfig %else echo "ac_add_options --disable-crashreporter" >> .mozconfig %endif # Same as https://bugzilla.redhat.com/show_bug.cgi?id=2239046 for Firefox: # Clang 17 upstream's detection fails, tell it where to look. echo 'export NODEJS="%{nodewrapperdir}/node-stdout-nonblocking-wrapper"' >> .mozconfig %if %{only_wayland} echo 'export MOZ_APP_REMOTINGNAME=net.thunderbird.Thunderbird' >> .mozconfig %else echo 'export MOZ_APP_REMOTINGNAME=thunderbird' >> .mozconfig %endif # https://bugzilla.redhat.com/show_bug.cgi?id=2239046 # with clang 17 upstream's detection fails, so let's just tell it # where to look echo "ac_add_options --with-libclang-path=`llvm-config --libdir`" >> .mozconfig # Remove executable bit to make brp-mangle-shebangs happy. find third_party -type f -iname "*.rs"|xargs chmod a-x #=============================================================================== %build # Disable LTO to work around rhbz#1883904 %define _lto_cflags %{nil} %if 0%{?use_bundled_cbindgen} mkdir -p my_rust_vendor cd my_rust_vendor %{__tar} xf %{SOURCE4} cd - mkdir -p .cargo cat > .cargo/config <> .mozconfig %endif %endif %if 0%{?flatpak} # Make sure the linker can find libraries in /app/lib64 as we don't use # __global_ldflags that normally sets this. MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -L%{_libdir}" %endif %ifarch %{arm} %{ix86} s390x RUSTFLAGS=`echo $RUSTFLAGS | sed -e 's/opt-level=3/opt-level=2/g' -e 's/debuginfo=2/debuginfo=0/g'` export RUSTFLAGS=$RUSTFLAGS %endif # We don't want thunderbird to use CK_GCM_PARAMS_V3 in nss MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -DNSS_PKCS11_3_0_STRICT" echo "export CFLAGS=\"$MOZ_OPT_FLAGS\"" >> .mozconfig echo "export CXXFLAGS=\"$MOZ_OPT_FLAGS\"" >> .mozconfig echo "export LDFLAGS=\"$MOZ_LINK_FLAGS\"" >> .mozconfig echo "export RUSTFLAGS=\"$RUSTFLAGS\"" >> .mozconfig %if "%toolchain" == "clang" echo "export LLVM_PROFDATA=\"llvm-profdata\"" >> .mozconfig echo "export AR=\"llvm-ar\"" >> .mozconfig echo "export NM=\"llvm-nm\"" >> .mozconfig echo "export RANLIB=\"llvm-ranlib\"" >> .mozconfig echo "ac_add_options --enable-linker=lld" >> .mozconfig %else echo "export CC=gcc" >> .mozconfig echo "export CXX=g++" >> .mozconfig echo "export AR=\"gcc-ar\"" >> .mozconfig echo "export NM=\"gcc-nm\"" >> .mozconfig echo "export RANLIB=\"gcc-ranlib\"" >> .mozconfig %endif %if 0%{?build_with_pgo} echo "ac_add_options MOZ_PGO=1" >> .mozconfig # PGO build doesn't work with ccache export CCACHE_DISABLE=1 %endif # Require 4 GB of RAM per CPU core %constrain_build -m 4096 echo "mk_add_options MOZ_MAKE_FLAGS=\"-j%{_smp_build_ncpus}\"" >> .mozconfig export STRIP=/bin/true export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system #Use python 3.11 for mach sed -i -e 's|#!/usr/bin/env python3|#!/usr/bin/env python3.11|' mach ./mach build -v # create debuginfo for crash-stats.mozilla.com %if %{enable_mozilla_crashreporter} make -C %{objdir} buildsymbols %endif #=============================================================================== %install cd %{objdir} DESTDIR=$RPM_BUILD_ROOT make install cd .. # install icons for s in 16 22 24 32 48 64 128 256; do %{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps %{__cp} -p comm/mail/branding/%{name}/default${s}.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/thunderbird.png done # Install hight contrast icon %{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps %{__cp} -p %{SOURCE25} \ %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps %if ! %{only_wayland} desktop-file-install --vendor mozilla \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE20} # wayland desktop file only for older fedoras desktop-file-install --vendor mozilla \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE29} %else #net.thunderbird.Thunderbird for F40+ desktop-file-install \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE33} %endif # set up the thunderbird start script rm -f $RPM_BUILD_ROOT/%{_bindir}/thunderbird %{__cat} %{SOURCE21} | %{__sed} -e 's,__PREFIX__,%{_prefix},g' > \ $RPM_BUILD_ROOT/%{_bindir}/thunderbird %{__chmod} 755 $RPM_BUILD_ROOT/%{_bindir}/thunderbird %if 0%{?flatpak} sed -i -e 's|%FLATPAK_ENV_VARS%|export TMPDIR="$XDG_CACHE_HOME/tmp"|' %{buildroot}%{_bindir}/thunderbird %else sed -i -e 's|%FLATPAK_ENV_VARS%||' %{buildroot}%{_bindir}/thunderbird %endif # Enable wayland by default on f40+ # Overridable for rhbz#2283993 https://bugzilla.mozilla.org/show_bug.cgi?id=1898476 %if %{only_wayland} sed -i -e 's,__WAYLAND_X11_PLACEHOLDER__,export MOZ_ENABLE_WAYLAND="${MOZ_ENABLE_WAYLAND:-1}",g' $RPM_BUILD_ROOT/%{_bindir}/thunderbird %else sed -i -e 's,__WAYLAND_X11_PLACEHOLDER__,,g' $RPM_BUILD_ROOT/%{_bindir}/thunderbird %{__cat} %{SOURCE28} | %{__sed} -e 's,__PREFIX__,%{_prefix},g' > \ %{buildroot}%{_bindir}/thunderbird-wayland %{__chmod} 755 %{buildroot}%{_bindir}/thunderbird-wayland %endif # set up our default preferences %{__cat} %{SOURCE12} | %{__sed} -e 's,THUNDERBIRD_RPM_VR,%{version}-%{release},g' \ -e 's,myspell,%{dictionarydir},g' \ > $RPM_BUILD_ROOT/rh-default-prefs %{__install} -D $RPM_BUILD_ROOT/rh-default-prefs $RPM_BUILD_ROOT/%{mozappdir}/greprefs/all-redhat.js %{__install} -D $RPM_BUILD_ROOT/rh-default-prefs $RPM_BUILD_ROOT/%{mozappdir}/defaults/pref/all-redhat.js %{__rm} $RPM_BUILD_ROOT/rh-default-prefs %{__rm} -f $RPM_BUILD_ROOT%{_bindir}/thunderbird-config # own mozilla plugin dir (#135050) %{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins # own extension directories %{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/%{thunderbird_app_id} %{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/extensions/%{thunderbird_app_id} # System config dir (#1525709) %{__mkdir_p} %{buildroot}%{_sysconfdir}/%{name}/pref # Install langpacks %{__rm} -f %{name}.lang # Delete for --short-circuit option touch %{name}.lang %if %{build_langpacks} %{__mkdir_p} %{buildroot}%{langpackdir} %{__tar} xf %{SOURCE1} for langpack in `ls thunderbird-langpacks/*.xpi`; do language=`basename $langpack .xpi` extensionID=langpack-$language@thunderbird.mozilla.org %{__mkdir_p} $extensionID unzip -qq $langpack -d $extensionID find $extensionID -type f | xargs chmod 644 cd $extensionID zip -qq -r9mX ../${extensionID}.xpi * cd - %{__install} -m 644 ${extensionID}.xpi %{buildroot}%{langpackdir} language=`echo $language | sed -e 's/-/_/g'` echo "%%lang($language) %{langpackdir}/${extensionID}.xpi" >> %{name}.lang done %{__rm} -rf thunderbird-langpacks %endif # Get rid of devel package and its debugsymbols %{__rm} -rf $RPM_BUILD_ROOT%{_libdir}/%{name}-devel-%{version} # Copy over the LICENSE install -c -m 644 LICENSE $RPM_BUILD_ROOT%{mozappdir} # Use the system hunspell dictionaries %{__rm} -rf $RPM_BUILD_ROOT/%{mozappdir}/dictionaries ln -s $(pkg-config --variable prefix hunspell)/share/%{dictionarydir} $RPM_BUILD_ROOT%{mozappdir}/dictionaries # ghost files %{__mkdir_p} $RPM_BUILD_ROOT%{mozappdir}/components touch $RPM_BUILD_ROOT%{mozappdir}/components/compreg.dat touch $RPM_BUILD_ROOT%{mozappdir}/components/xpti.dat # Add debuginfo for crash-stats.mozilla.com %if %{enable_mozilla_crashreporter} %{__mkdir_p} $RPM_BUILD_ROOT/%{moz_debug_dir} %{__cp} %{objdir}/dist/%{symbols_file_name} $RPM_BUILD_ROOT/%{moz_debug_dir} %endif # Register as an application to be visible in the software center mkdir -p $RPM_BUILD_ROOT%{_datadir}/metainfo %{__sed} -e "s/__VERSION__/%{version}/" \ -e "s/__DATE__/$(date '+%Y-%m-%d')/" \ %{SOURCE34} > %{buildroot}%{_datadir}/metainfo/net.thunderbird.Thunderbird.appdata.xml #=============================================================================== %check appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml #=============================================================================== %post update-desktop-database &> /dev/null || : touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun update-desktop-database &> /dev/null || : if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : #=============================================================================== %files -f %{name}.lang %defattr(-,root,root,-) %attr(755,root,root) %{_bindir}/thunderbird %{_datadir}/metainfo/*.appdata.xml %attr(644,root,root) %{_datadir}/applications/net.thunderbird.Thunderbird.desktop %dir %{_sysconfdir}/%{name} %dir %{_sysconfdir}/%{name}/* %dir %{_datadir}/mozilla/extensions/%{thunderbird_app_id} %dir %{_libdir}/mozilla/extensions/%{thunderbird_app_id} %dir %{mozappdir} %doc %{mozappdir}/LICENSE %{mozappdir}/chrome %dir %{mozappdir}/components %ghost %{mozappdir}/components/compreg.dat %ghost %{mozappdir}/components/xpti.dat %{mozappdir}/omni.ja %{mozappdir}/defaults %{mozappdir}/dictionaries %if %{build_langpacks} %dir %{langpackdir} %endif %{mozappdir}/greprefs %{mozappdir}/isp %{mozappdir}/thunderbird-bin %{mozappdir}/thunderbird %{mozappdir}/*.so %exclude %{mozappdir}/librnp.so %{mozappdir}/platform.ini %{mozappdir}/application.ini %exclude %{mozappdir}/removed-files %{_datadir}/icons/hicolor/16x16/apps/thunderbird.png %{_datadir}/icons/hicolor/22x22/apps/thunderbird.png %{_datadir}/icons/hicolor/24x24/apps/thunderbird.png %{_datadir}/icons/hicolor/256x256/apps/thunderbird.png %{_datadir}/icons/hicolor/32x32/apps/thunderbird.png %{_datadir}/icons/hicolor/48x48/apps/thunderbird.png %{_datadir}/icons/hicolor/64x64/apps/thunderbird.png %{_datadir}/icons/hicolor/128x128/apps/thunderbird.png %{_datadir}/icons/hicolor/symbolic/apps/thunderbird-symbolic.svg %if %{enable_mozilla_crashreporter} %{mozappdir}/crashreporter %{mozappdir}/crashreporter.ini %{mozappdir}/Throbber-small.gif %endif %if !%{?system_nss} %{mozappdir}/*.chk %endif %{mozappdir}/dependentlibs.list %{mozappdir}/fonts %{mozappdir}/pingsender %{mozappdir}/glxtest %{mozappdir}/vaapitest %{mozappdir}/interesting_serverknobs.json #=============================================================================== %changelog ## START: Generated by rpmautospec * Wed Feb 18 2026 Mamoru TASAKA - 147.0.2-1 - 147.0.2 * Wed Feb 18 2026 Mamoru TASAKA - 147.0.1-3 - remove no longer needed patch * Wed Feb 18 2026 Mamoru TASAKA - 147.0.1-2 - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec