浏览代码

cleanup Perl packaging

Ralf S. Engelschall 21 年之前
父节点
当前提交
ad96ce8954
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      imagemagick/imagemagick.spec

+ 6 - 3
imagemagick/imagemagick.spec

@@ -41,7 +41,7 @@ Class:        BASE
 Group:        Graphics
 License:      GPL
 Version:      %{V_major}.%{V_minor}
-Release:      20040507
+Release:      20040509
 
 #   package options
 %option       with_perl   no
@@ -131,6 +131,10 @@ AutoReqProv:  no
 %endif
         --without-threads
     %{l_make} %{l_mflags}
+%if "%{with_perl}" == "yes"
+    %{l_prefix}/bin/perl-openpkg prepare
+    %{l_prefix}/bin/perl-openpkg -d PerlMagick configure build
+%endif
 
 %install
     rm -rf $RPM_BUILD_ROOT
@@ -139,8 +143,7 @@ AutoReqProv:  no
         AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
 
 %if "%{with_perl}" == "yes"
-    %{l_prefix}/bin/perl-openpkg prepare
-    %{l_prefix}/bin/perl-openpkg -d PerlMagick configure build install
+    %{l_prefix}/bin/perl-openpkg -d PerlMagick install
     %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
 %else
     >perl-openpkg-files