cdcc2dbde8
Wed Apr 03 2002 Gary Benson <gbenson@redhat.com> 0.03-2 - tweak perl dependency as suggested by cturner@redhat.com Wed Mar 20 2002 Gary Benson <gbenson@redhat.com> - build against perl 5.6.1
66 lines
1.8 KiB
RPMSpec
66 lines
1.8 KiB
RPMSpec
%define perlver %(rpm -q perl --queryformat '%%{version}')
|
|
|
|
Summary: Classes for using SAX2 in Perl.
|
|
Name: perl-XML-SAX
|
|
Version: 0.03
|
|
Release: 2
|
|
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
|
|
* Wed Apr 03 2002 Gary Benson <gbenson@redhat.com> 0.03-2
|
|
- tweak perl dependency as suggested by cturner@redhat.com
|
|
|
|
* Wed Mar 20 2002 Gary Benson <gbenson@redhat.com>
|
|
- build against perl 5.6.1
|
|
|
|
* Mon Jan 14 2002 Gary Benson <gbenson@redhat.com> 0.03-1
|
|
- initial revision.
|