jupyter/macros.jupyter_core

14 lines
621 B
Plaintext

%_jupyter_prefix %{_datadir}/jupyter/
%_jupyter_kernel_dir %{_jupyter_prefix}/kernels/
%_jupyter_confdir %{?_distconfdir}%{!?_distconfdir:%{_sysconfdir}}/jupyter/
%_jupyter_distconfig %{?_distconfdir:1}%{nil}
%_jupyter_config %{!?_distconfdir:%config}%{nil}
%jupyter_move_config \
if [ "$(dirname %{_prefix}/etc/jupyter/)" != "$(dirname %{_jupyter_confdir})" ]; then \
mkdir -p %{buildroot}%{_jupyter_confdir} \
mv %{buildroot}%{_prefix}/etc/jupyter/* %{buildroot}%{_jupyter_confdir} \
rm -d %{buildroot}%{_prefix}/etc/jupyter %{buildroot}%{_prefix}/etc \
fi \
%{nil}