forked from pool/julia
- Fix libopenblas64_.so missing by updating LD_LIBRARY_PATH
- Fix where there should be /usr/lib64/julia/ and /usr/lib/julia/ OBS-URL: https://build.opensuse.org/package/show/science/julia?expand=0&rev=129
This commit is contained in:
parent
c06d873824
commit
80ccd0c5ec
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 12 07:50:51 UTC 2023 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
|
||||
|
||||
- Fix libopenblas64_.so missing by updating LD_LIBRARY_PATH
|
||||
- Fix where there should be /usr/lib64/julia/ and /usr/lib/julia/
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 11 14:02:22 UTC 2023 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
|
||||
|
||||
|
10
julia.spec
10
julia.spec
@ -254,7 +254,7 @@ export LDFLAGS="$LDFLAGS -latomic"
|
||||
# Ref.: https://build.opensuse.org/package/show/security:tls/mbedtls
|
||||
export CFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized"
|
||||
export CXXFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized"
|
||||
export LD_LIBRARY_PATH=%{_builddir}/%{buildsubdir}/build/usr/lib:%{_builddir}/%{buildsubdir}/build%{_libdir}
|
||||
export LD_LIBRARY_PATH=%{_builddir}/%{buildsubdir}/build/usr/lib:%{_builddir}/%{buildsubdir}/build%{_libdir}:%{_builddir}/%{buildsubdir}/usr/lib
|
||||
|
||||
pushd deps
|
||||
export USE_BLAS64=1
|
||||
@ -321,7 +321,6 @@ if [ "x%{_lib}" != xlib ] ; then
|
||||
cp -a %{_builddir}/%{buildsubdir}/%{_libdir}/* %{_builddir}/%{buildsubdir}/build/%{_libdir}
|
||||
cp -a %{_builddir}/%{buildsubdir}/build/usr/lib/* %{_builddir}/%{buildsubdir}/build/%{_libdir}
|
||||
rm -rf %{_builddir}/%{buildsubdir}/build/usr/lib/
|
||||
ln -sf %{_lib} %{_builddir}/%{buildsubdir}/build/usr/lib
|
||||
# make -C deps install-somepackage goes to top-level folder
|
||||
else
|
||||
# Since it's not there so we also just copy it anyway
|
||||
@ -341,7 +340,7 @@ rm -rf %{_builddir}/%{buildsubdir}/usr/
|
||||
# Ref.: https://build.opensuse.org/package/show/security:tls/mbedtls
|
||||
export CFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized"
|
||||
export CXXFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized"
|
||||
export LD_LIBRARY_PATH=%{_builddir}/%{buildsubdir}/build/usr/lib:%{_builddir}/%{buildsubdir}/build%{_libdir}
|
||||
export LD_LIBRARY_PATH=%{_builddir}/%{buildsubdir}/build/usr/lib:%{_builddir}/%{buildsubdir}/build%{_libdir}:%{_builddir}/%{buildsubdir}/usr/lib
|
||||
|
||||
make install DESTDIR=%{buildroot} \
|
||||
MARCH=%{julia_march} \
|
||||
@ -442,6 +441,11 @@ rm %{buildroot}%{_datadir}/appdata/julia.appdata.xml
|
||||
|
||||
mv %{buildroot}%{_bindir}/julia %{buildroot}%{_bindir}/julia-base
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||
|
||||
if [ "x%{_lib}" != xlib ] ; then
|
||||
ln -sf %{buildroot}%{_libdir}/julia %{_prefix}/lib/julia
|
||||
fi
|
||||
|
||||
ln -sf %{_sysconfdir}/alternatives/julia %{buildroot}%{_bindir}/julia
|
||||
|
||||
%post
|
||||
|
Loading…
Reference in New Issue
Block a user