summaryrefslogtreecommitdiffstats
path: root/ImageMagick7.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-08-25 08:50:14 +0200
committerRemi Collet <remi@remirepo.net>2017-08-25 08:50:14 +0200
commit9894beb5c1864d3aa5c6e351a0051a08b8ae80ef (patch)
tree968bbf885dfd79e1fc63159ef30a3b27bc713b1a /ImageMagick7.spec
parent2ebf11585c49870c2289cfeeec235ebec6f0f239 (diff)
minor
Diffstat (limited to 'ImageMagick7.spec')
-rw-r--r--ImageMagick7.spec26
1 files changed, 17 insertions, 9 deletions
diff --git a/ImageMagick7.spec b/ImageMagick7.spec
index 16fc8b7..5ea09ee 100644
--- a/ImageMagick7.spec
+++ b/ImageMagick7.spec
@@ -50,13 +50,8 @@
%global with_gvc 1
-%ifarch x86_64
-%{!?__isa_bits: %global __isa_bits 64}
-%else
-%{!?__isa_bits: %global __isa_bits 32}
-%endif
-
%global libname ImageMagick
+
# No need to relocate for now, as ImageMagick-7 is not ImageMagick-6
%global move 0
@@ -449,12 +444,25 @@ make %{?_smp_mflags} check
%endif
-%post -p /sbin/ldconfig
+%pre libs
+LIB=%{_libdir}/%{libname}-%{VER}
+%if %{move}
+ETC=%{_sysconfdir}/%{name}
+%else
+ETC=%{_sysconfdir}/%{libname}%{?incsuffixe}
+%endif
+if [ -d $ETC -a ! -d $LIB ]; then cat << EOF
-%post c++ -p /sbin/ldconfig
+WARNING : %{name} modules directory have changed.
+You need to restart some services to take care of
+the new location (e.g. httpd, php-fpm).
-%postun -p /sbin/ldconfig
+EOF
+fi
+%post -p /sbin/ldconfig
+%post c++ -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
%postun c++ -p /sbin/ldconfig