perl-XML-SAX/perl-XML-SAX.spec
cvsdist b25460cfda auto-import changelog data from perl-XML-SAX-0.03-1.src.rpm
Mon Jan 14 2002 Gary Benson <gbenson@redhat.com> 0.03-1
- initial revision.
2004-09-09 10:22:44 +00:00

60 lines
1.6 KiB
RPMSpec

%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 <gbenson@redhat.com> 0.03-1
- initial revision.