Fixed upgrading from pcs-0.9.150

This commit is contained in:
Tomas Jelinek 2016-10-18 13:20:27 +02:00
parent 0a8dadeced
commit 4013dee679

View File

@ -1,6 +1,6 @@
Name: pcs Name: pcs
Version: 0.9.154 Version: 0.9.154
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2 License: GPLv2
URL: https://github.com/ClusterLabs/pcs URL: https://github.com/ClusterLabs/pcs
Group: System Environment/Base Group: System Environment/Base
@ -177,6 +177,21 @@ run_all_tests(){
run_all_tests run_all_tests
%pretrans -p <lua>
-- 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 %post
%systemd_post pcsd.service %systemd_post pcsd.service
@ -217,6 +232,9 @@ run_all_tests
%doc COPYING README %doc COPYING README
%changelog %changelog
* Tue Oct 18 2016 Tomas Jelinek <tojeline@redhat.com> - 0.9.154-2
- Fixed upgrading from pcs-0.9.150
* Thu Sep 22 2016 Tomas Jelinek <tojeline@redhat.com> - 0.9.154-1 * Thu Sep 22 2016 Tomas Jelinek <tojeline@redhat.com> - 0.9.154-1
- Re-synced to upstream sources - Re-synced to upstream sources
- Spec file cleanup and fixes - Spec file cleanup and fixes