15
0

- Do not make symlinks to example configs copy them instead

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-md2workflow?expand=0&rev=28
This commit is contained in:
2025-06-10 04:26:03 +00:00
committed by Git OBS Bridge
parent 4e99ebdaf9
commit b568f28de0
2 changed files with 9 additions and 2 deletions

View File

@@ -94,7 +94,8 @@ cp %{_sourcedir}/LICENSE LICENSE
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/md2workflow
%python_expand %fdupes %{buildroot}%{$python_sitelib}
ln -s -f %{_datadir}/md2workflow/config %{buildroot}%{_sysconfdir}/md2workflow
mkdir -p %{buildroot}%{_sysconfdir}/md2workflow
cp -a config/* %{buildroot}%{_sysconfdir}/md2workflow/
%pre
# removing old update-alternatives entries
@@ -144,6 +145,7 @@ ln -s -f %{_datadir}/md2workflow/config %{buildroot}%{_sysconfdir}/md2workflow
%{_datadir}/md2workflow/config/*
%dir %{_datadir}/md2workflow/example/
%{_datadir}/md2workflow/example/*
%{_sysconfdir}/md2workflow
%dir %{_sysconfdir}/md2workflow/
%config(noreplace) %{_sysconfdir}/md2workflow/*.conf
%changelog