2 |
%{?_with_test: %{expand: %%global build_test 1}} |
%{?_with_test: %{expand: %%global build_test 1}} |
3 |
%{?_without_test: %{expand: %%global build_test 0}} |
%{?_without_test: %{expand: %%global build_test 0}} |
4 |
|
|
5 |
%define bootstrap 0 |
%define bootstrap 1 |
6 |
%{?_without_bootstrap: %global bootstrap 0} |
%{?_without_bootstrap: %global bootstrap 0} |
7 |
%{?_with_bootstrap: %global bootstrap 1} |
%{?_with_bootstrap: %global bootstrap 1} |
8 |
|
|
27 |
|
|
28 |
%define major 4 |
%define major 4 |
29 |
|
|
|
# S T A N D A R D M A N D R I V A S T U F F |
|
30 |
%define libname %mklibname magick %{major} |
%define libname %mklibname magick %{major} |
31 |
%define develname %mklibname magick -d |
%define develname %mklibname magick -d |
32 |
|
|
33 |
Summary: An X application for displaying and manipulating images |
Summary: An X application for displaying and manipulating images |
34 |
Name: imagemagick |
Name: imagemagick |
35 |
Version: %{rversion}.%{minor_rev} |
Version: %{rversion}.%{minor_rev} |
36 |
Release: %mkrel 1 |
Release: %mkrel 4 |
37 |
License: BSD-like |
License: BSD-like |
38 |
Group: Graphics |
Group: Graphics |
39 |
URL: http://www.imagemagick.org/ |
URL: http://www.imagemagick.org/ |
281 |
|
|
282 |
|
|
283 |
install -m 755 -d %{buildroot}%{_datadir}/applications/ |
install -m 755 -d %{buildroot}%{_datadir}/applications/ |
284 |
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF |
cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF |
285 |
[Desktop Entry] |
[Desktop Entry] |
286 |
Name=ImageMagick |
Name=ImageMagick |
287 |
Comment=Views Graphics files |
Comment=Views Graphics files |
292 |
Categories=X-MandrivaLinux-Office-Graphs;Graphics;Viewer; |
Categories=X-MandrivaLinux-Office-Graphs;Graphics;Viewer; |
293 |
EOF |
EOF |
294 |
|
|
|
%if %mdkversion < 200900 |
|
|
%post desktop |
|
|
%update_menus |
|
|
%endif |
|
|
|
|
|
%if %mdkversion < 200900 |
|
|
%postun desktop |
|
|
%clean_menus |
|
|
%endif |
|
|
|
|
|
%if %mdkversion < 200900 |
|
|
%post -n %{libname} -p /sbin/ldconfig |
|
|
%endif |
|
|
|
|
|
%if %mdkversion < 200900 |
|
|
%postun -n %{libname} -p /sbin/ldconfig |
|
|
%endif |
|
|
|
|
295 |
%clean |
%clean |
296 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
297 |
|
|