SHA256
1
0
forked from pool/julia

- Julia on leap has trouble looking for libgfortran5 so symlinking it to fix it

- Format specfile

OBS-URL: https://build.opensuse.org/package/show/science/julia?expand=0&rev=184
This commit is contained in:
Soc Virnyl Estela 2024-05-17 08:22:56 +00:00 committed by Git OBS Bridge
parent e76bee6dab
commit 18bf470483
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri May 17 07:31:28 UTC 2024 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
- Julia on leap has trouble looking for libgfortran5 so symlinking it to fix it
- Format specfile
-------------------------------------------------------------------
Fri May 17 00:17:42 UTC 2024 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>

View File

@ -193,10 +193,12 @@ Requires: readline
# Libraries used by CompilerSupportLibraries_jll, blastrampoline,
# nghttp2_jll but not detected as they are dlopen()ed but not linked to
%if 0%{?__isa_bits} == 64
BuildRequires: libgfortran.so.5()(64bit)
Requires: libgfortran.so.5()(64bit)
Requires: libgomp.so.1()(64bit)
Requires: libmbedcrypto.so.16()(64bit)
%else
BuildRequires: libgfortran.so.5
Requires: libgfortran.so.5
Requires: libgomp.so.1
Requires: libmbedcrypto.so.15
@ -334,6 +336,9 @@ unlink %{_builddir}/%{buildsubdir}/build/usr/lib || true
mkdir -p %{_builddir}/%{buildsubdir}/build/%{_libdir}/
ln -sf %{_libdir}/libgcc_s.so.1 %{_builddir}/%{buildsubdir}/build/%{_libdir}/libgcc_s.so.1
# I am not sure why Julia cannot find also libgfortran5.so on Leap...
ln -sf %{_libdir}/libgfortran.so.5 %{_builddir}/%{buildsubdir}/build/%{_libdir}/libgfortran.so.5
# Idk how it can't find libblastrampoline?
ln -sf %{_libdir}/libblastrampoline.so %{_builddir}/%{buildsubdir}/build/%{_libdir}/libblastrampoline.so
@ -420,6 +425,7 @@ RELEASE_BANNER="openSUSE Tumbleweed - Built on $(date -u)"
SLE_VERSION="$(echo %{sle_version} | sed -E 's|^(15)0([0-9])00|\1.\2|m')"
RELEASE_BANNER="openSUSE Leap ${SLE_VERSION} - Built on $(date -u)"
%endif
make install DESTDIR="%{buildroot}" \
MARCH="%{julia_march}" \
%ifarch x86_64 || x86_64_v3