2004-09-09 10:23:36 +00:00
|
|
|
Summary: XML-SAX Perl module
|
2004-09-09 10:22:44 +00:00
|
|
|
Name: perl-XML-SAX
|
2004-09-09 10:23:36 +00:00
|
|
|
Version: 0.12
|
|
|
|
Release: 5
|
2004-09-09 10:22:44 +00:00
|
|
|
License: GPL or Artistic
|
2004-09-09 10:23:36 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/XML-SAX/
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
BuildRequires: perl >= 2:5.8.0
|
|
|
|
Requires: %(perl -MConfig -le 'if (defined $Config{useithreads}) { print "perl(:WITH_ITHREADS)" } else { print "perl(:WITHOUT_ITHREADS)" }')
|
|
|
|
Requires: %(perl -MConfig -le 'if (defined $Config{usethreads}) { print "perl(:WITH_THREADS)" } else { print "perl(:WITHOUT_THREADS)" }')
|
|
|
|
Requires: %(perl -MConfig -le 'if (defined $Config{uselargefiles}) { print "perl(:WITH_LARGEFILES)" } else { print "perl(:WITHOUT_LARGEFILES)" }')
|
|
|
|
Source0: XML-SAX-0.12.tar.gz
|
2004-09-09 10:22:44 +00:00
|
|
|
BuildArch: noarch
|
2004-09-09 10:23:36 +00:00
|
|
|
BuildRequires: perl-XML-NamespaceSupport
|
2004-09-09 10:22:44 +00:00
|
|
|
|
|
|
|
%description
|
2004-09-09 10:23:36 +00:00
|
|
|
%{summary}.
|
2004-09-09 10:22:44 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n XML-SAX-%{version}
|
|
|
|
|
|
|
|
%build
|
2004-09-09 10:23:36 +00:00
|
|
|
echo N | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor
|
|
|
|
make OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
make test
|
2004-09-09 10:22:44 +00:00
|
|
|
|
|
|
|
%install
|
2004-09-09 10:23:36 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
eval `perl '-V:installarchlib'`
|
|
|
|
mkdir -p $RPM_BUILD_ROOT$installarchlib
|
|
|
|
%makeinstall
|
|
|
|
rm -f `find $RPM_BUILD_ROOT -type f -name perllocal.pod -o -name .packlist`
|
2004-09-09 10:22:44 +00:00
|
|
|
|
2004-09-09 10:23:36 +00:00
|
|
|
[ -x %{_libdir}/rpm/brp-compress ] && %{_libdir}/rpm/brp-compress
|
2004-09-09 10:22:44 +00:00
|
|
|
|
2004-09-09 10:23:36 +00:00
|
|
|
find $RPM_BUILD_ROOT%{_prefix} -type f -print | \
|
|
|
|
sed "s@^$RPM_BUILD_ROOT@@g" > %{name}-%{version}-%{release}-filelist
|
|
|
|
if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then
|
2004-09-09 10:22:44 +00:00
|
|
|
echo "ERROR: EMPTY FILE LIST"
|
2004-09-09 10:23:36 +00:00
|
|
|
exit 1
|
2004-09-09 10:22:44 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%clean
|
2004-09-09 10:23:36 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-09-09 10:22:44 +00:00
|
|
|
|
2004-09-09 10:23:36 +00:00
|
|
|
%files -f %{name}-%{version}-%{release}-filelist
|
|
|
|
%defattr(-,root,root,-)
|
2004-09-09 10:22:44 +00:00
|
|
|
|
|
|
|
%changelog
|
2004-09-09 10:23:36 +00:00
|
|
|
* Wed Oct 22 2003 Chip Turner <cturner@redhat.com> - 0.12-1
|
|
|
|
- Specfile autogenerated.
|
2004-09-09 10:22:50 +00:00
|
|
|
|