public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/julia] epel10: Update to 0.4.0 prerelease
@ 2026-12-01 21:38 Milan Bouchet-Valat
0 siblings, 0 replies; only message in thread
From: Milan Bouchet-Valat @ 2026-12-01 21:38 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/julia
Branch : epel10
Commit : dd712ae2021a8fa4ce731bdb981ed9cc4236a90b
Author : Milan Bouchet-Valat <nalimilan@club.fr>
Date : 2015-08-23T16:52:23+02:00
Stats : +107/-83 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/julia/c/dd712ae2021a8fa4ce731bdb981ed9cc4236a90b?branch=epel10
Log:
Update to 0.4.0 prerelease
This fixes build with LLVM 3.6, waiting for llvm3.3 package.
---
diff --git a/julia.spec b/julia.spec
index 7a8e7a6..db1602e 100644
--- a/julia.spec
+++ b/julia.spec
@@ -1,14 +1,14 @@
-%global uvcommit a12eb3329cd2c0224ef631ea062fa16d119da47c
-%global uvshortcommit %(c=%{uvcommit}; echo ${c:0:7})
-%global uvversion 0.11.22
+%global uvcommit 28f5f06b5ff6f010d666ec26552e0badaca5cdcd
+%global uvversion 0.11.26
-%global Rmathcommit e432b0c4b01c560353412b3f097d179eef5c0ba2
-%global Rmathshortcommit %(c=%{Rmathcommit}; echo ${c:0:7})
+%global Rmathjuliaversion 0.1
%global Rmathversion 3.0.1
+%global juliacommit 89ca810594143c95df1857915a2b96b7a44dbe32
+
Name: julia
-Version: 0.3.7
-Release: 5%{dist}
+Version: 0.4.0
+Release: 0.1.20150823git%{?dist}
Summary: High-level, high-performance dynamic language for technical computing
Group: Development/Languages
# Julia itself is MIT, with a few LGPLv2+ and GPLv2+ files
@@ -16,11 +16,14 @@ Group: Development/Languages
# Rmath is GPLv2+
License: MIT and LGPLv2+ and GPLv2+
URL: http://julialang.org/
-Source0: https://github.com/JuliaLang/julia/archive/v%{version}.tar.gz#/julia-%{version}.tar.gz
+# Source can be obtained from the following URL, but the documentation
+# is only built when creating the tarball from git sources
+# https://api.github.com/repos/JuliaLang/julia/tarball/%{juliacommit}#/julia-%{juliacommit}.tar.gz
+Source0: julia-%{juliacommit}.tar.gz
# Julia currently uses a custom version of libuv, patches are not yet upstream
-Source1: https://github.com/JuliaLang/libuv/archive/%{uvcommit}/archive/libuv.tar.gz#/libuv-%{uvcommit}.tar.gz
+Source1: https://api.github.com/repos/JuliaLang/libuv/tarball/%{uvcommit}#/libuv-%{uvcommit}.tar.gz
# Julia currently uses a custom version of Rmath, called Rmath-julia, with a custom RNG system (temporary)
-Source2: https://github.com/JuliaLang/Rmath/archive/%{Rmathcommit}/archive/Rmath.tar.gz#/Rmath-%{Rmathcommit}.tar.gz
+Source2: https://api.github.com/repos/JuliaLang/Rmath-julia/tarball/v%{Rmathjuliaversion}#/Rmath-julia-%{Rmathjuliaversion}.tar.gz
Patch0: %{name}_juliadoc.patch
Provides: bundled(libuv) = %{uvversion}
Provides: bundled(Rmath) = %{Rmathversion}
@@ -30,41 +33,49 @@ BuildRequires: double-conversion-devel >= 1.1.1
BuildRequires: dSFMT-devel
BuildRequires: fftw-devel >= 3.3.2
BuildRequires: gcc-gfortran
-# Needed to test package installation
+# Needed to test package management until the switch to libgit2
BuildRequires: git
BuildRequires: gmp-devel >= 5.0
BuildRequires: ImageMagick
+BuildRequires: libgit2-devel >= 0.21
BuildRequires: libunwind-devel
BuildRequires: llvm-devel
BuildRequires: mpfr-devel >= 3.0
+%ifarch %{arm}
+BuildRequires: blas-devel
+BuildRequires: lapack-devel
+%else
BuildRequires: openblas-devel
+%endif
BuildRequires: openlibm-devel >= 0.4
BuildRequires: openspecfun-devel >= 0.4
-BuildRequires: patchelf
-BuildRequires: pcre-devel >= 8.31
+BuildRequires: pcre2-devel
BuildRequires: perl
-# To build HTML documentation
-BuildRequires: python-pip
-BuildRequires: python-sphinx
-BuildRequires: python-sphinx_rtd_theme
BuildRequires: suitesparse-devel
-BuildRequires: utf8proc-devel >= 1.2
+BuildRequires: utf8proc-devel >= 1.3
BuildRequires: zlib-devel
# Dependencies loaded at run time by Julia code
# and thus not detected by find-requires
Requires: arpack
Requires: dSFMT
Requires: fftw >= 3.3.2
-# Needed for package installation
+# Needed for package management until the switch to libgit2
Requires: git
Requires: gmp >= 5.0
Requires: julia-common = %{version}-%{release}
+Requires: libgit2 >= 0.21
Requires: mpfr >= 3.0
+%ifarch %{arm}
+Requires: blas
+Requires: lapack
+%else
Requires: openblas-threads
+%endif
Requires: openlibm >= 0.4
Requires: openspecfun >= 0.4
-Requires: pcre >= 8.31
-# Currently, Julia does not work properly on non-x86 architectures
+Requires: pcre2
+BuildRequires: utf8proc >= 1.3
+# Currently, Julia does not work properly architectures other than x86
# https://bugzilla.redhat.com/show_bug.cgi?id=1158024
# https://bugzilla.redhat.com/show_bug.cgi?id=1158026
# https://bugzilla.redhat.com/show_bug.cgi?id=1158025
@@ -115,34 +126,48 @@ needed when programming in the Julia language, but rather for embedding
Julia into external programs or debugging Julia itself.
%prep
-%setup -qn %{name}-%{version}
+%setup -qn %{name}
%patch0 -p 1
# .gitignore files make rpmlint complain
find . -name ".git*" -exec rm {} \;
pushd deps
- tar xzf %SOURCE1 && mv -T libuv-%{uvcommit} libuv
- tar xzf %SOURCE2 && mv -T Rmath-%{Rmathcommit} Rmath
-
- # systemtap 2.5 no longer accepts this option
- # https://github.com/joyent/libuv/issues/1478
- sed -i 's/-xnolibs//' libuv/Makefile.in
+ # Julia downloads tarballs for external dependencies even when the folder is present:
+ # we need to copy the tarball and let the build process unpack it
+ # https://github.com/JuliaLang/julia/pull/10280
+ cp -p %SOURCE1 .
+ cp -p %SOURCE2 .
popd
# Required so that the image is not optimized for the build CPU
# (i386 does not work yet: https://github.com/JuliaLang/julia/issues/7185)
# Without specifying MARCH, the Julia system image would only work on native CPU
-%ifarch %ix86
-%global march pentium4
+%ifarch %{ix86}
+%global march MARCH=pentium4
+%endif
+%ifarch x86_64
+%global march MARCH=x86-64
+%endif
+%ifarch %{arm}
+# gcc and LLVM do not support the same targets
+%global march MARCH=$(echo %optflags | grep -Po 'march=\\K[^ ]*') JULIA_CPU_TARGET=generic
+%endif
+%ifarch armv7hl
+%global march MARCH=$(echo %optflags | grep -Po 'march=\\K[^ ]*') JULIA_CPU_TARGET=cortex-a8
+%endif
+
+# OpenBLAS is not available on ARM, and need to pass -fsigned-char there
+%ifarch %{arm}
+%global archspecific LIBBLAS=-lblas LIBBLASNAME=liblblas.so.3 LIBLAPACK=-llapack LIBLAPACKNAME=liblapack.so.3 JCFLAGS="-fsigned-char -std=gnu99 -pipe -fPIC -fno-strict-aliasing -D_FILE_OFFSET_BITS=64" %{march}
%else
-%global march x86-64
+%global archspecific LIBBLAS=-lopenblasp LIBBLASNAME=libopenblasp.so.0 LIBLAPACK=-lopenblasp LIBLAPACKNAME=libopenblasp.so.0 %{march}
%endif
# USE_BLAS64=0 means that BLAS was built with 32-bit integers, even if the library is 64 bits
# About build, build_libdir and build_bindir, see https://github.com/JuliaLang/julia/issues/5063#issuecomment-32628111
-%global julia_builddir %{_builddir}/%{name}-%{version}/build
-%global commonopts USE_SYSTEM_LLVM=1 USE_SYSTEM_LIBUNWIND=1 USE_SYSTEM_READLINE=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_OPENSPECFUN=1 USE_SYSTEM_LIBM=0 USE_SYSTEM_OPENLIBM=1 USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_FFTW=1 USE_SYSTEM_GMP=1 USE_SYSTEM_MPFR=1 USE_SYSTEM_ARPACK=1 USE_SYSTEM_SUITESPARSE=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_GRISU=1 USE_SYSTEM_DSFMT=1 USE_SYSTEM_LIBUV=0 USE_SYSTEM_RMATH=0 USE_LLVM_SHLIB=1 USE_SYSTEM_UTF8PROC=1 LIBBLAS=-lopenblasp LIBBLASNAME=libopenblasp.so.0 LIBLAPACK=-lopenblasp LIBLAPACKNAME=libopenblasp.so.0 VERBOSE=1 USE_BLAS64=0 MARCH=%{march} prefix=%{_prefix} bindir=%{_bindir} libdir=%{_libdir} libexecdir=%{_libexecdir} datarootdir=%{_datarootdir} includedir=%{_includedir} sysconfdir=%{_sysconfdir} build_prefix=%{julia_builddir} build_bindir=%{julia_builddir}%{_bindir} build_libdir=%{julia_builddir}%{_libdir} build_private_libdir=%{julia_builddir}%{_libdir}/julia build_libexecdir=%{julia_builddir}%{_libexecdir} build_datarootdir=%{julia_builddir}%{_datarootdir} build_includedir=%{julia_builddir}%{_includedir} build_sysconfdir=%{julia_builddir}%{_sysconfdir}
+%global julia_builddir %{_builddir}/%{name}/build
+%global commonopts USE_SYSTEM_LLVM=1 USE_SYSTEM_LIBUNWIND=1 USE_SYSTEM_READLINE=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_OPENSPECFUN=1 USE_SYSTEM_OPENLIBM=1 USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_FFTW=1 USE_SYSTEM_GMP=1 USE_SYSTEM_MPFR=1 USE_SYSTEM_ARPACK=1 USE_SYSTEM_SUITESPARSE=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_GRISU=1 USE_SYSTEM_DSFMT=1 USE_SYSTEM_LIBUV=0 USE_SYSTEM_RMATH=0 USE_LLVM_SHLIB=1 USE_SYSTEM_UTF8PROC=1 USE_SYSTEM_LIBGIT2=1 USE_SYSTEM_PATCHELF=1 VERBOSE=1 USE_BLAS64=0 %{archspecific} prefix=%{_prefix} bindir=%{_bindir} libdir=%{_libdir} libexecdir=%{_libexecdir} datarootdir=%{_datarootdir} includedir=%{_includedir} sysconfdir=%{_sysconfdir} build_prefix=%{julia_builddir} build_bindir=%{julia_builddir}%{_bindir} build_libdir=%{julia_builddir}%{_libdir} build_private_libdir=%{julia_builddir}%{_libdir}/julia build_libexecdir=%{julia_builddir}%{_libexecdir} build_datarootdir=%{julia_builddir}%{_datarootdir} build_includedir=%{julia_builddir}%{_includedir} build_sysconfdir=%{julia_builddir}%{_sysconfdir}
%build
make %{?_smp_mflags} CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" FFLAGS="%{optflags}" %commonopts release
@@ -151,51 +176,37 @@ make %{?_smp_mflags} CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" FFLAGS="%{optfl
# https://github.com/JuliaLang/julia/issues/10088
make %{?_smp_mflags} CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" FFLAGS="%{optflags}" %commonopts debug
-make -C doc html
-
%check
-pushd test
-# make all
-# Backtrace test fails with LLVM 3.4, disabled for now
-# https://github.com/JuliaLang/julia/issues/8099
- make %commonopts core keywordargs numbers strings collections hashing \
- remote iobuffer arrayops reduce reducedim \
- simdloop linalg blas fft dsp sparse bitarray random \
- math functional bigint sorting statistics spawn parallel arpack file \
- resolve suitesparse complex version pollfd mpfr broadcast \
- socket floatapprox priorityqueue readdlm regex float16 combinatorics \
- sysinfo rounding ranges mod2pi euler show lineedit \
- replcompletions repl test goto
-popd
+make %commonopts -C test \
+ linalg core keywordargs numbers printf \
+ char string triplequote unicode \
+ dates dict hashing remote iobuffer staged \
+ arrayops tuple subarray reduce reducedim random \
+ abstractarray intfuncs simdloop blas sparse \
+ bitarray copy math functional \
+ operators path ccall parse loading \
+ bigint sorting statistics spawn backtrace \
+ priorityqueue file mmap version resolve \
+ pollfd mpfr broadcast complex socket \
+ floatapprox readdlm reflection regex float16 \
+ combinatorics sysinfo rounding ranges mod2pi \
+ euler show lineedit replcompletions repl \
+ replutil sets test goto llvmcall grisu \
+ nullable meta profile libgit2 docs markdown \
+ base64 serialize functors misc \
+ enums cmdlineargs i18n workspace libdl int \
+ intset floatfuncs compile fft dsp examples parallel linalg
+
+# This test currently fails with LLVM 3.6 on i686
+%ifarch x86_64
+make %commonopts -C test fastmath
+%endif
%install
make %commonopts DESTDIR=%{buildroot} install
-# Not useful and not functional out of the Julia source tree
-find %{buildroot}%{_datarootdir}/julia -name "Makefile" -exec rm {} \;
-rm %{buildroot}%{_datarootdir}/julia/base/version_git.sh
-
-# Move documentation to docdir
-# https://github.com/JuliaLang/julia/issues/8367
-mkdir -p %{buildroot}%{_docdir}
-mv %{buildroot}%{_datarootdir}/julia/doc %{buildroot}%{_docdir}/julia/
-mv %{buildroot}%{_datarootdir}/julia/examples %{buildroot}%{_docdir}/julia/
-
cp -p CONTRIBUTING.md LICENSE.md NEWS.md README.md %{buildroot}%{_docdir}/julia/
-# Install HTML manual and remove unwanted files
-# https://github.com/JuliaLang/julia/issues/8378
-pushd %{buildroot}%{_docdir}/julia/
- mv %{_builddir}/%{name}-%{version}/doc/_build/html/ html/
- rm html/.buildinfo html/objects.inv
-popd
-
-pushd %{buildroot}%{_docdir}/julia
- rm -R devdocs/ images/ juliadoc/ man/ manual/ stdlib/ _build/ _templates/
- # helpdb.jl is duplicated at %%{_datarootdir}/julia/helpdb.jl
- rm conf.py DocCheck.jl helpdb.jl index.rst latex.rst NEWS-update.jl requirements.txt tabcomplete.jl
-popd
-
pushd %{buildroot}%{_prefix}/share/man/man1/
ln -s julia.1.gz julia-debug.1.gz
popd
@@ -207,17 +218,22 @@ mkdir -p %{buildroot}%{_datarootdir}/icons/hicolor/24x24/apps/
mkdir -p %{buildroot}%{_datarootdir}/icons/hicolor/32x32/apps/
mkdir -p %{buildroot}%{_datarootdir}/icons/hicolor/48x48/apps/
mkdir -p %{buildroot}%{_datarootdir}/icons/hicolor/256x256/apps/
-cp -p doc/juliadoc/juliadoc/theme/julia/static/julia-logo.svg \
+cp -p doc/_build/html/_static/julia-logo.svg \
%{buildroot}%{_datarootdir}/icons/hicolor/scalable/apps/%{name}.svg
-convert -scale 16x16 doc/juliadoc/juliadoc/theme/julia/static/julia-logo.svg \
+convert -scale 16x16 -extent 16x16 -gravity center -background transparent \
+ doc/_build/html/_static/julia-logo.svg \
%{buildroot}%{_datarootdir}/icons/hicolor/16x16/apps/%{name}.png
-convert -scale 24x24 doc/juliadoc/juliadoc/theme/julia/static/julia-logo.svg \
+convert -scale 24x24 -extent 24x24 -gravity center -background transparent \
+ doc/_build/html/_static/julia-logo.svg \
%{buildroot}%{_datarootdir}/icons/hicolor/24x24/apps/%{name}.png
-convert -scale 32x32 doc/juliadoc/juliadoc/theme/julia/static/julia-logo.svg \
+convert -scale 32x32 -extent 32x32 -gravity center -background transparent \
+ doc/_build/html/_static/julia-logo.svg \
%{buildroot}%{_datarootdir}/icons/hicolor/32x32/apps/%{name}.png
-convert -scale 48x48 doc/juliadoc/juliadoc/theme/julia/static/julia-logo.svg \
+convert -scale 48x48 -extent 48x48 -gravity center -background transparent \
+ doc/_build/html/_static/julia-logo.svg \
%{buildroot}%{_datarootdir}/icons/hicolor/48x48/apps/%{name}.png
-convert -scale 256x256 doc/juliadoc/juliadoc/theme/julia/static/julia-logo.svg \
+convert -scale 256x256 -extent 256x256 -gravity center -background transparent \
+ doc/_build/html/_static/julia-logo.svg \
%{buildroot}%{_datarootdir}/icons/hicolor/256x256/apps/%{name}.png
mkdir -p %{buildroot}%{_datarootdir}/applications
cat > %{buildroot}%{_datarootdir}/applications/%{name}.desktop << EOF
@@ -242,7 +258,7 @@ desktop-file-validate %{buildroot}%{_datarootdir}/applications/%{name}.desktop
%{_libdir}/julia/
%exclude %{_libdir}/julia/libjulia-debug.so
%{_mandir}/man1/julia.1*
-%{_datarootdir}/appdata/%{name}.appdata.xml
+%{_datarootdir}/appdata/julia.appdata.xml
%{_datarootdir}/applications/%{name}.desktop
%{_datarootdir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datarootdir}/icons/hicolor/16x16/apps/%{name}.png
@@ -255,14 +271,12 @@ desktop-file-validate %{buildroot}%{_datarootdir}/applications/%{name}.desktop
%dir %{_datarootdir}/julia/
%{_datarootdir}/julia/*.jl
%{_datarootdir}/julia/base/
-%exclude %{_datarootdir}/julia/base/build.h
%dir %{_sysconfdir}/julia/
%config(noreplace) %{_sysconfdir}/julia/juliarc.jl
%files doc
-%doc %{_docdir}/julia/examples/
-%doc %{_docdir}/julia/html/
+%doc %{_docdir}/julia/
%files devel
%{_bindir}/julia-debug
@@ -278,12 +292,13 @@ desktop-file-validate %{buildroot}%{_datarootdir}/applications/%{name}.desktop
ln -sf %{_libdir}/libarpack.so.2 %{_libdir}/julia/libarpack.so
ln -sf %{_libdir}/libcholmod.so.2 %{_libdir}/julia/libcholmod.so
ln -sf %{_libdir}/libdSFMT.so.2 %{_libdir}/julia/libdSFMT.so
+ln -sf %{_libdir}/libgit2.so.0 %{_libdir}/julia/libgit2.so
ln -sf %{_libdir}/libfftw3_threads.so.2 %{_libdir}/julia/libfftw3_threads.so
ln -sf %{_libdir}/libgmp.so.10 %{_libdir}/julia/libgmp.so
ln -sf %{_libdir}/libmpfr.so.4 %{_libdir}/julia/libmpfr.so
ln -sf %{_libdir}/libopenlibm.so.1 %{_libdir}/julia/libopenlibm.so
ln -sf %{_libdir}/libopenspecfun.so.1 %{_libdir}/julia/libopenspecfun.so
-ln -sf %{_libdir}/libpcre.so.1 %{_libdir}/julia/libpcre.so
+ln -sf %{_libdir}/libpcre2-8.so.0 %{_libdir}/julia/libpcre2-8.so
ln -sf %{_libdir}/libumfpack.so.5 %{_libdir}/julia/libumfpack.so
/bin/touch --no-create %{_datarootdir}/icons/hicolor &>/dev/null || :
exit 0
@@ -294,12 +309,13 @@ if [ $1 -eq 0 ] ; then
rm -f %{_libdir}/julia/libarpack.so
rm -f %{_libdir}/julia/libcholmod.so
rm -f %{_libdir}/julia/libdSFMT.so
+ rm -f %{_libdir}/julia/libgit2.so
rm -f %{_libdir}/julia/libfftw3_threads.so
rm -f %{_libdir}/julia/libgmp.so
rm -f %{_libdir}/julia/libmpfr.so
rm -f %{_libdir}/julia/libopenlibm.so
rm -f %{_libdir}/julia/libopenspecfun.so
- rm -f %{_libdir}/julia/libpcre.so
+ rm -f %{_libdir}/julia/libpcre2-8.so
rm -f %{_libdir}/julia/libumfpack.so
/bin/touch --no-create %{_datarootdir}/icons/hicolor &>/dev/null
/usr/bin/gtk-update-icon-cache %{_datarootdir}/icons/hicolor &>/dev/null || :
@@ -310,6 +326,14 @@ exit 0
/usr/bin/gtk-update-icon-cache %{_datarootdir}/icons/hicolor &>/dev/null || :
%changelog
+* Sun Aug 23 2015 Milan Bouchet-Valat <nalimilan@club.fr> - 0.4.0-0.20150823git
+- Update to development version 0.4.0 to fix FTBFS.
+- Move to PCRE2, libgit2, utf8proc 1.3, and up-to-date libuv fork.
+- Preliminary support for ARM.
+- patchelf no longer needed when the same paths are passed to 'make' and 'make install'.
+- Building Sphynx documentation no longer needed.
+- Fix icons to be square.
+
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.7-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-01 21:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 21:38 [rpms/julia] epel10: Update to 0.4.0 prerelease Milan Bouchet-Valat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox