forked from pool/julia
- Attempt fix when libLLVM-14jl is missing by moving build directory contents correctly.
- Allow linking of openblas properly. - Create fakename of libopenblas.so.0 and symlink it to julia's set of sofiles - Just fdupes starting from the top buildroot directory OBS-URL: https://build.opensuse.org/package/show/science/julia?expand=0&rev=120
This commit is contained in:
parent
8a451ee5e6
commit
5b680748cb
@ -1,7 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 11 01:18:01 UTC 2023 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
|
||||
Mon Dec 11 04:35:23 UTC 2023 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
|
||||
|
||||
- Attempt fix when libLLVM-14jl is missing
|
||||
- Attempt fix when libLLVM-14jl is missing by moving build directory contents correctly.
|
||||
- Allow linking of openblas properly.
|
||||
- Create fakename of libopenblas.so.0 and symlink it to julia's set of sofiles
|
||||
- Just fdupes starting from the top buildroot directory
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 10 14:59:09 UTC 2023 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
|
||||
|
13
julia.spec
13
julia.spec
@ -249,11 +249,13 @@ sed "s/ \$(build_prefix)\\/manifest\\/zlib//" -i deps/llvm.mk
|
||||
export LDFLAGS="$LDFLAGS -latomic"
|
||||
%endif
|
||||
|
||||
|
||||
|
||||
# We need these compilation flags to avoid error when building MBEDTLS with
|
||||
# GCC-11.
|
||||
# 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 CFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized $(pkg-config --cflags --libs openblas)"
|
||||
export CXXFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized $(pkg-config --cflags --libs openblas)"
|
||||
export LD_LIBRARY_PATH=%{_builddir}/%{buildsubdir}/build/usr/lib:%{_builddir}/%{buildsubdir}/build%{_libdir}
|
||||
|
||||
make %{?_smp_mflags} \
|
||||
@ -325,8 +327,8 @@ fi
|
||||
# We need these compilation flags to avoid error when building MBEDTLS with
|
||||
# GCC-11.
|
||||
# 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 CFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized $(pkg-config --cflags --libs openblas)"
|
||||
export CXXFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized $(pkg-config --cflags --libs openblas)"
|
||||
export LD_LIBRARY_PATH=%{_builddir}/%{buildsubdir}/build/usr/lib:%{_builddir}/%{buildsubdir}/build%{_libdir}
|
||||
|
||||
make install DESTDIR=%{buildroot} \
|
||||
@ -398,6 +400,7 @@ mv -f %{buildroot}%{_datadir}/doc/julia/* %{buildroot}%{_docdir}/julia/
|
||||
rm -r %{buildroot}%{_datadir}/doc/julia
|
||||
|
||||
ln -sfv /var/lib/ca-certificates/ca-bundle.pem %{buildroot}%{_datadir}/julia/cert.pem # Needed by some julia packages
|
||||
ln -sfv %{_libdir}/libopenblas.so.0 %{buildroot}%{_libdir}/julia/libopenblas64_.so # Ironic that we don't need INTERFACE64 :)
|
||||
|
||||
# Remove execution permission on documentation files.
|
||||
chmod -x+X -R %{buildroot}%{_docdir}/julia/*
|
||||
@ -425,7 +428,7 @@ rm %{buildroot}%{_datadir}/appdata/julia.appdata.xml
|
||||
%endif
|
||||
|
||||
# Remove duplicated files.
|
||||
%fdupes %{buildroot}%{_datadir}/
|
||||
%fdupes %{buildroot}
|
||||
|
||||
%suse_update_desktop_file -r julia Science Math
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user