浏览代码

Added HTML::Tagset perl module to fix broken dependency of perl-xml (this one) package.

Ralf S. Engelschall 24 年之前
父节点
当前提交
b15f6f66e3
共有 1 个文件被更改,包括 10 次插入7 次删除
  1. 10 7
      perl-xml/perl-xml.spec

+ 10 - 7
perl-xml/perl-xml.spec

@@ -24,7 +24,8 @@
 ##  
 
 #   versions of individual parts
-%define       V_htmlparser        3.26
+%define       V_html_tagset       3.03
+%define       V_html_parser       3.26
 
 #   package information
 Name:         perl-xml
@@ -39,7 +40,9 @@ Version:      20020515
 Release:      20020515
 
 #   list of sources
-Source0: http://www.cpan.org/modules/by-module/HTML/HTML-Parser-%{V_htmlparser}.tar.gz
+Source0: http://www.cpan.org/modules/by-module/HTML/HTML-Tagset-%{V_html_tagset}.tar.gz
+Source1: http://www.cpan.org/modules/by-module/HTML/HTML-Parser-%{V_html_parser}.tar.gz
+
 
 #   build information
 Prefix:       %{l_prefix}
@@ -51,18 +54,19 @@ AutoReqProv:  no
 
 %description
     Perl modules for use with XML:
-    - HTML::Parser (%{V_htmlparser})
+    - HTML::Tagset (%{V_html_tagset})
+    - HTML::Parser (%{V_html_parser})
 
 %prep
     %setup0 -q -c -n %{name}-%{version}
+    %setup1  -q -T -D -a 1
 
 %build
 
 %install
     rm -rf $RPM_BUILD_ROOT
     %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/lib/perl5
-
-    #   create a wrapper script which finds the includes
+#   create a wrapper script which finds the includes
     eval `%{l_prefix}/bin/perl -V:version -V:archname`
     perl=$RPM_BUILD_ROOT/perl
     echo "#!/bin/sh" >$perl
@@ -76,8 +80,7 @@ AutoReqProv:  no
     chmod a+x $perl
 
     # uncompress and build modules
-    perl=%{l_prefix}/bin/perl
-    for mod in %{SOURCE0}; do
+    for mod in %{SOURCE0} %{SOURCE1}; do
         dir=`echo "$mod" | sed -e 's;^.*/\([^/]*\)\.tar\.gz$;\1;'`
         cd $dir
         chmod -R u+rw .