SHA256
1
0
forked from pool/julia
Soc Virnyl Estela 2023-12-17 15:37:23 +00:00 committed by Git OBS Bridge
parent 40226658e8
commit 6babdb9cd7

View File

@ -32,13 +32,19 @@
%define libjulia_sover_major 1
%define libjulia_sover_minor 9
%define libname libjulia%{libjulia_sover_major}%{libjulia_sover_minor}
%if "@BUILD_FLAVOR@%{nil}" == "compat"
%define compat_mode 1
%else
%define compat_mode 0
%endif
%if 0%{?compat_mode}
%define libname libjulia-compat%{libjulia_sover_major}%{libjulia_sover_minor}
%else
%define libname libjulia%{libjulia_sover_major}%{libjulia_sover_minor}
%endif
# LTO currently makes building blastrampoline and Julia itself fail
# It is not enabled upstream anyway
%global _lto_cflags %nil
@ -179,14 +185,16 @@ debugging version of Julia. This package is normally not needed when programming
in the Julia language, but rather for embedding Julia into external programs or
debugging Julia itself.
%if 0%{?compat_mode} || 1%{?compat_mode}
%package -n %{libname}
Summary: Julia shared object libraries
Group: System/Libraries
%if 0%{?compat_mode}
Conflicts: libjulia%{libjulia_sover_major}%{libjulia_sover_minor}
Provides: libjulia%{libjulia_sover_major}%{libjulia_sover_minor}
%endif
%description -n %{libname}
Contains library files for interacting with Julia through C interfaces.
%endif
%prep
%setup -q -n julia-%{version}
@ -496,9 +504,7 @@ fi
%{_includedir}/julia/
%{_libdir}/libjulia.so
%if 0%{?compat_mode} || 1%{?compat_mode}
%files -n %{libname}
%{_libdir}/libjulia.so.*
%endif
%changelog