diff options
-rw-r--r-- | snippets/spec.snippets | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/snippets/spec.snippets b/snippets/spec.snippets index 79f3b98..e71ddec 100644 --- a/snippets/spec.snippets +++ b/snippets/spec.snippets @@ -38,3 +38,12 @@ snippet multi %bcond_with test %endif Name: python-${1:name}%{psuffix} + +snippet altpost + Requires(post): update-alternatives + Requires(postun): update-alternatives + %post + %python_install_alternative execname + + %postun + %python_uninstall_alternative execname |