From 18cb8de1dad14a63ab5576c950eff67214a110415ecafc52a3dc43f7a55d9b9a Mon Sep 17 00:00:00 2001 From: Christian Wittmer Date: Thu, 11 Nov 2010 11:03:06 +0000 Subject: [PATCH] cpanspec, fix deps OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-TokeParser-Simple?expand=0&rev=6 --- perl-HTML-TokeParser-Simple.changes | 27 ++++--- perl-HTML-TokeParser-Simple.spec | 109 +++++++++++++++++----------- 2 files changed, 82 insertions(+), 54 deletions(-) diff --git a/perl-HTML-TokeParser-Simple.changes b/perl-HTML-TokeParser-Simple.changes index 6619c1e..5a3c309 100644 --- a/perl-HTML-TokeParser-Simple.changes +++ b/perl-HTML-TokeParser-Simple.changes @@ -1,32 +1,39 @@ ------------------------------------------------------------------- -Wed Jun 21 00:00:00 UTC 2006 - jfunk@funktronics.ca +Thu Nov 11 10:56:08 UTC 2010 - chris@computersalat.de -- Update +- recreated by cpanspec 1.78.02 + o fix deps +- move changelog to changes file ------------------------------------------------------------------- -Fri Nov 11 00:00:00 UTC 2005 - jfunk@funktronics.ca +Wed Jun 21 21:14:41 UTC 2006 - jfunk@funktronics.ca -- Update +- Update to 3.15 + +------------------------------------------------------------------- +Fri Nov 11 23:44:24 UTC 2005 - jfunk@funktronics.ca + +- Update to 3.14 - Build for SL10 ------------------------------------------------------------------- -Thu May 12 00:00:00 UTC 2005 - jfunk@funktronics.ca +Thu May 12 14:33:16 UTC 2005 - jfunk@funktronics.ca - Build for SL93 ------------------------------------------------------------------- -Fri Nov 19 00:00:00 UTC 2004 - jfunk@funktronics.ca +Fri Nov 19 18:28:27 UTC 2004 - jfunk@funktronics.ca -- Update +- Update to 3.13 - Build for SL92 ------------------------------------------------------------------- -Tue May 11 00:00:00 UTC 2004 - jfunk@funktronics.ca +Tue May 11 10:50:41 UTC 2004 - jfunk@funktronics.ca - Build for SL91 ------------------------------------------------------------------- -Wed Apr 14 00:00:00 UTC 2004 - jfunk@funktronics.ca +Wed Apr 14 17:48:20 UTC 2004 - jfunk@funktronics.ca -- Initial release +- Initial release 2.2 diff --git a/perl-HTML-TokeParser-Simple.spec b/perl-HTML-TokeParser-Simple.spec index bd09ea7..eedba14 100644 --- a/perl-HTML-TokeParser-Simple.spec +++ b/perl-HTML-TokeParser-Simple.spec @@ -1,14 +1,55 @@ -%define modname HTML-TokeParser-Simple -Name: perl-%{modname} -Version: 3.15 -Release: 1 +# +# spec file for package perl-HTML-TokeParser-Simple (Version 3.15) +# +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +%bcond_with pod + +Name: perl-HTML-TokeParser-Simple +%define cpan_name HTML-TokeParser-Simple Summary: Easy to use HTML::TokeParser interface -Requires: perl = %{perl_version} perl-HTML-Parser perl-Sub-Override -BuildRequires: perl perl-HTML-Parser perl-Sub-Override -License: GPL/Artistic +Version: 3.15 +Release: 2 +License: GPL+ or Artistic Group: Development/Libraries/Perl -Source: %{modname}-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-root +Url: http://search.cpan.org/dist/HTML-TokeParser-Simple/ +#Source: http://search.cpan.org/CPAN/authors/id/O/OV/OVID/HTML-TokeParser-Simple-3.15.tar.gz +Source: %{cpan_name}-%{version}.tar.bz2 +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl(Module::Build) +%if 0%{?suse_version} < 1120 +BuildRequires: perl-macros +%endif +%if %{with pod} +BuildRequires: perl(Test::Pod) >= 1.14 +BuildRequires: perl(Test::Pod::Coverage) +%endif +BuildRequires: perl(Test::More) +# +BuildRequires: perl(HTML::Parser) >= 3.25 +BuildRequires: perl(HTML::TokeParser) >= 2.24 +BuildRequires: perl(Sub::Override) +# +Requires: perl = %{perl_version} +Requires: perl(HTML::Parser) >= 3.25 +Requires: perl(HTML::TokeParser) >= 2.24 +Requires: perl(Sub::Override) %description HTML::TokeParser::Simple is a subclass of HTML::TokeParser that uses @@ -27,47 +68,27 @@ Authors: Curtis "Ovid" Poe %prep -%setup -q -n %{modname}-%{version} +%setup -q -n %{cpan_name}-%{version} +### rpmlint: +# wrong-file-end-of-line-encoding +%{__perl} -pi -e 's|\r\n|\n|' Changes README %build -perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" -make -make test +%{__perl} Build.PL installdirs=vendor +./Build build flags=%{?_smp_mflags} + +%check +./Build test %install -rm -rf %{buildroot} -make DESTDIR=$RPM_BUILD_ROOT install_vendor -%perl_process_packlist +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +%perl_gen_filelist %clean -rm -rf %{buildroot} +%{__rm} -rf $RPM_BUILD_ROOT -%files -%defattr(-, root, root) -%doc README Changes -%doc %{_mandir}/man?/* -%{perl_vendorlib}/HTML/TokeParser -%{perl_vendorarch}/auto/HTML/TokeParser -/var/adm/perl-modules/%{name} +%files -f %{name}.files +%defattr(-,root,root,-) +%doc Changes README %changelog - -* Wed Jun 21 2006 - James Oakley - 3.15-1 -- Update - -* Fri Nov 11 2005 - James Oakley - 3.14-ft.1 -- Update -- Build for SL10 - -* Thu May 12 2005 - James Oakley - 3.13-ft.2 -- Build for SL93 - -* Fri Nov 19 2004 - James Oakley - 3.13-ft.1 -- Update -- Build for SL92 - -* Tue May 11 2004 - James Oakley - 2.2-2 -- Build for SL91 - -* Wed Apr 14 2004 - James Oakley - 2.2-1 -- Initial release