1 | %define pkg_name julia |
---|
2 | %define pkg_version 1.1.0 |
---|
3 | %define pkg_release 1%{?_dist_release} |
---|
4 | |
---|
5 | Summary: High-level, high-performance dynamic programming language for numerical computing |
---|
6 | Name: %{pkg_name} |
---|
7 | Version: %{pkg_version} |
---|
8 | Release: %{pkg_release} |
---|
9 | |
---|
10 | License: MIT, BSD and GPLv3 |
---|
11 | # julia, utf8proc, libwhich: MIT |
---|
12 | # libunwind, libuv, openblas, llvm: BSD |
---|
13 | # patchelf, mpfr: GPLv3 |
---|
14 | Group: Applications/Edutainment |
---|
15 | URL: https://julialang.org/ |
---|
16 | |
---|
17 | Source0: https://github.com/JuliaLang/julia/releases/download/v%{version}/%{name}-%{version}.tar.gz |
---|
18 | |
---|
19 | Source11: libunwind-1.1-julia2.tar.gz |
---|
20 | Source12: libuv-2348256acf5759a544e5ca7935f638d2bc091d60.tar.gz |
---|
21 | Source13: patchelf-0.9.tar.gz |
---|
22 | Source14: utf8proc-97ef668b312b96382714dbb8eaac4affce0816e6.tar.gz |
---|
23 | Source15: llvm-6.0.1.src.tar.xz |
---|
24 | # Source16: openblas-fd8d1868a126bb9f12bbc43b36ee30d1ba943fbb.tar.gz |
---|
25 | Source17: libwhich-81e9723c0273d78493dc8c8ed570f68d9ce7e89e.tar.gz |
---|
26 | Source18: mpfr-4.0.1.tar.bz2 |
---|
27 | |
---|
28 | |
---|
29 | # # Patches from Fedora srpm |
---|
30 | # Patch0: julia_unwind_version.patch |
---|
31 | |
---|
32 | # # https://github.com/JuliaLang/julia/pull/22603 |
---|
33 | # # Remove ieee754_rem_pio2 in favor of a rem_pio2_kernel written in Julia. |
---|
34 | # Patch1: julia-0.6.3-issue22603.patch |
---|
35 | |
---|
36 | # # # not make debug |
---|
37 | Patch11: julia-Makefile_release.patch |
---|
38 | |
---|
39 | # ## Patches for make test |
---|
40 | # # Avoid test error |
---|
41 | # Patch21: julia-0.6.3-skip_libgit2_test.patch |
---|
42 | Patch21: julia-skip-LibGit2-libgit2.patch |
---|
43 | |
---|
44 | # # https://github.com/JuliaLang/julia/pull/23124 |
---|
45 | # # Bump tolerance a bit in stressful test of eigs on matrix |
---|
46 | # # with many repeated eigenvalues. |
---|
47 | # Patch22: julia-0.6.3-issue23124.patch |
---|
48 | |
---|
49 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
50 | |
---|
51 | BuildRequires: cmake |
---|
52 | BuildRequires: gcc-gfortran |
---|
53 | BuildRequires: gmp-devel |
---|
54 | BuildRequires: openblas-devel |
---|
55 | %ifarch x86_64 |
---|
56 | BuildRequires: openblas64-devel |
---|
57 | %endif |
---|
58 | BuildRequires: openspecfun-devel |
---|
59 | BuildRequires: openlibm-devel |
---|
60 | BuildRequires: suitesparse-devel |
---|
61 | BuildRequires: dSFMT-devel |
---|
62 | BuildRequires: pcre2-devel |
---|
63 | BuildRequires: curl-devel |
---|
64 | BuildRequires: libssh2-devel |
---|
65 | BuildRequires: libgit2-devel |
---|
66 | BuildRequires: mbedtls-devel |
---|
67 | BuildRequires: libatomic |
---|
68 | BuildRequires: desktop-file-utils |
---|
69 | |
---|
70 | Requires: openblas-threads |
---|
71 | %ifarch x86_64 |
---|
72 | Requires: openblas-threads64_ |
---|
73 | %endif |
---|
74 | Requires: openlibm |
---|
75 | Requires: suitesparse |
---|
76 | Requires: dSFMT |
---|
77 | Requires: pcre2 |
---|
78 | Requires: libssh2 mbedtls |
---|
79 | Requires: libgit2 |
---|
80 | Requires: libatomic |
---|
81 | |
---|
82 | |
---|
83 | Vendor: Project Vine |
---|
84 | Distribution: Vine Linux |
---|
85 | Packager: ara_t |
---|
86 | |
---|
87 | |
---|
88 | %description |
---|
89 | Julia is a high-level, high-performance dynamic programming language |
---|
90 | for numerical computing. It provides a sophisticated compiler, |
---|
91 | distributed parallel execution, numerical accuracy, and an extensive |
---|
92 | mathematical function library. Julia’s Base library, largely written |
---|
93 | in Julia itself, also integrates mature, best-of-breed open source C |
---|
94 | and Fortran libraries for linear algebra, random number generation, |
---|
95 | signal processing, and string processing. In addition, the Julia developer |
---|
96 | community is contributing a number of external packages through Julia's |
---|
97 | built-in package manager at a rapid pace. |
---|
98 | IJulia, a collaboration between the Jupyter and Julia communities, |
---|
99 | provides a powerful browser-based graphical notebook interface to Julia. |
---|
100 | |
---|
101 | Julia programs are organized around multiple dispatch; by defining functions |
---|
102 | and overloading them for different combinations of argument types, |
---|
103 | which can also be user-defined. For a more in-depth discussion of the |
---|
104 | rationale and advantages of Julia over other systems, see the following |
---|
105 | highlights or read the introduction in the online manual. |
---|
106 | #' |
---|
107 | |
---|
108 | |
---|
109 | %prep |
---|
110 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
111 | %setup -q |
---|
112 | |
---|
113 | # %patch0 -p1 -b .unwind |
---|
114 | # %patch1 -p1 -b.ieee754_rem_pio2 |
---|
115 | |
---|
116 | %patch11 -b .release |
---|
117 | %patch21 -b .skip_test |
---|
118 | # %patch22 -p1 -b .tolerance |
---|
119 | |
---|
120 | cat > Make.user <<EOF |
---|
121 | # Link to the LLVM shared library |
---|
122 | USE_LLVM_SHLIB=0 |
---|
123 | |
---|
124 | # Link to the LLVM shared library |
---|
125 | USE_SYSTEM_LLVM=0 |
---|
126 | USE_SYSTEM_LIBUNWIND=0 |
---|
127 | USE_SYSTEM_LIBUV=0 |
---|
128 | USE_SYSTEM_LIBM=0 |
---|
129 | USE_SYSTEM_OPENLIBM=1 |
---|
130 | UNTRUSTED_SYSTEM_LIBM=0 |
---|
131 | USE_SYSTEM_OPENSPECFUN=1 |
---|
132 | |
---|
133 | USE_SYSTEM_PCRE=1 |
---|
134 | USE_SYSTEM_DSFMT=1 |
---|
135 | USE_SYSTEM_GMP=1 |
---|
136 | USE_SYSTEM_MPFR=0 |
---|
137 | USE_SYSTEM_BLAS=1 |
---|
138 | USE_SYSTEM_LAPACK=1 |
---|
139 | USE_SYSTEM_SUITESPARSE=1 |
---|
140 | |
---|
141 | USE_SYSTEM_LIBSSH2=1 |
---|
142 | USE_SYSTEM_CURL=1 |
---|
143 | USE_SYSTEM_LIBGIT2=1 |
---|
144 | USE_SYSTEM_MBEDTLS=1 |
---|
145 | EOF |
---|
146 | |
---|
147 | %{__mkdir_p} deps/srccache |
---|
148 | %{__cp} \ |
---|
149 | %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15} \ |
---|
150 | %{SOURCE17} %{SOURCE18} \ |
---|
151 | deps/srccache |
---|
152 | |
---|
153 | # Required so that the image is not optimized for the build CPU |
---|
154 | # (i386 does not work yet: https://github.com/JuliaLang/julia/issues/7185) |
---|
155 | # Without specifying MARCH, the Julia system image would only work on native CPU |
---|
156 | %ifarch %{ix86} |
---|
157 | %global march pentium4 |
---|
158 | %endif |
---|
159 | %ifarch x86_64 |
---|
160 | %global march x86-64 |
---|
161 | %endif |
---|
162 | |
---|
163 | # setting for using system openblas |
---|
164 | %ifarch %{ix86} |
---|
165 | %global blas USE_BLAS64=0 LIBBLAS=-lopenblasp LIBBLASNAME=libopenblasp LIBLAPACK=-lopenblasp LIBLAPACKNAME=libopenblasp |
---|
166 | %endif |
---|
167 | %ifarch x86_64 |
---|
168 | %global blas USE_BLAS64=1 LIBBLAS=-lopenblasp64_ LIBBLASNAME=libopenblasp64_ LIBLAPACK=-lopenblasp64_ LIBLAPACKNAME=libopenblasp64_ |
---|
169 | %endif |
---|
170 | |
---|
171 | # About build, build_libdir and build_bindir |
---|
172 | # see https://github.com/JuliaLang/julia/issues/5063#issuecomment-32628111 |
---|
173 | %global julia_builddir %{_builddir}/%{name}-%{version}/build |
---|
174 | %global installopts 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} |
---|
175 | |
---|
176 | %global commonopts MARCH=%{march} %{blas} %{installopts} |
---|
177 | |
---|
178 | %build |
---|
179 | %{__make} %{?_smp_mflags} %{commonopts} |
---|
180 | |
---|
181 | # to avoid making documents |
---|
182 | %{__mkdir_p} doc/_build/html/en |
---|
183 | touch doc/_build/html/en/index.html |
---|
184 | |
---|
185 | %install |
---|
186 | %{__make} %{commonopts} install DESTDIR=${RPM_BUILD_ROOT} |
---|
187 | |
---|
188 | # remove html files |
---|
189 | pushd ${RPM_BUILD_ROOT}%{_docdir} |
---|
190 | %{__mv} julia %{name}-%{version} |
---|
191 | %{__rm} -rf %{name}-%{version}/html |
---|
192 | popd |
---|
193 | |
---|
194 | |
---|
195 | %{__cp} \ |
---|
196 | CONTRIBUTING.md DISTRIBUTING.md HISTORY.md \ |
---|
197 | LICENSE.md NEWS.md README.md \ |
---|
198 | ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version} |
---|
199 | |
---|
200 | %check |
---|
201 | %{__make} %{?_smp_mflags} %{commonopts} test |
---|
202 | |
---|
203 | %clean |
---|
204 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
205 | |
---|
206 | %post |
---|
207 | %{_syssbindir}/ldconfig |
---|
208 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
209 | %{_bindir}/update-desktop-database %{_datadir}/applications |
---|
210 | fi |
---|
211 | |
---|
212 | %postun |
---|
213 | %{_syssbindir}/ldconfig |
---|
214 | if [ $1 -eq 0 ] ; then |
---|
215 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
216 | %{_bindir}/update-desktop-database %{_datadir}/applications |
---|
217 | fi |
---|
218 | fi |
---|
219 | |
---|
220 | |
---|
221 | %files |
---|
222 | %defattr(-, root, root) |
---|
223 | %{_bindir}/julia |
---|
224 | %{_sysconfdir}/%{name} |
---|
225 | %{_includedir}/%{name} |
---|
226 | %{_libdir}/%{name}/ |
---|
227 | %{_libdir}/libjulia.so* |
---|
228 | %{_datadir}/appdata/ |
---|
229 | %{_datadir}/applications/ |
---|
230 | %{_datadir}/icons/ |
---|
231 | %{_datadir}/julia/ |
---|
232 | %{_docdir}/%{name}-%{version} |
---|
233 | %{_mandir}/man1/ |
---|
234 | |
---|
235 | |
---|
236 | %changelog |
---|
237 | * Mon Jan 28 2019 Toshiaki Ara <ara_t@384.jp> 1.1.0-1 |
---|
238 | - update to 1.1.0 |
---|
239 | - change using system openblas |
---|
240 | |
---|
241 | * Sat Jan 26 2019 Toshiaki Ara <ara_t@384.jp> 1.0.3-2 |
---|
242 | - remove unnecessary sofiles |
---|
243 | - rebuild with gfortran-8.2.0 |
---|
244 | |
---|
245 | * Sat Jan 05 2019 Toshiaki Ara <ara_t@384.jp> 1.0.3-1 |
---|
246 | - update to 1.0.3 |
---|
247 | |
---|
248 | * Fri Nov 16 2018 Toshiaki Ara <ara_t@384.jp> 1.0.2-1 |
---|
249 | - update to 1.0.2 |
---|
250 | |
---|
251 | * Thu Oct 04 2018 Toshiaki Ara <ara_t@384.jp> 1.0.1-1 |
---|
252 | - update to 1.0.1 |
---|
253 | |
---|
254 | * Wed Aug 22 2018 Toshiaki Ara <ara_t@384.jp> 1.0.0-2 |
---|
255 | - rebuild with suitesparse-4.4.6 |
---|
256 | |
---|
257 | * Fri Aug 17 2018 Toshiaki Ara <ara_t@384.jp> 1.0.0-1 |
---|
258 | - update to 1.0.0 |
---|
259 | - add/update sources |
---|
260 | - drop some Patches |
---|
261 | - add BuildRequires: and Requires: libatomic |
---|
262 | |
---|
263 | * Sat Jul 14 2018 Toshiaki Ara <ara_t@384.jp> 0.6.4-1 |
---|
264 | - new upstream release |
---|
265 | - update SOURCE17 (openblas) |
---|
266 | |
---|
267 | * Sun Jun 17 2018 Toshiaki Ara <ara_t@384.jp> 0.6.3-1 |
---|
268 | - new package |
---|
269 | |
---|