## 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 # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} #pin to commit for patch fixes %global forgeurl0 https://github.com/Chatterino/chatterino2 %global commit0 f3559280786dbabc8cebe1951a525580d11cb2a5 %global uuid com.chatterino.chatterino %global chatterino_git_commit %{commit0} %global chatterino_git_shortcommit %(c=%{chatterino_git_commit}; echo ${c:0:7}) # Git submodules # * libcommuni %global forgeurl2 https://github.com/hemirt/libcommuni %global commit2 bb5417c451d764f57f2f1b3e1c9a81496b5521bd %global shortcommit2 %(c=%{commit2}; echo ${c:0:7}) # * settings %global forgeurl3 https://github.com/pajlada/settings %global commit3 d847148cbf0becb75e48b90c2c25b78922f4e181 %global shortcommit3 %(c=%{commit3}; echo ${c:0:7}) # * signals %global forgeurl4 https://github.com/pajlada/signals %global commit4 4b127541d30d9ae86df1553cb567cc2fc55fac46 %global shortcommit4 %(c=%{commit4}; echo ${c:0:7}) # * serialize %global forgeurl5 https://github.com/pajlada/serialize %global commit5 f4a7dbfa64e7515506bdb75f6037cb74cd37f67c %global shortcommit5 %(c=%{commit5}; echo ${c:0:7}) # * magic_enum %global forgeurl9 https://github.com/Neargye/magic_enum %global commit9 e55b9b54d5cf61f8e117cafb17846d7d742dd3b4 %global shortcommit9 %(c=%{commit9}; echo ${c:0:7}) # * certify %global forgeurl11 https://github.com/djarek/certify %global commit11 a448a3915ddac716ce76e4b8cbf0e7f4153ed1e2 %global shortcommit11 %(c=%{commit11}; echo ${c:0:7}) # * expected-lite %global forgeurl12 https://github.com/martinmoene/expected-lite %global commit12 6656728c5874fefa976ff7c67999798df7fc961d %global shortcommit12 %(c=%{commit12}; echo ${c:0:7}) Name: chatterino2 Version: 2.5.4^20251110.%{chatterino_git_shortcommit} Release: %autorelease Summary: Chat client for https://twitch.tv %forgemeta -a # Boost Software License (v1.0) Boost Software License 1.0 # ----------------------------------------------------------------------- # resources/licenses/boost_boost.txt # # BSD 3-clause "New" or "Revised" License # --------------------------------------- # lib/libcommuni/ # # Expat License # ------------- # lib/serialize/ # lib/signals/ # resources/ # # Mozilla Public License (v1.1) GNU General Public License (v2 or later) or GNU Lesser General Public License (v2.1 or later) # --------------------------------------------------------------------------------------------------------------------------- # lib/libcommuni/ # # zlib/libpng license Aladdin Free Public License # ----------------------------------------------- # lib/websocketpp/ # License: MIT and BSL-1.0 and BSD-3-Clause and zlib and GPL-2.0-or-later and LGPL-2.1-or-later and MPL-1.1 URL: %{forgeurl} Source0: %{forgesource0} Source2: %{forgesource2} Source3: %{forgesource3} Source4: %{forgesource4} Source5: %{forgesource5} Source9: %{forgesource9} Source11: %{forgesource11} Source12: %{forgesource12} # Patch0:https://patch-diff.githubusercontent.com/raw/Chatterino/chatterino2/pull/6495.diff # fixes lua system lib lookup BuildRequires: boost-devel BuildRequires: g++ BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: ninja-build BuildRequires: doxygen BuildRequires: cmake(Qt6Concurrent) BuildRequires: cmake(Qt6Core) BuildRequires: cmake(Qt6Gui) BuildRequires: cmake(Qt6Keychain) BuildRequires: cmake(Qt6LinguistTools) BuildRequires: cmake(Qt6Multimedia) BuildRequires: cmake(Qt6Network) BuildRequires: cmake(Qt6Svg) BuildRequires: cmake(Qt6Widgets) BuildRequires: cmake(Qt6Core5Compat) BuildRequires: cmake(RapidJSON) BuildRequires: cmake(Qt6CorePrivate) # BuildRequires: cmake(sol2) BuildRequires: pkgconfig(libsecret-1) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(websocketpp) BuildRequires: pkgconfig(xkbcommon) BuildRequires: pkgconfig(libnotify) BuildRequires: miniaudio-devel # because directory ownership Requires: hicolor-icon-theme # Current submodules patched so not possible to build with system packages # * https://github.com/Chatterino/chatterino2/issues/1444 Provides: bundled(expected-lite) = 0.8.0~git%{shortcommit12} Provides: bundled(libcommuni) = 3.7.0~git%{shortcommit2} Provides: bundled(magic_enum) = 0.9.3~git%{shortcommit9} Provides: bundled(serialize) = 0~git%{shortcommit5} Provides: bundled(settings) = 0~git%{shortcommit3} Provides: bundled(signals) = 0.1.0~git%{shortcommit4} Provides: bundled(certify) = 0.0.0~git%{shortcommit4} %description Chatterino 2 is a chat client for Twitch.tv. The Chatterino 2 wiki can be found https://wiki.chatterino.com/. %prep %forgeautosetup -z0 cd lib cd libcommuni tar -xf %{SOURCE2} --strip-components=1 cd ../settings tar -xf %{SOURCE3} --strip-components=1 cd ../signals tar -xf %{SOURCE4} --strip-components=1 cd ../serialize tar -xf %{SOURCE5} --strip-components=1 cd ../magic_enum tar -xf %{SOURCE9} --strip-components=1 cd ../expected-lite tar -xf %{SOURCE12} --strip-components=1 cd ../certify tar -xf %{SOURCE11} --strip-components=1 cd ../.. %build export GIT_COMMIT=%{chatterino_git_commit} export GIT_HASH=%{chatterino_git_shortcommit} export GIT_RELEASE=%{version} #NOTE: we need to fix `-DCHATTERINO_PLUGINS=OFF` in te future %cmake -G Ninja \ -DUSE_SYSTEM_QTKEYCHAIN=ON \ -DUSE_SYSTEM_MINIAUDIO=ON \ -DCHATTERINO_PLUGINS=OFF %cmake_build %install %cmake_install install -Dpm 0644 resources/%{uuid}.appdata.xml \ %{buildroot}%{_metainfodir}/%{uuid}.appdata.xml install -Dpm 0644 resources/icon.png \ %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/chatterino.png %check appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml desktop-file-validate %{buildroot}%{_datadir}/applications/%{uuid}.desktop %files %license LICENSE %doc README.md %{_bindir}/chatterino %{_datadir}/applications/%{uuid}.desktop %{_datadir}/icons/hicolor/256x256/apps/*chatterino.png %{_metainfodir}/*.xml %changelog ## START: Generated by rpmautospec * Thu Nov 13 2025 solomocyj - 2.5.4^20251110.f355928-1 - Uncommitted changes * Wed Jul 20 2022 Fedora Release Engineering - 2.3.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed May 04 2022 Thomas Rodgers - 2.3.5-2 - Rebuilt for Boost 1.78 * Sat Apr 09 2022 Christian Birk - 2.3.5-1 - Update to 2.3.5 | rh#2073690 * Wed Jan 19 2022 Fedora Release Engineering - 2.3.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Sep 14 2021 Sahana Prasad - 2.3.4-3 - Rebuilt with OpenSSL 3.0.0 * Wed Aug 18 2021 Artem Polishchuk - 2.3.4-2 - build: Rebuilt for Boost | rh#1991862 * Sun Aug 08 2021 Artem Polishchuk - 2.3.4-1 - build(update): 2.3.4 * Fri Aug 06 2021 Jonathan Wakely - 2.3.3-3 - Rebuilt for Boost 1.76 * Wed Jul 21 2021 Fedora Release Engineering - 2.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jul 15 2021 Artem Polishchuk - 2.3.3-1 - build(update): 2.3.3 * Mon May 17 2021 Artem Polishchuk - 2.3.2-1 - build(update): 2.3.2 * Tue May 04 2021 Artem Polishchuk - 2.3.1-1 - build(update): 2.3.1 * Wed Apr 14 2021 Artem Polishchuk - 2.3.0-1 - build(update): 2.3.0 * Tue Jan 26 2021 Fedora Release Engineering - 2.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 22 2021 Jonathan Wakely - 2.2.2-2 - Rebuilt for Boost 1.75 * Thu Nov 5 2020 Artem Polishchuk - 2.2.2-1 - build(update): 2.2.2 * Mon Jul 27 2020 Fedora Release Engineering - 2.1.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat May 30 2020 Jonathan Wakely - 2.1.7-2 - Rebuilt for Boost 1.73 * Fri Feb 28 2020 Artem Polishchuk - 2.1.7-1 - Update to 2.1.7 - Add new submodule 'qtkeychain' - Drop patches (upstreamed now) - Disable LTO * Tue Jan 28 2020 Fedora Release Engineering - 2.1.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Dec 21 2019 Artem Polishchuk - 2.1.4-8 - Build with system 'rapidjson' * Fri Dec 13 2019 Artem Polishchuk - 2.1.4-7 - Initial package ## END: Generated by rpmautospec