forked from pool/julia
This commit is contained in:
parent
40226658e8
commit
6babdb9cd7
16
julia.spec
16
julia.spec
@ -32,13 +32,19 @@
|
|||||||
|
|
||||||
%define libjulia_sover_major 1
|
%define libjulia_sover_major 1
|
||||||
%define libjulia_sover_minor 9
|
%define libjulia_sover_minor 9
|
||||||
%define libname libjulia%{libjulia_sover_major}%{libjulia_sover_minor}
|
|
||||||
%if "@BUILD_FLAVOR@%{nil}" == "compat"
|
%if "@BUILD_FLAVOR@%{nil}" == "compat"
|
||||||
%define compat_mode 1
|
%define compat_mode 1
|
||||||
%else
|
%else
|
||||||
%define compat_mode 0
|
%define compat_mode 0
|
||||||
%endif
|
%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
|
# LTO currently makes building blastrampoline and Julia itself fail
|
||||||
# It is not enabled upstream anyway
|
# It is not enabled upstream anyway
|
||||||
%global _lto_cflags %nil
|
%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
|
in the Julia language, but rather for embedding Julia into external programs or
|
||||||
debugging Julia itself.
|
debugging Julia itself.
|
||||||
|
|
||||||
%if 0%{?compat_mode} || 1%{?compat_mode}
|
|
||||||
%package -n %{libname}
|
%package -n %{libname}
|
||||||
Summary: Julia shared object libraries
|
Summary: Julia shared object libraries
|
||||||
Group: System/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}
|
%description -n %{libname}
|
||||||
Contains library files for interacting with Julia through C interfaces.
|
Contains library files for interacting with Julia through C interfaces.
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n julia-%{version}
|
%setup -q -n julia-%{version}
|
||||||
@ -496,9 +504,7 @@ fi
|
|||||||
%{_includedir}/julia/
|
%{_includedir}/julia/
|
||||||
%{_libdir}/libjulia.so
|
%{_libdir}/libjulia.so
|
||||||
|
|
||||||
%if 0%{?compat_mode} || 1%{?compat_mode}
|
|
||||||
%files -n %{libname}
|
%files -n %{libname}
|
||||||
%{_libdir}/libjulia.so.*
|
%{_libdir}/libjulia.so.*
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user