chore (minecraft-java): add %check (#8601) (#8614)

(cherry picked from commit 3738e4120d)

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
Raboneko
2025-12-25 00:09:49 -08:00
committed by GitHub
parent 4ddab21cf7
commit 444d3cf09a
2 changed files with 12 additions and 8 deletions
+10 -6
View File
@@ -6,7 +6,7 @@
Name: minecraft-launcher
Version: 2.3.2
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Official launcher for Minecraft
License: https://www.minecraft.net/en-us/eula
@@ -19,7 +19,7 @@ Packager: Cappy Ishihara <cappy@fyralabs.com>
ExclusiveArch: x86_64
BuildRequires: terra-appstream-helper anda-srpm-macros
BuildRequires: terra-appstream-helper anda-srpm-macros desktop-file-utils
Requires: java >= 1.8.0
Requires: gtk3
Requires: libgpg-error
@@ -35,15 +35,19 @@ The official Linux release of the launcher for Minecraft, a game about placing b
%install
install -Dm755 %{_builddir}/minecraft-launcher/minecraft-launcher %{buildroot}%{_bindir}/minecraft-launcher
install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{appid}.desktop
install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{appid}.svg
install -Dm644 %{SOURCE1} %{buildroot}%{_appsdir}/%{appid}.desktop
install -Dm644 %{SOURCE2} %{buildroot}%{_scalableiconsdir}/%{appid}.svg
%terra_appstream -o %{SOURCE3}
cat %{buildroot}%{_metainfodir}/%{appid}.metainfo.xml
%check
desktop-file-validate %{buildroot}%{_appsdir}/%{appid}.desktop
%files
%{_bindir}/minecraft-launcher
%{_datadir}/applications/%{appid}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{appid}.svg
%{_appsdir}/%{appid}.desktop
%{_scalableiconsdir}/%{appid}.svg
%{_metainfodir}/%{appid}.metainfo.xml
%changelog
@@ -1,9 +1,9 @@
[Desktop Entry]
Type=Application
Version=2.0
Version=1.0
Name=Minecraft Launcher
Comment=Official Minecraft Launcher
Exec=/usr/bin/minecraft-launcher
Icon=com.mojang.Minecraft
Terminal=false
Categories=Game;Application;
Categories=Game