From 73f68fb48fe197e3158ca22c20b01872208a9bbf Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sun, 5 Apr 2020 09:28:20 +0200 Subject: feat(snippets): add altpost snippet --- snippets/spec.snippets | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit