From 0d6481ff55db623bd5bf1bf1196aec66abc3a41a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 09:53:52 +0100 Subject: [PATCH] perl 5.16 mass rebuild [release 1.01-3mamba;Tue Nov 13 2012] --- README.md | 10 +++++ perl-XML-Filter-BufferText.spec | 68 +++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 perl-XML-Filter-BufferText.spec diff --git a/README.md b/README.md index aab774a..f44ffda 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,12 @@ # perl-XML-Filter-BufferText +This is a very simple filter. One common cause of grief (and programmer error) is that XML parsers aren't required to provide character events in one chunk. They can, but are not forced to, and most don't. This filter does the trivial but oft-repeated task of putting all characters into a single event. + +Note that this won't help you cases such as: + + blah phubar + +In the above case, given the interleaving comment, there will be two character() events. This may be worked around in the future if there is demand for it. + +An interesting way to use this filter, instead of telling users to use it, is to return it from your handler's constructor, already configured and all. That'll make the buffering totally transparent to them (XML::SAX::Writer does that). + diff --git a/perl-XML-Filter-BufferText.spec b/perl-XML-Filter-BufferText.spec new file mode 100644 index 0000000..91099b0 --- /dev/null +++ b/perl-XML-Filter-BufferText.spec @@ -0,0 +1,68 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-XML-Filter-BufferText +Version: 1.01 +Release: 3mamba +Summary: XML::Filter::BufferText - Filter to put all characters() in one event +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Automatic Build System +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/R/RB/RBERJON/XML-Filter-BufferText-%{version}.tar.gz +License: Artistic +Requires: perl >= %perl_major_ver +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-devel >= %perl_major_ver +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This is a very simple filter. One common cause of grief (and programmer error) is that XML parsers aren't required to provide character events in one chunk. They can, but are not forced to, and most don't. This filter does the trivial but oft-repeated task of putting all characters into a single event. + +Note that this won't help you cases such as: + + blah phubar + +In the above case, given the interleaving comment, there will be two character() events. This may be worked around in the future if there is demand for it. + +An interesting way to use this filter, instead of telling users to use it, is to return it from your handler's constructor, already configured and all. That'll make the buffering totally transparent to them (XML::SAX::Writer does that). + +%prep + +%setup -q -n XML-Filter-BufferText-%{version} + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Tue Nov 13 2012 Silvan Calarco 1.01-3mamba +- perl 5.16 mass rebuild + +* Wed Nov 05 2008 Silvan Calarco 1.01-2mamba +- automatic rebuild by autodist + +* Mon Sep 15 2008 gil 1.01-1mamba +- package created by autospec