Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package discord for openSUSE:Factory:NonFree checked in at 2026-07-31 15:26:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory:NonFree/discord (Old) and /work/SRC/openSUSE:Factory:NonFree/.discord.new.16738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "discord" Fri Jul 31 15:26:17 2026 rev:97 rq:1364607 version:1.0.146 Changes: -------- --- /work/SRC/openSUSE:Factory:NonFree/discord/discord.changes 2026-02-05 17:55:48.156029459 +0100 +++ /work/SRC/openSUSE:Factory:NonFree/.discord.new.16738/discord.changes 2026-08-01 00:01:21.868189474 +0200 @@ -1,0 +2,32 @@ +Wed Jul 8 17:18:31 UTC 2026 - Jehu Marcos Herrera Puentes <[email protected]> + +- Bump to version 1.0.146 + * Developer changelog can be found at: https://docs.discord.com/developers/change-log#july-7-2026 + * July 7 patch notes at: https://discord.com/blog/discord-patch-notes-july-7-2026 + +------------------------------------------------------------------- +Tue Jun 30 17:28:52 UTC 2026 - Jehu Marcos Herrera Puentes <[email protected]> + +- Removed older ffmpeg build bundle, as it's incompatible with the new discord binary packaging +- Adapt current build to match the new discord .tar.gz packaging +- Renamed the wrapper script to disable-updates.sh with better comments +- Include PERMISSION file as a license +- Added proper _service file for source code downloads +- Added new check procedures +- Bump to version 1.0.145 + * Patch notes at: https://discord.com/blog/discord-patch-notes-june-4-2026 + * Changelog: https://discord.com/blog/discord-update-june-25-2026-changelog +- Update appdata .xml file to match current discord version + +------------------------------------------------------------------- +Fri May 8 06:07:42 UTC 2026 - Dirk Stoecker <[email protected]> + +- remove XDG_SESSION_TYPE=x11 + +------------------------------------------------------------------- +Fri May 8 06:04:31 UTC 2026 - Dirk Stoecker <[email protected]> + +- Update to version 0.0.126 + * No upstream release notes + +------------------------------------------------------------------- Old: ---- discord discord-0.0.123.tar.gz ffmpeg-v37.6.0-linux-x64.zip New: ---- _service disable-updates.sh discord-1.0.146.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ discord.spec ++++++ --- /var/tmp/diff_new_pack.TzI7TM/_old 2026-08-01 00:01:23.412243474 +0200 +++ /var/tmp/diff_new_pack.TzI7TM/_new 2026-08-01 00:01:23.416243614 +0200 @@ -19,48 +19,61 @@ # Require bash for extglob in install section. %global _buildshell /bin/bash -# Shipped by this package but not provided externally -%global __requires_exclude ^libffmpeg -%global __provides_exclude_from %{_libdir}/%{name} -# This is to enable build with patent encoumbered codecs. Not allowed in OBS -%bcond_with x264 + Name: discord -Version: 0.0.123 +Version: 1.0.146 Release: 0 Summary: Voice and Text Chat for Gamers License: SUSE-NonFree Group: Productivity/Networking/Instant Messenger URL: https://discordapp.com/ Source0: https://dl.discordapp.net/apps/linux/%{version}/%{name}-%{version}.tar.gz -#Source0: https://discordapp.com/api/download?platform=linux&format=tar.gz -Source2: discord-symbolic.svg -Source3: https://raw.githubusercontent.com/flathub/com.discordapp.Discord/master/com.discordapp.Discord.appdata.xml -# Disable breaking updates which will prompt users to download a deb or tar -# file and lock them out of Discord making the program unusable. -Source4: discord -Source99: PERMISSION +Source1: discord-symbolic.svg +Source2: https://raw.githubusercontent.com/flathub/com.discordapp.Discord/master/com.discordapp.Discord.appdata.xml + +# Wrapper script to disable updates in user's Discord settings.json file +# Then the script calls the actual Discord's executable in lib. +Source3: disable-updates.sh + +# Permission file to distribute this package legally. +# This file is included as a kind of LICENSE. +Source4: PERMISSION + +# Discord is only available for x86_64 architecture at the moment. ExclusiveArch: x86_64 + +# Build dependencies needed to extract the .tar.gz and validate appstream metadata. BuildRequires: desktop-file-utils BuildRequires: hicolor-icon-theme -BuildRequires: update-desktop-files BuildRequires: unzip -Requires: libatomic1 -#for the wrapper script: +BuildRequires: AppStream + +# For the wrapper script: Requires: grep Requires: sed Requires: coreutils -Conflicts: discord - - -#Patent free ffmpeg config -#Snippets from https://github.com/orionhealth/electron-packager-plugin-non-proprietary-codecs-ffmpeg/blob/master/src/downloadFFMPEG.js -%define electronVersion 37.6.0 -%define ffmpegarch x64 -%define ffmpegplatform linux -%define ffmpegFileName ffmpeg-v%{electronVersion}-%{ffmpegplatform}-%{ffmpegarch}.zip -#eg. https://github.com/electron/electron/releases/download/v1.6.11/ffmpeg-v1.6.11-linux-x64.zip -Source1: https://github.com/electron/electron/releases/download/v%{electronVersion}/%{ffmpegFileName} +# Runtime dependencies required by the Discord package. +Requires: atk +Requires: cairo +Requires: pango +Requires: gtk3 +Requires: at-spi2-core +Requires: zenity +Requires: hicolor-icon-theme >= 0.15 + +# basic infrastructure +Requires: glibc +Requires: mozilla-nspr >= 4.13 +Requires: mozilla-nss >= 3.27 + +# Recommended packages +Recommends: libva-utils +Recommends: pipewire + +Provides: discord = %{version} +Conflicts: discord-bootstrap < %{version} +Obsoletes: discord < %{version} %description Discord is a voice and text chat for gamers. The Text chat supports @@ -70,69 +83,66 @@ %prep %setup -q -n Discord -%setup -q -T -a 1 -c -n ffmpeg %build -%if %{with x264} -# nothing to do -: -%else -rm %{_builddir}/Discord/libffmpeg.so -cp %{_builddir}/ffmpeg/libffmpeg.so %{_builddir}/Discord/ -%endif +# Nothing to do %install +# Install the icon in the correct location. cd %{_builddir}/Discord -install -Dm644 discord.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png +install -Dm644 discord.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/discord.png + +# Make sure the desktop file is installed with the correct Exec path to the wrapper script in bin. desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ --set-key=Exec \ - --set-value=%{_bindir}/%{name} \ - %{name}.desktop + --set-value=%{_bindir}/discord \ + discord.desktop -install -Dm755 chrome-sandbox %{buildroot}%{_libdir}/%{name}/chrome-sandbox -install -Dm755 libffmpeg.so %{buildroot}%{_libdir}/%{name}/libffmpeg.so -install -Dm755 libEGL.so %{buildroot}%{_libdir}/%{name}/libEGL.so -install -Dm755 libGLESv2.so %{buildroot}%{_libdir}/%{name}/libGLESv2.so -install -Dm755 libvk_swiftshader.so %{buildroot}%{_libdir}/%{name}/libvk_swiftshader.so -install -Dm755 libvulkan.so.1 %{buildroot}%{_libdir}/%{name}/libvulkan.so.1 -install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps/%{name}-symbolic.svg -install -Dm644 %{SOURCE3} %{buildroot}%{_datadir}/appdata/com.discordapp.Discord.appdata.xml +# Install the symbolic icon, appdata and permission files in the correct locations. +install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps/discord-symbolic.svg +install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/com.discordapp.Discord.appdata.xml +install -Dm644 %{SOURCE4} %{buildroot}%{_datadir}/licenses/discord/PERMISSION -# install share -mkdir -p %{buildroot}%{_libdir}/%{name} +# Install the extracted files from the Discord tarball in lib64/discord. +mkdir -p %{buildroot}%{_libdir}/discord shopt -s extglob -cp -r !(discord*|*.so) %{buildroot}%{_libdir}/%{name} +cp -r * %{buildroot}%{_libdir}/discord shopt -u extglob -# fix missing icon in some environments -ln -sf %{_datadir}/icons/hicolor/256x256/apps/%{name}.png %{buildroot}%{_libdir}/%{name} +# Fix missing icon in some environments +ln -sf %{_datadir}/icons/hicolor/256x256/apps/discord.png %{buildroot}%{_libdir}/discord # Executable checks for resources in its directory so it cannot be in bin. +# Instead, we install a wrapper script in bin that calls the executable in lib. +# And the wrapper script disables updates to prevent the program from breaking. mkdir -p %{buildroot}%{_bindir} -install -v -m 755 %{SOURCE4} %{buildroot}%{_bindir}/%{name} +install -v -m 755 %{SOURCE3} %{buildroot}%{_bindir}/discord %check -electronVersionActual=$(strings %{buildroot}%{_libdir}/%{name}/Discord | sed -nE 's/Chrome\/[0-9.]* Electron\/(.*)/\1/p') -if [ $electronVersionActual != "%{electronVersion}" ]; then echo "Electron version does not match (expected is %{electronVersion} , actual is $electronVersionActual)"; exit 1; fi - -%post -%if 0%{?suse_version} < 1500 -%desktop_database_post -%endif -chmod 0755 %{_libdir}/%{name}/Discord - -%if 0%{?suse_version} < 1500 -%postun -%desktop_database_postun -%endif +# Validate the desktop file and appstream metadata. +desktop-file-validate %{buildroot}%{_datadir}/applications/discord.desktop +appstreamcli validate --no-net %{buildroot}%{_datadir}/appdata/com.discordapp.Discord.appdata.xml %files +# Set file attributes %defattr(-,root,root) -%{_bindir}/%{name} -%{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/256x256/apps/%{name}.png -%{_datadir}/icons/hicolor/symbolic/apps/%{name}-symbolic.svg + +# Software distribution permission as a LICENSE file for the package. +%dir %{_datadir}/licenses/discord +%license %{_datadir}/licenses/discord/PERMISSION + +# Main Discord bootstrap files +%{_libdir}/discord + +# Wrapper script to disable updates +%{_bindir}/discord + +# Desktop files and icons +%{_datadir}/applications/discord.desktop +%{_datadir}/icons/hicolor/256x256/apps/discord.png +%{_datadir}/icons/hicolor/symbolic/apps/discord-symbolic.svg + +# Appstream metadata files %{_datadir}/appdata/com.discordapp.Discord.appdata.xml -%{_libdir}/%{name} ++++++ _service ++++++ <services> <!-- Download the official .tar.gz file --> <service name="download_url" mode="manual"> <param name="url">https://dl.discordapp.net/apps/linux/1.0.146/discord-1.0.146.tar.gz</param> </service> <!-- Download the appdata.xml file from the Flathub repository --> <service name="download_url" mode="manual"> <param name="url">https://raw.githubusercontent.com/flathub/com.discordapp.discord/master/com.discordapp.Discord.appdata.xml</param> </service> <!-- Update the version in discord.spec manually --> <service name="set_version" mode="manual"> <param name="file">discord.spec</param> <param name="version">1.0.146</param> </service> </services> (No newline at EOF) ++++++ com.discordapp.Discord.appdata.xml ++++++ --- /var/tmp/diff_new_pack.TzI7TM/_old 2026-08-01 00:01:23.484245992 +0200 +++ /var/tmp/diff_new_pack.TzI7TM/_new 2026-08-01 00:01:23.488246132 +0200 @@ -5,7 +5,7 @@ <developer id="com.discord"> <name>Discord Inc.</name> </developer> - <summary>Messaging, voice and video client</summary> + <summary>Talk, play, hang out</summary> <metadata_license>CC0-1.0</metadata_license> <project_license>LicenseRef-proprietary</project_license> <url type="homepage">https://discord.com</url> @@ -29,17 +29,13 @@ </description> <screenshots> <screenshot type="default"> - <image type="source">https://support.discord.com/hc/article_attachments/19212887908119</image> + <image type="source">https://raw.githubusercontent.com/flathub/com.discordapp.Discord/50940340c71dd975d0eb959174b58f12c97f58d0/screenshot-dark.png</image> <caption>Dark Mode Window</caption> </screenshot> <screenshot> - <image type="source">https://support.discord.com/hc/article_attachments/19212887914903</image> + <image type="source">https://raw.githubusercontent.com/flathub/com.discordapp.Discord/50940340c71dd975d0eb959174b58f12c97f58d0/screenshot-light.png</image> <caption>Light Mode Window</caption> </screenshot> - <screenshot> - <image type="source">https://support.discord.com/hc/article_attachments/4471411989015</image> - <caption>Voice/Video Chat</caption> - </screenshot> </screenshots> <branding> <color type="primary" scheme_preference="light">#a0aaf3</color> @@ -66,9 +62,186 @@ </supports> <update_contact>[email protected]</update_contact> <releases> - <release version="0.0.74" date="2024-11-12"> + <release version="1.0.146" date="2026-07-06"> <description></description> </release> + <release version="1.0.145" date="2026-06-29"> + <description/> + </release> + <release version="1.0.144" date="2026-06-22"> + <description/> + </release> + <release version="1.0.143" date="2026-06-15"> + <description/> + </release> + <release version="1.0.142" date="2026-06-08"> + <description/> + </release> + <release version="1.0.141" date="2026-06-01"> + <description/> + </release> + <release version="1.0.140" date="2026-05-26"> + <description/> + </release> + <release version="1.0.139" date="2026-05-18"> + <description/> + </release> + <release version="1.0.138" date="2026-05-11"> + <description/> + </release> + <release version="1.0.137" date="2026-05-05"> + <description/> + </release> + <release version="1.0.136" date="2026-05-04"> + <description/> + </release> + <release version="0.0.135" date="2026-04-27"> + <description/> + </release> + <release version="0.0.134" date="2026-04-20"> + <description/> + </release> + <release version="0.0.133" date="2026-04-13"> + <description/> + </release> + <release version="0.0.132" date="2026-04-07"> + <description/> + </release> + <release version="0.0.131" date="2026-03-30"> + <description/> + </release> + <release version="0.0.130" date="2026-03-23"> + <description/> + </release> + <release version="0.0.129" date="2026-03-17"> + <description/> + </release> + <release version="0.0.128" date="2026-03-09"> + <description/> + </release> + <release version="0.0.127" date="2026-03-02"> + <description/> + </release> + <release version="0.0.126" date="2026-02-23"> + <description/> + </release> + <release version="0.0.125" date="2026-02-17"> + <description/> + </release> + <release version="0.0.124" date="2026-02-09"> + <description/> + </release> + <release version="0.0.123" date="2026-02-02"> + <description/> + </release> + <release version="0.0.122" date="2026-01-26"> + <description/> + </release> + <release version="0.0.121" date="2026-01-20"> + <description/> + </release> + <release version="0.0.120" date="2026-01-12"> + <description/> + </release> + <release version="0.0.119" date="2025-12-15"> + <description/> + </release> + <release version="0.0.118" date="2025-12-08"> + <description/> + </release> + <release version="0.0.117" date="2025-12-01"> + <description/> + </release> + <release version="0.0.116" date="2025-11-24"> + <description/> + </release> + <release version="0.0.115" date="2025-11-18"> + <description/> + </release> + <release version="0.0.114" date="2025-11-10"> + <description/> + </release> + <release version="0.0.113" date="2025-10-27"> + <description/> + </release> + <release version="0.0.112" date="2025-10-14"> + <description/> + </release> + <release version="0.0.111" date="2025-09-22"> + <description/> + </release> + <release version="0.0.110" date="2025-09-15"> + <description/> + </release> + <release version="0.0.109" date="2025-09-09"> + <description/> + </release> + <release version="0.0.108" date="2025-09-02"> + <description/> + </release> + <release version="0.0.107" date="2025-08-26"> + <description/> + </release> + <release version="0.0.106" date="2025-08-20"> + <description/> + </release> + <release version="0.0.105" date="2025-08-19"> + <description/> + </release> + <release version="0.0.104" date="2025-08-04"> + <description/> + </release> + <release version="0.0.103" date="2025-07-28"> + <description/> + </release> + <release version="0.0.102" date="2025-07-14"> + <description/> + </release> + <release version="0.0.101" date="2025-07-07"> + <description/> + </release> + <release version="0.0.100" date="2025-06-30"> + <description/> + </release> + <release version="0.0.99" date="2025-06-24"> + <description/> + </release> + <release version="0.0.98" date="2025-06-16"> + <description/> + </release> + <release version="0.0.97" date="2025-06-09"> + <description/> + </release> + <release version="0.0.96" date="2025-06-02"> + <description/> + </release> + <release version="0.0.95" date="2025-05-19"> + <description/> + </release> + <release version="0.0.94" date="2025-05-05"> + <description/> + </release> + <release version="0.0.93" date="2025-04-29"> + <description/> + </release> + <release version="0.0.92" date="2025-04-22"> + <description/> + </release> + <release version="0.0.91" date="2025-04-15"> + <description/> + </release> + <release version="0.0.89" date="2025-04-14"> + <description/> + </release> + <release version="0.0.88" date="2025-03-10"> + <description/> + </release> + <release version="0.0.87" date="2025-02-24"> + <description/> + </release> + <release version="0.0.74" date="2024-11-12"> + <description/> + </release> <release version="0.0.73" date="2024-11-04"> <description/> </release> ++++++ disable-updates.sh ++++++ #!/bin/bash # Wrapper script to disable Discord's automatic updates # The main binary files of the Discord .tar.gz are in lib64/discord. # This wrapper script "disable-updates.sh" is renamed and installed in /usr/bin/discord and calls the main binary. # So the .desktop file calls the wrapper script instead of the main binary. # in the file $HOME/.config/discord/settings.json # if the setting SKIP_HOST_UPDATE does not exist add it # otherwise leave it untouched CONFIGFILE="$HOME/.config/discord/settings.json" EXE="$(dirname "$0")/../lib64/discord/discord" if [[ -x "$EXE" ]]; then if [[ -d "$HOME/.config" && ! -f "$CONFIGFILE" ]]; then mkdir -p "$HOME/.config/discord" printf '%s\n' '{"SKIP_HOST_UPDATE": true}' > "$CONFIGFILE" elif [[ -f "$CONFIGFILE" ]]; then ! grep -qF SKIP_HOST_UPDATE "$CONFIGFILE" && \ sed -i '/^{/s@$@\n "SKIP_HOST_UPDATE": true,@' "$CONFIGFILE" fi exec "$EXE" "$@" fi ++++++ discord-0.0.123.tar.gz -> discord-1.0.146.tar.gz ++++++ /work/SRC/openSUSE:Factory:NonFree/discord/discord-0.0.123.tar.gz /work/SRC/openSUSE:Factory:NonFree/.discord.new.16738/discord-1.0.146.tar.gz differ: char 11, line 1
