[meego-commits] 6673: Changes to Trunk:Testing/perl-HTML-TableExtract

Wang Quanxian quanxian.wang at intel.com
Mon Aug 16 09:12:04 UTC 2010


Hi,
I have made the following changes to perl-HTML-TableExtract in project Trunk:Testing. Please review and accept ASAP.

Thank You,
Wang Quanxian

[This message was auto-generated]

---

Request #6673:

  submit:   devel:languages:perl/perl-HTML-TableExtract(r6) -> Trunk:Testing/perl-HTML-TableExtract


Message:
    yaml enable

State:   new          2010-08-15T17:20:37 quanxianwang
Comment: None



changes files:
--------------

new:
----
  perl-HTML-TableExtract.yaml

spec files:
-----------
--- perl-HTML-TableExtract.spec
+++ perl-HTML-TableExtract.spec
@@ -1,19 +1,24 @@
+# 
+# Do not Edit! Generated by:
+# spectacle version 0.18
+# 
+# >> macros
+# << macros
+
 Name:           perl-HTML-TableExtract
+Summary:    A Perl module for extracting content in HTML tables
 Version:        2.10
 Release: 	4
-Summary:        A Perl module for extracting content in HTML tables
 Group:          Development/Libraries
 License:        GPL+ or Artistic
+BuildArch:  noarch
 URL:		http://www.mojotoad.com/sisk/projects/HTML-TableExtract/
 Source0:        http://search.cpan.org/CPAN/authors/id/M/MS/MSISK/HTML-TableExtract-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildArch:      noarch
+Source100:  perl-HTML-TableExtract.yaml
 Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-%if 0%{?rhel}
 BuildRequires:  perl(HTML::Parser)
-%else
 BuildRequires:	perl(HTML::TreeBuilder) perl(Test::Pod) perl(Test::Pod::Coverage)
-%endif
+
 
 %description
 HTML::TableExtract is a module that simplifies the extraction of
@@ -23,30 +28,63 @@
 Attributes, or some combination of the three. See the module
 documentation for details.
 
+
+
+
 %prep
 %setup -q -n HTML-TableExtract-%{version} 
 
+# >> setup
+# << setup
+
 %build
+# >> build pre
+# << build pre
+
+if test -f Makefile.PL; then
 %{__perl} Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags}
+make %{?jobs:-j%jobs}
+else
+%{__perl} Build.PL  --installdirs vendor
+./Build
+fi
 
+# >> build post
+# << build post
 %install
-rm -rf $RPM_BUILD_ROOT
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
+rm -rf %{buildroot}
+# >> install pre
+# << install pre
+if test -f Makefile.PL; then
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+else
+./Build install --installdirs vendor
+fi
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
+find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
+%{_fixperms} %{buildroot}/*
+
+# >> install post
 chmod -R u+w $RPM_BUILD_ROOT/*
 
+# << install post
 %check
+# >> check
 make test
+# << check
+
+
+
 
-%clean
-rm -rf $RPM_BUILD_ROOT
 
 
 %files
 %defattr(-,root,root,-)
+# >> files
 %doc Changes README
 %{perl_vendorlib}/HTML/
 %doc %{_mandir}/man3/*.3*
+# << files
+
 

other changes:
--------------

++++++ perl-HTML-TableExtract.yaml (new)
--- perl-HTML-TableExtract.yaml
+++ perl-HTML-TableExtract.yaml
+Name: perl-HTML-TableExtract
+Summary: A Perl module for extracting content in HTML tables
+Version: 2.10
+Release: 4
+Group: Development/Libraries
+License: GPL+ or Artistic
+URL: http://www.mojotoad.com/sisk/projects/HTML-TableExtract/
+Sources:
+    - http://search.cpan.org/CPAN/authors/id/M/MS/MSISK/HTML-TableExtract-%{version}.tar.gz
+Description: |
+    HTML::TableExtract is a module that simplifies the extraction of
+    information contained in tables within HTML documents.
+    
+    Tables of note may be specified using Headers, Depth, Count,
+    Attributes, or some combination of the three. See the module
+    documentation for details.
+
+PkgBR:
+    - perl(HTML::Parser)
+    - perl(HTML::TreeBuilder) perl(Test::Pod) perl(Test::Pod::Coverage)
+Configure: none
+Builder: perl
+BuildArch: noarch
+Check: yes



More information about the MeeGo-commits mailing list