diff --git a/libffi.spec b/libffi.spec index 78226ffd768c74a715497c47b21fefca944ce568..4199da6117fdff854f17278dc9fdc943d8bbad0a 100644 --- a/libffi.spec +++ b/libffi.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 %bcond_with bootstrap @@ -60,7 +60,12 @@ developing applications that use %{name}. # gobject-introspection failures: # https://gitlab.haskell.org/ghc/ghc/-/issues/20051 # https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/283 -%configure --disable-static --disable-exec-static-tramp +%configure \ + %ifarch riscv64 + --libdir=%{_libdir} \ + %endif + --disable-static \ + --disable-exec-static-tramp %make_build %check @@ -71,6 +76,11 @@ developing applications that use %{name}. %install %make_install +%ifarch riscv64 +mv -v ${RPM_BUILD_ROOT}%{_libdir}/lp64d/* ${RPM_BUILD_ROOT}%{_libdir}/ +rm -rf ${RPM_BUILD_ROOT}%{_libdir}/lp64d +%endif + %files %license LICENSE %{_libdir}/libffi.so.8 @@ -87,6 +97,9 @@ developing applications that use %{name}. %{_infodir}/libffi.info.* %changelog +* Sat Apr 26 2025 Shangtong Guo - 3.4.4-3 +- add support for riscv64 build + * Wed Mar 12 2025 Chunchao Zhang - 3.4.4-2 - add sw_64 support