Browse Source

do not test the nonexistant HAVE_*_PROTOTYPE variables (never set), and correct strlcpy(3) and vsnprintf(3) conditional definition logic

Michael Schloh von Bennewitz 21 years ago
parent
commit
5b7e73a31c
1 changed files with 7 additions and 1 deletions
  1. 7 1
      imagemagick/imagemagick.spec

+ 7 - 1
imagemagick/imagemagick.spec

@@ -41,7 +41,7 @@ Class:        BASE
 Group:        Graphics
 Group:        Graphics
 License:      GPL
 License:      GPL
 Version:      %{V_major}.%{V_minor}
 Version:      %{V_major}.%{V_minor}
-Release:      20040530
+Release:      20040602
 
 
 #   package options
 #   package options
 %option       with_perl   no
 %option       with_perl   no
@@ -96,6 +96,12 @@ AutoReqProv:  no
     %{l_shtool} subst \
     %{l_shtool} subst \
         -e 's;\(-L@MAGICKLIBDIR@\);-L../magick/.libs \1;g' \
         -e 's;\(-L@MAGICKLIBDIR@\);-L../magick/.libs \1;g' \
         PerlMagick/Makefile.PL.in
         PerlMagick/Makefile.PL.in
+    %{l_shtool} subst \
+        -e 's; && !defined(HAVE_STRLCPY_PROTOTYPE);;g' \
+        -e 's; && !defined(HAVE_VSNPRINTF_PROTOTYPE);;g' \
+        -e 's;^#if \(defined(HAVE_STRLCPY)\);#if !\1;g' \
+        -e 's;^#if \(defined(HAVE_VSNPRINTF)\);#if !\1;g' \
+        magick/studio.h
 
 
 %build
 %build
     CC="%{l_cc}" \
     CC="%{l_cc}" \