From 0eec3b1d564b7afe3b108dbdb40344f4d79cde45cc6d79a6f8a2bad8da3f0333 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Sun, 17 Dec 2023 10:50:38 +0000 Subject: [PATCH] - There should be a package libjulia19. - CFLAGS and CXXFLAGS use %optflags. OBS-URL: https://build.opensuse.org/package/show/science/julia?expand=0&rev=140 --- julia.changes | 6 ++++++ julia.spec | 37 +++++++++++++++++++++++-------------- 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/julia.changes b/julia.changes index c1184d4..5d7215f 100644 --- a/julia.changes +++ b/julia.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Dec 17 10:46:54 UTC 2023 - Soc Virnyl Estela + +- There should be a package libjulia19. +- CFLAGS and CXXFLAGS use %optflags. + ------------------------------------------------------------------- Wed Dec 13 00:36:26 UTC 2023 - Soc Virnyl Estela diff --git a/julia.spec b/julia.spec index d8c6603..38e7403 100644 --- a/julia.spec +++ b/julia.spec @@ -32,6 +32,7 @@ %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 @@ -147,6 +148,8 @@ ExclusiveArch: x86_64 %else ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 ppc64le %endif +# Julia requires this or it will break +Requires: %{name}-devel = %{version} %description Julia is a high-level, high-performance dynamic programming language for @@ -162,11 +165,12 @@ to use julia, please install juliaup instead. %package devel Summary: Julia development, debugging and testing files +Version: %{version} Group: Development/Languages/Other -Requires: %{name} = %{version} +Requires: %{libname} = %{version} %if 0%{?compat_mode} Conflicts: julia-devel -Provides: julia-devel = %{version} +Provides: julia-devel %endif %description devel @@ -176,6 +180,13 @@ 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. +%package -n %{libname} +Summary: Julia shared object libraries +Group: System/Libraries + +%description -n %{libname} +Contains library files for interacting with Julia through C interfaces. + %prep %setup -q -n julia-%{version} patch -p1 -i %{PATCH1} @@ -250,11 +261,8 @@ 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}" +export CXXFLAGS="%{optflags}" export LD_LIBRARY_PATH=%{_builddir}/%{buildsubdir}/build/usr/lib:%{_builddir}/%{buildsubdir}/build%{_libdir}:%{_builddir}/%{buildsubdir}/usr/lib pushd deps @@ -327,11 +335,8 @@ fi # make %{?_smp_mflags} test %install -# 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}" +export CXXFLAGS="%{optflags}" export LD_LIBRARY_PATH=%{_builddir}/%{buildsubdir}/build/usr/lib:%{_builddir}/%{buildsubdir}/build%{_libdir}:%{_builddir}/%{buildsubdir}/usr/lib make install DESTDIR=%{buildroot} \ @@ -434,7 +439,7 @@ mkdir -p %{buildroot}%{_sysconfdir}/alternatives if [ "x%{_lib}" != xlib ] ; then mkdir -p %{buildroot}%{_prefix}/lib - ln -sf %{_libdir}/julia %{buildroot}%{_prefix}/lib/julia + ln -sf %{_libdir}/julia %{buildroot}%{_prefix}/lib/julia fi ln -sf %{_sysconfdir}/alternatives/julia %{buildroot}%{_bindir}/julia @@ -452,6 +457,8 @@ fi %post devel -p /sbin/ldconfig %postun devel -p /sbin/ldconfig +%post %{libname} -p /sbin/ldconfig +%postun %{libname} -p /sbin/ldconfig %files %doc CONTRIBUTING.md NEWS.md README.md @@ -486,7 +493,9 @@ fi %{_datadir}/julia/test/ %{_datadir}/julia/julia-config.jl %{_includedir}/julia/ -%{_libdir}/libjulia.so.%{libjulia_sover_major} %{_libdir}/libjulia.so +%files -n %{libname} +%{_libdir}/libjulia.so.* + %changelog