- post scriptlet needs to check whether the file is installed. When it
isn't, then it's needed call for adding PurePerl parser http://perl-xml.sourceforge.net/faq/#parserdetails.ini
This commit is contained in:
parent
ff3307cc53
commit
f209bba372
@ -1,7 +1,7 @@
|
||||
Summary: XML-SAX Perl module
|
||||
Name: perl-XML-SAX
|
||||
Version: 0.96
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPL+ or Artistic
|
||||
@ -59,11 +59,13 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%post
|
||||
perl -MXML::SAX -e \
|
||||
if [ ! -f "/usr/lib/perl5/vendor_perl/5.10.0/XML/SAX/ParserDetails.ini" ] ; then
|
||||
perl -MXML::SAX -e \
|
||||
'XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()' 2>/dev/null || :
|
||||
fi
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
if [ $1 -eq 0 ] ; then
|
||||
perl -MXML::SAX -e \
|
||||
'XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()' || :
|
||||
fi
|
||||
@ -84,6 +86,11 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Nov 12 2009 Marcela Mašláňová <mmaslano@redhat.com> - 0.96-6
|
||||
- post scriptlet needs to check whether the file is installed. When it isn't,
|
||||
then it's needed call for adding PurePerl parser
|
||||
http://perl-xml.sourceforge.net/faq/#parserdetails.ini
|
||||
|
||||
* Mon Oct 19 2009 Stepan Kasal <skasal@redhat.com> - 0.96-5
|
||||
- use the filtering macros
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user