]> git.pld-linux.org Git - packages/perl-XML-Stream.git/blobdiff - perl-XML-Stream.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-XML-Stream.git] / perl-XML-Stream.spec
index 1c263f78042ee66f42723042b56b02317f3fdf14..290a1cb17c2e48acbafc91b27c43765fa4663047 100644 (file)
@@ -1,26 +1,31 @@
 #
 # Conditional build:
-%bcond_without tests   # do not perform "make test"
+%bcond_with    tests   # do not perform "make test"
 #
-%include       /usr/lib/rpm/macros.perl
 %define                pdir    XML
 %define                pnam    Stream
 Summary:       XML::Stream - XML streams interface for Perl
 Summary(pl.UTF-8):     XML::Stream - interfejs do strumieni XML dla Perla
 Name:          perl-XML-Stream
-Version:       1.22
-Release:       3
+Version:       1.24
+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: ae09400fac17eaea4c9b12283db06881
+# Source0-md5: 62717494479cba3746bfeab73d2f955c
 Patch0:                %{name}-warnings.patch
+Patch1:                ssl-ca.patch
 URL:           http://search.cpan.org/dist/XML-Stream/
-%{?with_tests:BuildRequires:   perl-Authen-SASL}
 BuildRequires: perl-Unicode-String >= 2.06
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Authen-SASL
+BuildRequires: perl-Encode
+BuildRequires: perl-MIME-Base64
+BuildRequires: perl-Test-Simple >= 0.92
+%endif
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -41,6 +46,7 @@ for i in Stream.pm Stream/*.pm Stream/*/*.pm; do
        %{__perl} -pi -e 's/^(use 5.006_)0(01;)(.*)$/$1$2$3/' lib/XML/$i
 done
 %patch0 -p1
+%patch1 -p1
 
 %build
 echo -e "y\ny\ny\n" | %{__perl} Makefile.PL \
This page took 0.091624 seconds and 4 git commands to generate.