diff --git a/pcs.spec b/pcs.spec index 9b6729c..99d1c68 100644 --- a/pcs.spec +++ b/pcs.spec @@ -1,6 +1,6 @@ Name: pcs Version: 0.9.154 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 URL: https://github.com/ClusterLabs/pcs Group: System Environment/Base @@ -177,6 +177,21 @@ run_all_tests(){ run_all_tests +%pretrans -p +-- workaround for upgrading from a broken package pcs-0.9.150-1.fc24 +-- taken from https://fedoraproject.org/wiki/Packaging:Directory_Replacement +-- see https://bugzilla.redhat.com/show_bug.cgi?id=1370095 for details +for i, path in pairs({ + "/usr/lib/pcsd/vendor/bundle/ruby/extensions", + "/usr/lib/pcsd/vendor/bundle/ruby/gems", + "/usr/lib/pcsd/vendor/bundle/ruby/specifications" +}) do + st = posix.stat(path) + if st and st.type == "link" then + os.remove(path) + end +end + %post %systemd_post pcsd.service @@ -217,6 +232,9 @@ run_all_tests %doc COPYING README %changelog +* Tue Oct 18 2016 Tomas Jelinek - 0.9.154-2 +- Fixed upgrading from pcs-0.9.150 + * Thu Sep 22 2016 Tomas Jelinek - 0.9.154-1 - Re-synced to upstream sources - Spec file cleanup and fixes