From a5db79657c40cdfdf72e64d415cb6377724685ed Mon Sep 17 00:00:00 2001 From: gil Date: Sat, 6 Jan 2024 09:55:18 +0100 Subject: [PATCH] package created by autospec [release 0.05-1mamba;Mon Feb 21 2011] --- README.md | 4 +++ perl-XML-TokeParser.spec | 54 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 perl-XML-TokeParser.spec diff --git a/README.md b/README.md index b6bb5d5..677d64c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # perl-XML-TokeParser +XML::TokeParser provides a procedural ("pull mode") interface to XML::Parser in much the same way that Gisle Aas' +HTML::TokeParser provides a procedural interface to HTML::Parser. XML::TokeParser splits its XML input up into +"tokens," each corresponding to an XML::Parser event. + diff --git a/perl-XML-TokeParser.spec b/perl-XML-TokeParser.spec new file mode 100644 index 0000000..6ac6832 --- /dev/null +++ b/perl-XML-TokeParser.spec @@ -0,0 +1,54 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-XML-TokeParser +Version: 0.05 +Release: 1mamba +Summary: XML::TokeParser - Simplified interface to XML::Parser +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: gil +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/P/PO/PODMASTER/XML-TokeParser-%{version}.tar.gz +License: GPL, Artistic +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(XML::Parser) +BuildRequires: perl-devel +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +XML::TokeParser provides a procedural ("pull mode") interface to XML::Parser in much the same way that Gisle Aas' +HTML::TokeParser provides a procedural interface to HTML::Parser. XML::TokeParser splits its XML input up into +"tokens," each corresponding to an XML::Parser event. + +%prep +%setup -q -n XML-TokeParser-%{version} +find . -type f | xargs sed -i -e 's/\r//' +find . -type f | xargs chmod 0644 + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{perl_vendorlib}/* +%{_mandir}/man3/*.3pm.gz +%doc Changes README TODO TokeParser.xml + +%changelog +* Mon Feb 21 2011 gil 0.05-1mamba +- package created by autospec