Skip to content

Commit

Permalink
[prismlauncher-nightly] Use system libs (#1376)
Browse files Browse the repository at this point in the history
Signed-off-by: Trung Lê <[email protected]>
(cherry picked from commit c44ad50)
  • Loading branch information
runlevel5 authored and raboneko committed Jun 20, 2024
1 parent 928748c commit 0922a10
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions anda/games/prismlauncher-nightly/prismlauncher-nightly.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
%global commit 8014283bf4150fa6eb3f9d5d4ebaf37262a17308
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global libnbtplusplus_commit a5e8fd52b8bf4ab5d5bcc042b2a247867589985f
%global quazip_commit 6117161af08e366c37499895b00ef62f93adc345
%global tomlplusplus_commit 7eb2ffcc09f8e9890dc0b77ff8ab00fc53b1f2b8

%global commit_date 20240619
%global snapshot_info %{commit_date}.%{shortcommit}
Expand Down Expand Up @@ -40,8 +38,6 @@ Group: Amusements/Games
URL: https://prismlauncher.org/
Source0: https://github.com/PrismLauncher/PrismLauncher/archive/%{commit}/%{real_name}-%{shortcommit}.tar.gz
Source1: https://github.com/PrismLauncher/libnbtplusplus/archive/%{libnbtplusplus_commit}/libnbtplusplus-%{libnbtplusplus_commit}.tar.gz
Source2: https://github.com/stachenov/quazip/archive/%{quazip_commit}/quazip-%{quazip_commit}.tar.gz
Source3: https://github.com/marzer/tomlplusplus/archive/%{tomlplusplus_commit}/tomlplusplus-%{tomlplusplus_commit}.tar.gz
Patch0: 0001-find-cmark-with-pkgconfig.patch

BuildRequires: cmake >= 3.15
Expand All @@ -50,6 +46,7 @@ BuildRequires: gcc-c++
BuildRequires: java-17-openjdk-devel
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
BuildRequires: tomlplusplus-devel
BuildRequires: cmake(ghc_filesystem)
BuildRequires: cmake(Qt%{qt_version}Concurrent) >= %{min_qt_version}
BuildRequires: cmake(Qt%{qt_version}Core) >= %{min_qt_version}
Expand All @@ -62,6 +59,9 @@ BuildRequires: cmake(Qt%{qt_version}NetworkAuth) >= %{min_qt_version}

%if %{with qt6}
BuildRequires: cmake(Qt6Core5Compat)
BuildRequires: quazip-qt6-devel
%else
BuildRequires: quazip-qt5-devel
%endif

BuildRequires: pkgconfig(libcmark)
Expand Down Expand Up @@ -104,13 +104,9 @@ multiple installations of Minecraft at once (Fork of MultiMC)
%autosetup -p1 -n PrismLauncher-%{commit}

tar -xzf %{SOURCE1} -C libraries
tar -xvf %{SOURCE2} -C libraries
tar -xvf %{SOURCE3} -C libraries

rmdir libraries/{extra-cmake-modules,filesystem,libnbtplusplus,quazip,tomlplusplus,zlib}/
rmdir libraries/{extra-cmake-modules,filesystem,libnbtplusplus,zlib}/
mv -f libraries/libnbtplusplus-%{libnbtplusplus_commit} libraries/libnbtplusplus
mv -f libraries/quazip-%{quazip_commit} libraries/quazip
mv -f libraries/tomlplusplus-%{tomlplusplus_commit} libraries/tomlplusplus

# Do not set RPATH
sed -i "s|\$ORIGIN/||" CMakeLists.txt
Expand Down Expand Up @@ -157,6 +153,9 @@ sed -i "s|\$ORIGIN/||" CMakeLists.txt


%changelog
* Wed Jun 19 2024 Trung Lê <8 at tle dot id dot au> - 9.0^20240619.8014283-1
- use system quazip-qt and tomlplusplus

* Wed Jul 26 2023 seth <getchoo at tuta dot io> - 8.0^20230726.4f00012-1
- remove terra-fractureiser-detector from recommends, use proper build platform,
and add patches for epel/older fedora versions
Expand Down

0 comments on commit 0922a10

Please sign in to comment.