forked from pool/perl-HTML-Parser
		
	fix deps
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Parser?expand=0&rev=22
This commit is contained in:
		
				
					committed by
					
						
						Git OBS Bridge
					
				
			
			
				
	
			
			
			
						parent
						
							c0dbb6703a
						
					
				
				
					commit
					5c5ae7b1af
				
			@@ -1,3 +1,10 @@
 | 
			
		||||
-------------------------------------------------------------------
 | 
			
		||||
Mon Sep  6 09:35:03 UTC 2010 - chris@computersalat.de
 | 
			
		||||
 | 
			
		||||
- recreated by cpanspec 1.78
 | 
			
		||||
- fix deps
 | 
			
		||||
  o Recommends HTTP::Headers not HTML::Headers
 | 
			
		||||
 | 
			
		||||
-------------------------------------------------------------------
 | 
			
		||||
Thu Sep  2 05:13:03 UTC 2010 - pascal.bleser@opensuse.org
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -15,34 +15,37 @@
 | 
			
		||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
# vim: set sw=4 ts=4 et nu:
 | 
			
		||||
# norootforbuild
 | 
			
		||||
 | 
			
		||||
%bcond_with opt
 | 
			
		||||
 | 
			
		||||
Name:           perl-HTML-Parser
 | 
			
		||||
Version:        3.68
 | 
			
		||||
Release:        0
 | 
			
		||||
%define cpan_name HTML-Parser
 | 
			
		||||
Summary:        HTML parser class
 | 
			
		||||
Source:         http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Parser-%{version}.tar.bz2
 | 
			
		||||
URL:            http://search.cpan.org/dist/HTML-Parser
 | 
			
		||||
Version:        3.68
 | 
			
		||||
Release:        1
 | 
			
		||||
License:        GPL+ or Artistic
 | 
			
		||||
Group:          Development/Libraries/Perl
 | 
			
		||||
License:        Perl License
 | 
			
		||||
BuildRoot:      %{_tmppath}/build-%{name}-%{version}
 | 
			
		||||
Requires:       perl = %{perl_version}
 | 
			
		||||
Url:            http://search.cpan.org/dist/HTML-Parser/
 | 
			
		||||
#Source:         http://www.cpan.org/modules/by-module/HTML/HTML-Parser-%{version}.tar.gz
 | 
			
		||||
Source:         %{cpan_name}-%{version}.tar.bz2
 | 
			
		||||
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 | 
			
		||||
BuildRequires:  perl
 | 
			
		||||
BuildRequires:  make
 | 
			
		||||
BuildRequires:  perl(Test::More)
 | 
			
		||||
BuildRequires:  perl(ExtUtils::MakeMaker)
 | 
			
		||||
BuildRequires:  perl(XSLoader)
 | 
			
		||||
BuildRequires:  perl(HTML::Tagset) >= 3
 | 
			
		||||
Requires:       perl(XSLoader)
 | 
			
		||||
Requires:       perl(HTML::Tagset) >= 3
 | 
			
		||||
Recommends:     perl(HTML::Headers)
 | 
			
		||||
%if 0%{?suse_version} < 1120
 | 
			
		||||
BuildRequires:  perl-macros
 | 
			
		||||
%endif
 | 
			
		||||
%if %{with opt}
 | 
			
		||||
BuildRequires:  perl(HTTP::Headers)
 | 
			
		||||
BuildRequires:  perl(Test::Pod) >= 1.00
 | 
			
		||||
%endif
 | 
			
		||||
BuildRequires:  perl(Test::More)
 | 
			
		||||
BuildRequires:  perl(HTML::Tagset) >= 3
 | 
			
		||||
BuildRequires:  perl(XSLoader)
 | 
			
		||||
#
 | 
			
		||||
Requires:       perl = %{perl_version}
 | 
			
		||||
Requires:       perl(HTML::Tagset) >= 3
 | 
			
		||||
Requires:       perl(XSLoader)
 | 
			
		||||
Recommends:     perl(HTTP::Headers)
 | 
			
		||||
 | 
			
		||||
%description
 | 
			
		||||
Objects of the HTML::Parser class will recognize markup and separate it
 | 
			
		||||
@@ -64,36 +67,36 @@ If event driven parsing does not feel right for your application, you might
 | 
			
		||||
want to use HTML::PullParser. This is an HTML::Parser subclass that allows
 | 
			
		||||
a more conventional program structure.
 | 
			
		||||
 | 
			
		||||
Authors: libwww@perl.org
 | 
			
		||||
 | 
			
		||||
COPYRIGHT
 | 
			
		||||
 | 
			
		||||
© 1995-2008 Gisle Aas. All rights reserved.
 | 
			
		||||
© 1999-2000 Michael A. Chase. All rights reserved.
 | 
			
		||||
 | 
			
		||||
%prep
 | 
			
		||||
%setup -q -n "HTML-Parser-%{version}"
 | 
			
		||||
%__sed -i '/^auto_install/d' Makefile.PL
 | 
			
		||||
 | 
			
		||||
%setup -q -n %{cpan_name}-%{version}
 | 
			
		||||
# rpmlint: spurious-executable-perm
 | 
			
		||||
find ./eg -type f -exec %__chmod 0644 {} \;
 | 
			
		||||
%__chmod 0644 mkpfunc mkhctype
 | 
			
		||||
 | 
			
		||||
%build
 | 
			
		||||
%__perl Makefile.PL PREFIX="%{_prefix}"
 | 
			
		||||
%__make %{?jobs:-j%{jobs}}
 | 
			
		||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
 | 
			
		||||
%{__make} %{?_smp_mflags}
 | 
			
		||||
 | 
			
		||||
%check
 | 
			
		||||
%{__make} test
 | 
			
		||||
 | 
			
		||||
%install
 | 
			
		||||
%perl_make_install
 | 
			
		||||
%perl_process_packlist
 | 
			
		||||
 | 
			
		||||
%check
 | 
			
		||||
%__make test
 | 
			
		||||
%perl_gen_filelist
 | 
			
		||||
 | 
			
		||||
%clean
 | 
			
		||||
%{?buildroot:%__rm -rf "%{buildroot}"}
 | 
			
		||||
%{__rm} -rf $RPM_BUILD_ROOT
 | 
			
		||||
 | 
			
		||||
%files
 | 
			
		||||
%defattr(-,root,root)
 | 
			
		||||
%doc Changes mkhctype mkpfunc README TODO eg
 | 
			
		||||
%dir %{perl_vendorarch}/HTML
 | 
			
		||||
%{perl_vendorarch}/HTML/*.pm
 | 
			
		||||
%dir %{perl_vendorarch}/auto/HTML
 | 
			
		||||
%{perl_vendorarch}/auto/HTML/Parser
 | 
			
		||||
%doc %{perl_man3dir}/HTML::*.%{perl_man3ext}%{ext_man}
 | 
			
		||||
/var/adm/perl-modules/%{name}
 | 
			
		||||
%files -f %{name}.files
 | 
			
		||||
%defattr(-,root,root,-)
 | 
			
		||||
%doc Changes mkhctype mkpfunc README TODO
 | 
			
		||||
 | 
			
		||||
%changelog
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user