Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mattias Fält
moberg
Commits
bae6fca3
Commit
bae6fca3
authored
Aug 26, 2020
by
Anders Blomdell
Browse files
Added temporary JULIA_PROJECT for precompilation
parent
12876173
Changes
1
Hide whitespace changes
Inline
Side-by-side
moberg.spec.template
View file @
bae6fca3
...
...
@@ -155,6 +155,7 @@ cat adaptors/julia/Project.toml.template \
%post julia
set -x
export JULIA_PROJECT=$(mktemp -d julia.XXXXXX)
export JULIA_LOAD_PATH=/opt/julia:
export JULIA_DEPOT_PATH=/opt/julia:
cat<<EOF|julia
...
...
@@ -162,16 +163,12 @@ import Pkg
Pkg.add(path="/opt/julia/local/MobergIO/")
Pkg.precompile()
EOF
rm ${JULIA_PROJECT}/Manifest.toml
rm ${JULIA_PROJECT}/Project.toml
rmdir ${JULIA_PROJECT}
%postun julia
set -x
export JULIA_LOAD_PATH=/opt/julia:
export JULIA_DEPOT_PATH=/opt/julia:
cat<<EOF|julia
import Pkg
Pkg.rm("MobergIO")
EOF
# Cleanup of precomiled, etc needed...?
%files
%defattr(-,root,root,-)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment