SHA256
1
0
forked from pool/julia

- Update rpmlintrc to ignore some warnings

- Fix dangling symlinks errors

OBS-URL: https://build.opensuse.org/package/show/science/julia?expand=0&rev=190
This commit is contained in:
Soc Virnyl Estela 2024-05-18 11:34:38 +00:00 committed by Git OBS Bridge
parent 1844eac72b
commit 733984b498
3 changed files with 24 additions and 1 deletions

View File

@ -10,3 +10,9 @@ addFilter("W: hidden-file-or-dir /usr/share/julia/stdlib/v1.9/Pkg/test/test_pack
# it is dlopened
addFilter("explicit-lib-dependency")
addFilter("devel-dependency")
# Update alternatives does provide the binary
addFilter("W: desktopfile-without-binary /usr/share/applications/julia.desktop julia")
# We should not touch these
addFilter("W: hidden-file-or-dir /usr/share/julia/base/JuliaSyntax/.mailmap")
addFilter("W: hidden-file-or-dir /usr/share/julia/stdlib/v1.10/Pkg/test/test_packages/AugmentedPlatform/.pkg")
addFilter("W: hidden-file-or-dir /usr/share/julia/stdlib/v1.10/Pkg/test/test_packages/AugmentedPlatform/.pkg")

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sat May 18 11:34:00 UTC 2024 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
- Update rpmlintrc to ignore some warnings
-------------------------------------------------------------------
Sat May 18 11:26:17 UTC 2024 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
- Fix dangling symlinks errors
-------------------------------------------------------------------
Sat May 18 00:32:29 UTC 2024 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>

View File

@ -342,7 +342,7 @@ ln -sf %{_libdir}/libgcc_s.so.1 %{_builddir}/%{buildsubdir}/build/%{_libdir}/lib
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
ln -sf %{_libdir}/libblastrampoline.so.5 %{_builddir}/%{buildsubdir}/build/%{_libdir}/libblastrampoline.so.5
export LD_LIBRARY_PATH="%{_builddir}/%{buildsubdir}/build/usr/lib:%{_builddir}/%{buildsubdir}/build%{_libdir}:/usr/lib64:/usr/lib"
make MARCH=%{julia_march} prefix=%{_prefix} libdir=%{_libdir} bindir=%{_bindir} build_prefix="%{_builddir}/%{buildsubdir}/build%{_prefix}" build_libdir="%{_builddir}/%{buildsubdir}/build%{_libdir}" -C deps install-pcre %{__julia_opts}
@ -449,6 +449,13 @@ make install DESTDIR="%{buildroot}" \
TAGGED_RELEASE_BANNER="${RELEASE_BANNER}"
%endif
# Dangling symlinks
pushd %{buildroot}%{_libdir}/julia
ln -sf ../libblastrampoline.so libblastrampoline.so
ln -sf ../libgcc_s.so.1 libgcc_s.so.1
ln -sf ../libgfortran.so.5 libgfortran.so.5
popd
# GZip man page.
gzip %{buildroot}/%{_mandir}/man1/julia.1