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:
parent
e76bee6dab
commit
18bf470483
@ -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>
|
Fri May 17 00:17:42 UTC 2024 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
|
||||||
|
|
||||||
|
@ -193,10 +193,12 @@ Requires: readline
|
|||||||
# Libraries used by CompilerSupportLibraries_jll, blastrampoline,
|
# Libraries used by CompilerSupportLibraries_jll, blastrampoline,
|
||||||
# nghttp2_jll but not detected as they are dlopen()ed but not linked to
|
# nghttp2_jll but not detected as they are dlopen()ed but not linked to
|
||||||
%if 0%{?__isa_bits} == 64
|
%if 0%{?__isa_bits} == 64
|
||||||
|
BuildRequires: libgfortran.so.5()(64bit)
|
||||||
Requires: libgfortran.so.5()(64bit)
|
Requires: libgfortran.so.5()(64bit)
|
||||||
Requires: libgomp.so.1()(64bit)
|
Requires: libgomp.so.1()(64bit)
|
||||||
Requires: libmbedcrypto.so.16()(64bit)
|
Requires: libmbedcrypto.so.16()(64bit)
|
||||||
%else
|
%else
|
||||||
|
BuildRequires: libgfortran.so.5
|
||||||
Requires: libgfortran.so.5
|
Requires: libgfortran.so.5
|
||||||
Requires: libgomp.so.1
|
Requires: libgomp.so.1
|
||||||
Requires: libmbedcrypto.so.15
|
Requires: libmbedcrypto.so.15
|
||||||
@ -334,6 +336,9 @@ unlink %{_builddir}/%{buildsubdir}/build/usr/lib || true
|
|||||||
mkdir -p %{_builddir}/%{buildsubdir}/build/%{_libdir}/
|
mkdir -p %{_builddir}/%{buildsubdir}/build/%{_libdir}/
|
||||||
ln -sf %{_libdir}/libgcc_s.so.1 %{_builddir}/%{buildsubdir}/build/%{_libdir}/libgcc_s.so.1
|
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?
|
# Idk how it can't find libblastrampoline?
|
||||||
ln -sf %{_libdir}/libblastrampoline.so %{_builddir}/%{buildsubdir}/build/%{_libdir}/libblastrampoline.so
|
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')"
|
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)"
|
RELEASE_BANNER="openSUSE Leap ${SLE_VERSION} - Built on $(date -u)"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
make install DESTDIR="%{buildroot}" \
|
make install DESTDIR="%{buildroot}" \
|
||||||
MARCH="%{julia_march}" \
|
MARCH="%{julia_march}" \
|
||||||
%ifarch x86_64 || x86_64_v3
|
%ifarch x86_64 || x86_64_v3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user