From 81d0b5c44bdeb7f8fa5276fd201ec7465d4438f8 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 4 Aug 2002 00:56:25 +0000 Subject: [PATCH 1/1] - new Changed files: perl-XML-Filter-BufferText.spec -> 1.1 --- perl-XML-Filter-BufferText.spec | 61 +++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 perl-XML-Filter-BufferText.spec diff --git a/perl-XML-Filter-BufferText.spec b/perl-XML-Filter-BufferText.spec new file mode 100644 index 0000000..25d3a17 --- /dev/null +++ b/perl-XML-Filter-BufferText.spec @@ -0,0 +1,61 @@ +# +# Conditional build: +# _without_tests - do not perform "make test" +%include /usr/lib/rpm/macros.perl +%define pdir XML +%define pnam Filter-BufferText +Summary: XML::Filter::BufferText Perl module - to guarantee characters in one event +Summary(pl): Modu³ Perla XML::Filter::BufferText - gwarantuj±cy znaki w jednym zdarzeniu +Name: perl-XML-Filter-BufferText +Version: 1.00 +Release: 1 +License: Artistic or GPL +Group: Development/Languages/Perl +Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +BuildRequires: perl >= 5.6 +%{!?_without_tests:BuildRequires: perl-Test-Simple >= 0.40} +%{!?_without_tests:BuildRequires: perl-XML-SAX >= 0.04} +%{!?_without_tests:BuildRequires: perl(XML::SAX::Base) >= 1.03} +BuildRequires: rpm-perlprov >= 3.0.3-16 +Requires: perl-XML-SAX >= 0.04 +Requires: perl(XML::SAX::Base) >= 1.03 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%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. + +%description -l pl +To jest bardzo prosty filtr. Jednym z czêstych zmartwieñ (i b³êdów +programistów) jest to, ¿e parsery XML nie musz± dostarczaæ zdarzeñ +znakowych w jednym kawa³ku. Mog±, ale nie s± do tego zmuszone, i +przewa¿nie tego nie robi±. Ten filtr wykonuje trywialne, ale czêsto +wykonywane zadanie umieszczania wszystkich znaków w jednym zdarzeniu. + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +perl Makefile.PL +%{__make} + +%{!?_without_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%{perl_sitelib}/XML/Filter/BufferText.pm +%{_mandir}/man3/* -- 2.44.0