%global debug_package %{nil} %global __strip /bin/true %global __requires_exclude libffmpeg.so %global _build_id_links none ###############################Exclude Private bundled libs########################### %global __provides_exclude_from %{_libdir}/discord/.*\\.s Name: discord Version: 0.0.75 Release: 1%{?dist} Summary: All-in-one voice and text chat for gamers # License Information: https://bugzilla.rpmfusion.org/show_bug.cgi?id=4441#c14 License: Proprietary URL: https://discordapp.com/ Source0: https://dl.discordapp.net/apps/linux/%{version}/%{name}-%{version}.tar.gz Source1: Discord.sh ExclusiveArch: x86_64 BuildRequires: desktop-file-utils%{_isa} Requires: glibc%{_isa} Requires: alsa-lib%{_isa} Requires: GConf2%{_isa} Requires: libnotify%{_isa} Requires: nspr%{_isa} >= 4.13 Requires: nss%{_isa} >= 3.27 Requires: libX11%{_isa} >= 1.6 Requires: libXtst%{_isa} >= 1.2 Requires: libappindicator%{_isa} Requires: libcxx%{_isa} Requires: libatomic%{_isa} Requires: hicolor-icon-theme %if !0%{?el7} Recommends: (libappindicator-gtk3%{_isa} if gtk3%{_isa}) Recommends: google-noto-emoji-color-fonts Recommends: libXScrnSaver %endif %description Linux Release for Discord, a free proprietary VoIP application designed for gaming communities. %prep %autosetup -n Discord %build %install mkdir -p %{buildroot}/%{_bindir}/ mkdir -p %{buildroot}/%{_libdir}/discord mkdir -p %{buildroot}/%{_datadir}/applications cp %{SOURCE1} %{buildroot}/%{_bindir}/Discord desktop-file-install \ --set-icon=%{name} \ --set-key=Exec --set-value=%{_bindir}/Discord \ --delete-original \ --dir=%{buildroot}/%{_datadir}/applications \ discord.desktop cp -r * %{buildroot}/%{_libdir}/discord/ ln -sf ../%{_lib}/discord/Discord %{buildroot}/%{_bindir}/discord-bin install -p -D -m 644 %{name}.png \ %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png %check desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %files %{_libdir}/discord/ %{_bindir}/discord-bin %{_bindir}/Discord %{_datadir}/applications/discord.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.png %changelog * Sat Dec 10 2022 Sérgio Basto - 0.0.22-1 - Update discord to 0.0.22 * Fri Nov 18 2022 Leigh Scott - 0.0.21-2 - Fix rfbz6498 * Fri Oct 21 2022 Sérgio Basto - 0.0.21-1 - Update discord to 0.0.21 * Thu Sep 15 2022 Sérgio Basto - 0.0.20-1 - Update discord to 0.0.20 * Thu Aug 11 2022 Justin Zobel - 0.0.19-1 - Update to 0.0.19 * Mon Aug 08 2022 RPM Fusion Release Engineering - 0.0.18-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg 5.1 * Wed Jun 08 2022 Sérgio Basto - 0.0.18-1 - Update discord to 0.0.18 * Sun Feb 20 2022 David Auer - 0.0.17-4 - (#6108) Install icon to icons/hicolor and don't hardcode path in desktop file - Remove unnecessary build requirement: sed - Fix original desktop file being shipped * Sat Feb 19 2022 Sérgio Basto - 0.0.17-3 - (#6166) fixes conflicts with files with other packages - Minor fixes (warning: File listed twice: /usr/lib64/discord/Discord) - (#5921) Adding libappindicator-gtk3 as a dependency if gtk3 is installed - Fix "warning: absolute symlink" * Thu Feb 17 2022 Eric Duvic - 0.0.17-1 - Update 0.0.17 * Thu Feb 10 2022 RPM Fusion Release Engineering - 0.0.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Sep 22 2021 Sérgio Basto - 0.0.16-1 - Update 0.0.16 * Wed Aug 04 2021 RPM Fusion Release Engineering - 0.0.15-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue May 25 2021 Sérgio Basto - 0.0.15-1 - Update 0.0.15 * Wed Mar 24 2021 Sérgio Basto - 0.0.14-1 - Update 0.0.14 * Thu Feb 04 2021 RPM Fusion Release Engineering - 0.0.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Dec 06 2020 Sérgio Basto - 0.0.13-1 - Update 0.0.13 * Fri Sep 11 2020 Sean Callaway - 0.0.12-1 * Updated to 0.0.12 * Wed Aug 19 2020 RPM Fusion Release Engineering - 0.0.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Aug 07 2020 Sean Callaway - 0.0.11-1 - Updated to 0.0.11 * Tue May 12 2020 Sean Callaway - 0.0.10-3 - Made emoji fonts a weak dependency * Sun Mar 01 2020 Sean Callaway - 0.0.10-2 - Fixed dependency issue * Wed Feb 26 2020 Sean Callaway - 0.0.10-1 - Update to 0.0.10 - Add dependency for emoji fonts * Wed Feb 05 2020 RPM Fusion Release Engineering - 0.0.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Aug 10 2019 RPM Fusion Release Engineering - 0.0.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Mar 13 2019 Sean Callaway - 0.0.9-1 - Update to 0.0.9 * Tue Mar 05 2019 RPM Fusion Release Engineering - 0.0.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jan 18 2019 Sean Callaway - 0.0.8-2 - Fix permissions issue on binary in source. * Wed Jan 16 2019 Sean Callaway - 0.0.8-1 - Updated to 0.0.8 * Sun Aug 19 2018 RPM Fusion Release Engineering - 0.0.5-3 - Rebuilt for Fedora 29 Mass Rebuild binutils issue * Fri Jul 27 2018 RPM Fusion Release Engineering - 0.0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu May 03 2018 Sean Callaway 0.0.5-1 - Update to 0.0.5 * Fri Apr 27 2018 Sean Callaway 0.0.4-3 - Added libatomic requirement. * Fri Mar 02 2018 RPM Fusion Release Engineering - 0.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 31 2018 Sean Callaway 0.0.4-1 - Update to 0.0.4 * Tue Dec 12 2017 Sean Callaway 0.0.3-1 - Update to 0.0.3 - Now using desktop-file-install. - Removed unneeded requirements. * Wed Aug 16 2017 Sean Callaway 0.0.2-1 - Update to 0.0.2 - Spec file cleanup. * Thu Jan 12 2017 Sean Callaway 0.0.1-1 - Initial build using version 0.0.1