]> git.pld-linux.org Git - packages/perl-XML-SAX-Expat.git/commitdiff
- perl may be missing on postun on perl removal AC-branch auto/ac/perl-XML-SAX-Expat-0_40-2 auto/th/perl-XML-SAX-Expat-0_40-2
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 21 Nov 2010 20:31:02 +0000 (20:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-XML-SAX-Expat.spec -> 1.10

perl-XML-SAX-Expat.spec

index eba3c79952899b7fe1a3cbc18d1e6ecd80f31479..cc0a2de24b5e7e0ed748ef9350fbc534619ec3d5 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Conditional build:
 %bcond_without tests   # do not perform "make test"
-#
+
 %include       /usr/lib/rpm/macros.perl
 %define                pdir    XML
 %define                pnam    SAX-Expat
@@ -9,17 +9,17 @@ Summary:      XML::SAX::Expat - SAX2 driver for Expat (XML::Parser)
 Summary(pl.UTF-8):     XML::SAX::Expat - sterownik SAX2 dla modułu Expat (XML::Parser)
 Name:          perl-XML-SAX-Expat
 Version:       0.40
-Release:       1
+Release:       2
 # same as perl
 License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
 Source0:       http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5: ca58d1e26c437b31c52456b4b4ae5c4a
 URL:           http://search.cpan.org/dist/XML-SAX-Expat/
+BuildRequires: perl(XML::SAX::Base) >= 1.00
 BuildRequires: perl-XML-NamespaceSupport >= 0.03
 BuildRequires: perl-XML-Parser >= 2.27
 BuildRequires: perl-XML-SAX >= 0.03
-BuildRequires: perl(XML::SAX::Base) >= 1.00
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
 BuildArch:     noarch
@@ -61,7 +61,7 @@ umask 022
 %{__perl} -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers()"
 
 %postun
-if [ "$1" = "0" ]; then
+if [ "$1" = "0" ] && [ -x %{__perl} ]; then
        umask 022
        %{__perl} -MXML::SAX -e "XML::SAX->remove_parser(q(XML::SAX::Expat))->save_parsers()"
 fi
This page took 0.049522 seconds and 4 git commands to generate.