diff --git a/hyprland-git/hyprland-git.spec b/hyprland-git/hyprland-git.spec index 45d14e1..9c5204d 100644 --- a/hyprland-git/hyprland-git.spec +++ b/hyprland-git/hyprland-git.spec @@ -28,6 +28,7 @@ License: BSD-3-Clause AND BSD-2-Clause AND HPND-sell-variant AND LGPL-2.1 URL: https://github.com/hyprwm/Hyprland %if 0%{?bumpver} Source0: %{url}/archive/%{hyprland_commit}/%{name}-%{hyprland_shortcommit}.tar.gz +Patch: dynamicPointerCast.patch Source2: https://github.com/hyprwm/hyprland-protocols/archive/%{protocols_commit}/protocols-%{protocols_shortcommit}.tar.gz Source3: https://github.com/canihavesomecoffee/udis86/archive/%{udis86_commit}/udis86-%{udis86_shortcommit}.tar.gz %else @@ -35,7 +36,6 @@ Source0: %{url}/releases/download/v%{version}/source-v%{version}.tar.gz %endif Source4: macros.hyprland Source5: https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-%{libxkbcommon_version}/libxkbcommon-%{libxkbcommon_version}.tar.gz -Patch: dynamicPointerCast.patch %{lua: hyprdeps = { @@ -201,7 +201,8 @@ Requires: pkgconfig(xkbcommon) %prep -%autosetup -n %{?bumpver:Hyprland-%{hyprland_commit}} %{!?bumpver:hyprland-source} -N -p1 +%autosetup -n %{?bumpver:Hyprland-%{hyprland_commit}} %{!?bumpver:hyprland-source} -N +%autopatch %if 0%{?fedora} < 43 mkdir -p subprojects/libxkbcommon tar -xf %{SOURCE5} -C subprojects/libxkbcommon --strip=1