From b32256acf5c54a4fdf169d349eaa5568f105b29c82c17c7fb9a0745ea7945c7d Mon Sep 17 00:00:00 2001 From: Petr Gajdos Date: Mon, 18 Mar 2019 13:15:17 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/graphics/ImageMagick?expand=0&rev=424 --- ImageMagick.spec | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ImageMagick.spec b/ImageMagick.spec index 6a3934d..e8462bd 100644 --- a/ImageMagick.spec +++ b/ImageMagick.spec @@ -469,8 +469,6 @@ sed -i 's:%{buildroot}::' %{buildroot}/%{_libdir}/ImageMagick-%{mfr_version}/con %postun -n libMagick++%{libspec}%{cxxlibver} -p /sbin/ldconfig %pretrans %{config_spec}-upstream -p -# this %pretrans to be removed soon -# https://bugzilla.suse.com/show_bug.cgi?id=1122033#c37 path = "%{_sysconfdir}/%{config_dir}" st = posix.stat(path) if st and st.type == "directory" then @@ -478,6 +476,7 @@ if st and st.type == "directory" then os.rename(path, path .. ".rpmmoved") end +# this %%pretrans to be removed soon [bug#1122033#c37] %post %{config_spec}-upstream %{_sbindir}/update-alternatives --install %{_sysconfdir}/%{config_dir} %{config_dir} %{_sysconfdir}/%{config_dir}-upstream 1 @@ -486,9 +485,8 @@ if [ ! -d %{_sysconfdir}/%{config_dir}-upstream ] ; then %{_sbindir}/update-alternatives --remove %{config_dir} %{_sysconfdir}/%{config_dir}-upstream fi +# this %%pretrans to be removed soon [bug#1122033#c37] %pretrans %{config_spec}-SUSE -p -# this %pretrans to be removed soon -# https://bugzilla.suse.com/show_bug.cgi?id=1122033#c37 path = "%{_sysconfdir}/%{config_dir}" st = posix.stat(path) if st and st.type == "directory" then