diff --git a/.cvsignore b/.cvsignore index e69de29..be0b96b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +XML-SAX-0.03.tar.gz diff --git a/perl-XML-SAX.spec b/perl-XML-SAX.spec new file mode 100644 index 0000000..d048fdf --- /dev/null +++ b/perl-XML-SAX.spec @@ -0,0 +1,59 @@ +%define perlver %(rpm -q perl --queryformat '%%{version}') + +Summary: Classes for using SAX2 in Perl. +Name: perl-XML-SAX +Version: 0.03 +Release: 1 +Group: System Environment/Libraries +Vendor: Red Hat, Inc. +BuildRoot: %{_tmppath}/%{name}-buildroot +Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/XML/XML-SAX-%{version}.tar.gz +BuildPrereq: perl +Requires: perl = %{perlver} +License: GPL or Artistic + +BuildArch: noarch + +%description +XML::SAX consists of several framework classes for using and building +Perl SAX2 XML parsers, filters, and drivers. It is designed around the +need to be able to "plug in" different SAX parsers to an application +without requiring programmer intervention. Those of you familiar with +the DBI will be right at home. Some of the designs come from the Java +JAXP specification (SAX part), only without the javaness. + + +%define __find_provides /usr/lib/rpm/find-provides.perl +%define __find_requires /usr/lib/rpm/find-requires.perl +%prep +%setup -q -n XML-SAX-%{version} + +%build +%{__perl} Makefile.PL < /dev/null +make + +%install +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +make pure_install PREFIX=$RPM_BUILD_ROOT/usr + +[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress + +find $RPM_BUILD_ROOT/usr -type f -print | + sed "s@^$RPM_BUILD_ROOT@@g" | + grep -v perllocal.pod | + grep -v "\.packlist" > filelist +if [ "$(cat filelist)X" = "X" ] ; then + echo "ERROR: EMPTY FILE LIST" + exit -1 +fi + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT + +%files -f filelist +%defattr (-,root,root) +%doc Changes LICENSE README + +%changelog +* Mon Jan 14 2002 Gary Benson 0.03-1 +- initial revision. diff --git a/sources b/sources index e69de29..90b44fc 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f4da07ffcd323521407ef5e30620a5d7 XML-SAX-0.03.tar.gz