Browse Source

add HTML CSS parser

Ralf S. Engelschall 21 years ago
parent
commit
b69dd20426
1 changed files with 25 additions and 5 deletions
  1. 25 5
      perl-xml/perl-xml.spec

+ 25 - 5
perl-xml/perl-xml.spec

@@ -31,6 +31,8 @@
 %define       V_html_tagreader          1.08
 %define       V_html_tagreader          1.08
 %define       V_html_tagset             3.03
 %define       V_html_tagset             3.03
 %define       V_html_tree               3.18
 %define       V_html_tree               3.18
+%define       V_css                     1.07
+%define       V_css_tiny                1.05
 %define       V_xml_dom                 1.43
 %define       V_xml_dom                 1.43
 %define       V_xml_dtdparser           1.7
 %define       V_xml_dtdparser           1.7
 %define       V_xml_easyobj             1.12
 %define       V_xml_easyobj             1.12
@@ -74,7 +76,7 @@ Class:        BASE
 Group:        Language
 Group:        Language
 License:      GPL/Artistic
 License:      GPL/Artistic
 Version:      %{V_perl}
 Version:      %{V_perl}
-Release:      20040903
+Release:      20040919
 
 
 #   package options
 #   package options
 %option       with_libxml            no
 %option       with_libxml            no
@@ -129,19 +131,21 @@ Source33:     http://www.cpan.org/modules/by-module/XML/XML-GDOME-%{V_xml_gdome}
 Source34:     http://www.cpan.org/modules/by-module/XML/XML-Dumper-%{V_xml_dumper}.tar.gz
 Source34:     http://www.cpan.org/modules/by-module/XML/XML-Dumper-%{V_xml_dumper}.tar.gz
 Source35:     http://www.cpan.org/modules/by-module/XML/XML-Mini-%{V_xml_mini}.tar.gz
 Source35:     http://www.cpan.org/modules/by-module/XML/XML-Mini-%{V_xml_mini}.tar.gz
 Source36:     http://www.cpan.org/modules/by-module/XML/XML-Smart-%{V_xml_smart}.tar.gz
 Source36:     http://www.cpan.org/modules/by-module/XML/XML-Smart-%{V_xml_smart}.tar.gz
+Source37:     http://www.cpan.org/modules/by-module/CSS/CSS-%{V_css}.tar.gz
+Source38:     http://www.cpan.org/modules/by-module/CSS/CSS-Tiny-%{V_css_tiny}.tar.gz
 
 
 #   build information
 #   build information
 Prefix:       %{l_prefix}
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
 BuildRoot:    %{l_buildroot}
 BuildPreReq:  OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
 BuildPreReq:  OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
 PreReq:       OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
 PreReq:       OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
-BuildPreReq:  perl-util >= %{V_perl}-20031202
-PreReq:       perl-util >= %{V_perl}-20031202
+BuildPreReq:  perl-util >= %{V_perl}-20031202, perl-parse
+PreReq:       perl-util >= %{V_perl}-20031202, perl-parse
 BuildPreReq:  expat
 BuildPreReq:  expat
 PreReq:       expat
 PreReq:       expat
 %if "%{with_libxml}" == "yes"
 %if "%{with_libxml}" == "yes"
-BuildPreReq:  libxml, perl-parse
-PreReq:       libxml, perl-parse
+BuildPreReq:  libxml
+PreReq:       libxml
 %endif
 %endif
 %if "%{with_libxslt}" == "yes"
 %if "%{with_libxslt}" == "yes"
 BuildPreReq:  libxslt
 BuildPreReq:  libxslt
@@ -199,6 +203,8 @@ AutoReqProv:  no
     - HTML::Table (%{V_html_table})
     - HTML::Table (%{V_html_table})
     - HTML::TagReader (%{V_html_tagreader})
     - HTML::TagReader (%{V_html_tagreader})
     - HTML::SimpleParse (%{V_html_simpleparse})
     - HTML::SimpleParse (%{V_html_simpleparse})
+    - CSS (%{V_css})
+    - CSS::Tiny (%{V_css_tiny})
 
 
 %track
 %track
     prog perl-xml:HTML-Parser = {
     prog perl-xml:HTML-Parser = {
@@ -386,6 +392,16 @@ AutoReqProv:  no
         url       = http://www.cpan.org/modules/by-module/XML/
         url       = http://www.cpan.org/modules/by-module/XML/
         regex     = XML-Smart-(__VER__)\.tar\.gz
         regex     = XML-Smart-(__VER__)\.tar\.gz
     }
     }
+    prog perl-xml:CSS = {
+        version   = %{V_css}
+        url       = http://www.cpan.org/modules/by-module/CSS/
+        regex     = CSS-(__VER__)\.tar\.gz
+    }
+    prog perl-xml:CSS-Tiny = {
+        version   = %{V_css_tiny}
+        url       = http://www.cpan.org/modules/by-module/CSS/
+        regex     = CSS-Tiny-(__VER__)\.tar\.gz
+    }
 
 
 %prep
 %prep
     %setup -q -c
     %setup -q -c
@@ -425,6 +441,8 @@ AutoReqProv:  no
     %setup -q -T -D -a 34
     %setup -q -T -D -a 34
     %setup -q -T -D -a 35
     %setup -q -T -D -a 35
     %setup -q -T -D -a 36
     %setup -q -T -D -a 36
+    %setup -q -T -D -a 37
+    %setup -q -T -D -a 38
 
 
 %build
 %build
 
 
@@ -477,6 +495,8 @@ AutoReqProv:  no
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE34} configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE34} configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE35} configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE35} configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE36} configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE36} configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE37} configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE38} configure build install
 
 
     #   pre-activate the XML::SAX parsers
     #   pre-activate the XML::SAX parsers
     eval `%{l_prefix}/bin/perl -V:installvendorlib`
     eval `%{l_prefix}/bin/perl -V:installvendorlib`