fix(metainfo): Separate metainfo between PrismLauncher and nightly (#7412) (#7431)

* fix(metainfo): Separate metainfo between PrismLauncher and nightly

* oops

* add pretty name, add qrencode

this is a surprise tool that can help us later

* bump release of prismlauncher stable

* change metainfo id in files

* try out the rpm macro quote

* override explicit

(cherry picked from commit cff33364f9)

Co-authored-by: Pornpipat Popum <cappy@cappuchino.xyz>
This commit is contained in:
Raboneko
2025-11-17 09:43:58 -08:00
committed by GitHub
parent b62b7b625d
commit 67be312213
3 changed files with 17 additions and 4 deletions
@@ -0,0 +1,4 @@
<component>
<id>org.prismlauncher.PrismLauncher-nightly</id>
<name>Prism Launcher (Nightly)</name>
</component>
@@ -1,5 +1,7 @@
%global real_name prismlauncher
%global nice_name PrismLauncher
%global name_pretty %{quote:Prism Launcher (Nightly)}
%global appid org.prismlauncher.PrismLauncher-nightly
%global commit 8b4ad7aa49be5bff1473b9242a759945473a3c3b
%global shortcommit %(c=%{commit}; echo ${c:0:7})
@@ -36,10 +38,12 @@ License: GPL-3.0-only AND Apache-2.0 AND LGPL-3.0-only AND GPL-3.0-or-l
Group: Amusements/Games
URL: https://prismlauncher.org/
Patch0: 0001-find-cmark-with-pkgconfig.patch
Source2: nightly.xml
BuildRequires: cmake >= 3.15
BuildRequires: extra-cmake-modules
BuildRequires: gcc-c++
BuildRequires: terra-appstream-helper
# JDKs less than the most recent release & LTS are no longer in the default
# Fedora repositories
# Make sure you have Adoptium's repositories enabled
@@ -55,6 +59,7 @@ BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
BuildRequires: tomlplusplus-devel
BuildRequires: cmake(ghc_filesystem)
BuildRequires: qrencode-devel
BuildRequires: cmake(Qt%{qt_version}Concurrent) >= %{min_qt_version}
BuildRequires: cmake(Qt%{qt_version}Core) >= %{min_qt_version}
BuildRequires: cmake(Qt%{qt_version}Gui) >= %{min_qt_version}
@@ -138,7 +143,8 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt
%install
%cmake_install
%terra_appstream -o %{SOURCE2}
rm -f %{buildroot}%{_datadir}/metainfo/org.prismlauncher.PrismLauncher.metainfo.xml
%check
%ctest
@@ -154,7 +160,7 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt
%{_datadir}/%{nice_name}/qtlogging.ini
%{_datadir}/%{nice_name}/NewLaunchLegacy.jar
%{_datadir}/applications/org.prismlauncher.PrismLauncher.desktop
%{_metainfodir}/org.prismlauncher.PrismLauncher.metainfo.xml
%{_metainfodir}/%{appid}.metainfo.xml
%{_datadir}/icons/hicolor/scalable/apps/org.prismlauncher.PrismLauncher.svg
%{_datadir}/mime/packages/modrinth-mrpack-mime.xml
%{_datadir}/qlogging-categories%{qt_version}/prismlauncher.categories
+5 -2
View File
@@ -1,6 +1,7 @@
%global real_name prismlauncher
%global nice_name PrismLauncher
%bcond_without qt6
%global appid org.prismlauncher.PrismLauncher
# Change this variables if you want to use custom keys
# Leave blank if you want to build Prism Launcher without MSA id or curseforge api key
@@ -23,7 +24,7 @@ Name: prismlauncher
Name: prismlauncher-qt5
%endif
Version: 9.4
Release: 1%?dist
Release: 2%?dist
Summary: Minecraft launcher with ability to manage multiple instances
# see COPYING.md for more information
# each file in the source also contains a SPDX-License-Identifier header that declares its license
@@ -45,6 +46,7 @@ BuildRequires: temurin-17-jdk
%else
BuildRequires: java-17-openjdk-devel
%endif
BuildRequires: anda-srpm-macros
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
BuildRequires: cmake(ghc_filesystem)
@@ -57,6 +59,7 @@ BuildRequires: cmake(Qt%{qt_version}Widgets) >= %{min_qt_version}
BuildRequires: cmake(Qt%{qt_version}Xml) >= %{min_qt_version}
BuildRequires: cmake(Qt%{qt_version}NetworkAuth) >= %{min_qt_version}
BuildRequires: tomlplusplus-devel
BuildRequires: qrencode-devel
%if %{with qt6}
BuildRequires: cmake(Qt6Core5Compat)
@@ -129,7 +132,7 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt
%install
%cmake_install
%terra_appstream
%check
%ctest