]> git.pld-linux.org Git - packages/perl-XML-Stream.git/blame - perl-XML-Stream.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-XML-Stream.git] / perl-XML-Stream.spec
CommitLineData
35b8452e
JB
1#
2# Conditional build:
51a10f87 3%bcond_with tests # do not perform "make test"
35b8452e 4#
6a30d463 5%define pdir XML
6%define pnam Stream
35b8452e 7Summary: XML::Stream - XML streams interface for Perl
0d65d341 8Summary(pl.UTF-8): XML::Stream - interfejs do strumieni XML dla Perla
c3efd1ad 9Name: perl-XML-Stream
da2c755a 10Version: 1.24
3901a155 11Release: 2
d7fac088
JB
12# same as perl
13License: GPL v1+ or Artistic
c3efd1ad 14Group: Development/Languages/Perl
45fd77b9 15Source0: http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz
da2c755a 16# Source0-md5: 62717494479cba3746bfeab73d2f955c
a03d26f5 17Patch0: %{name}-warnings.patch
3901a155 18Patch1: ssl-ca.patch
d7fac088 19URL: http://search.cpan.org/dist/XML-Stream/
090e963b 20BuildRequires: perl-Unicode-String >= 2.06
35b8452e 21BuildRequires: perl-devel >= 1:5.8.0
a4a58957 22BuildRequires: rpm-perlprov >= 4.1-13
fa57f9ba
JB
23%if %{with tests}
24BuildRequires: perl-Authen-SASL
25BuildRequires: perl-Encode
26BuildRequires: perl-MIME-Base64
27BuildRequires: perl-Test-Simple >= 0.92
28%endif
090e963b 29BuildArch: noarch
c3efd1ad
JK
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
3780e8c6 32%define _noautoreq 'perl(HTTP::ProxyAutoConfig)'
c3efd1ad
JK
33
34%description
35b8452e
JB
35This module provides you with access to XML Streams. An XML Stream is
36just that. A stream of XML over a connection between two computers.
c3efd1ad 37
04776a05
JR
38%description -l pl.UTF-8
39Ten moduł daje dostęp do strumieni XML. Strumień XML jest po prostu
40tym, co mówi nazwa - strumieniem XML po połączeniu między dwoma
35b8452e 41komputerami.
d8cf9ca0 42
c3efd1ad 43%prep
c89bfeb1 44%setup -q -n %{pdir}-%{pnam}-%{version}
f337cdd4 45for i in Stream.pm Stream/*.pm Stream/*/*.pm; do
ed24e3a3 46 %{__perl} -pi -e 's/^(use 5.006_)0(01;)(.*)$/$1$2$3/' lib/XML/$i
f337cdd4 47done
af1f7f14 48%patch0 -p1
3901a155 49%patch1 -p1
c3efd1ad
JK
50
51%build
a4a58957 52echo -e "y\ny\ny\n" | %{__perl} Makefile.PL \
53 INSTALLDIRS=vendor
090e963b 54%{__make}
c3efd1ad 55
35b8452e
JB
56%{?with_tests:%{__make} test}
57
c3efd1ad
JK
58%install
59rm -rf $RPM_BUILD_ROOT
c3efd1ad 60
3780e8c6
JB
61%{__make} install \
62 UNINST=0 \
63 DESTDIR=$RPM_BUILD_ROOT
c3efd1ad 64
c3efd1ad
JK
65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%files
69%defattr(644,root,root,755)
9fce97f3 70%doc README CHANGES INFO
a4a58957 71%{perl_vendorlib}/XML/*
c3efd1ad 72%{_mandir}/man3/*
This page took 0.093206 seconds and 4 git commands to generate.