2004-09-09 10:23:39 +00:00
|
|
|
%define _use_internal_dependency_generator 0
|
2004-09-24 22:44:14 +00:00
|
|
|
%{!?perl_vendorlib: %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)}
|
2004-09-09 10:23:39 +00:00
|
|
|
|
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
|
2005-12-19 20:04:15 +00:00
|
|
|
Version: 0.13
|
|
|
|
Release: 1
|
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)" }')
|
2004-09-24 22:44:14 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(perl -MConfig -e 'print $Config{version}'))
|
2005-12-19 20:04:15 +00:00
|
|
|
Source0: XML-SAX-%{version}.tar.gz
|
2004-09-09 10:23:39 +00:00
|
|
|
Source1: filter-requires-xmlsax.sh
|
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
|
|
|
|
2004-09-09 10:23:39 +00:00
|
|
|
# Provide perl-specific find-{provides,requires}.
|
|
|
|
%define __find_provides /usr/lib/rpm/find-provides.perl
|
|
|
|
# %%define __find_requires /usr/lib/rpm/find-requires.perl
|
|
|
|
%define __find_requires %{SOURCE1}
|
|
|
|
|
|
|
|
|
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-24 22:44:14 +00:00
|
|
|
echo N | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
|
2004-09-09 10:23:36 +00:00
|
|
|
make OPTIMIZE="$RPM_OPT_FLAGS"
|
2004-09-09 10:22:44 +00:00
|
|
|
|
|
|
|
%install
|
2004-09-09 10:23:36 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-09-24 22:44:14 +00:00
|
|
|
make install \
|
|
|
|
PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \
|
|
|
|
INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib}
|
|
|
|
find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \
|
|
|
|
-o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
|
|
|
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
touch $RPM_BUILD_ROOT%{perl_vendorlib}/XML/SAX/ParserDetails.ini
|
|
|
|
|
|
|
|
%check || :
|
|
|
|
make test
|
2004-09-09 10:22:44 +00:00
|
|
|
|
|
|
|
%clean
|
2004-09-09 10:23:36 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-09-09 10:22:44 +00:00
|
|
|
|
2004-09-24 22:44:14 +00:00
|
|
|
%post
|
|
|
|
perl -MXML::SAX -e \
|
|
|
|
'XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()' 2>/dev/null
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
perl -MXML::SAX -e \
|
|
|
|
'XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()'
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
2004-09-09 10:23:36 +00:00
|
|
|
%defattr(-,root,root,-)
|
2004-09-24 22:44:14 +00:00
|
|
|
%doc Changes LICENSE README
|
|
|
|
%dir %{perl_vendorlib}/XML
|
|
|
|
%{perl_vendorlib}/XML/SAX.pm
|
|
|
|
%dir %{perl_vendorlib}/XML/SAX
|
|
|
|
%{perl_vendorlib}/XML/SAX/*.pm
|
|
|
|
%{perl_vendorlib}/XML/SAX/*.pod
|
|
|
|
%{perl_vendorlib}/XML/SAX/PurePerl
|
|
|
|
%{_mandir}/man3/XML::*.3*
|
|
|
|
%ghost %{perl_vendorlib}/XML/SAX/ParserDetails.ini
|
|
|
|
%exclude %{perl_vendorlib}/XML/SAX/placeholder.pl
|
2004-09-09 10:22:44 +00:00
|
|
|
|
|
|
|
%changelog
|
2005-12-19 20:04:15 +00:00
|
|
|
* Mon Dec 19 2005 Jason Vas Dias <jvdias@redhat.com>
|
|
|
|
- upgrade to 0.13
|
|
|
|
|
2005-12-17 02:18:14 +00:00
|
|
|
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt for new gcc
|
|
|
|
|
2005-12-16 23:24:38 +00:00
|
|
|
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt for new gcj
|
|
|
|
|
2004-09-24 22:44:14 +00:00
|
|
|
* Sun Apr 18 2004 Ville Skyttä <ville.skytta at iki.fi> - 0.12-7
|
|
|
|
- #121167
|
|
|
|
- Handle ParserDetails.ini parser registration.
|
|
|
|
- Require perl(:MODULE_COMPAT_*).
|
|
|
|
- Own installed directories.
|
|
|
|
|
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
|
|
|
|