# # Conditional build: %bcond_without 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: 2 License: LGPL Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: ae09400fac17eaea4c9b12283db06881 %{?with_tests:BuildRequires: perl-Authen-SASL} Patch0: perl-XML-Stream-warnings.patch BuildRequires: perl-Unicode-String >= 2.06 BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _noautoreq 'perl(HTTP::ProxyAutoConfig)' %description This module provides you with access to XML Streams. An XML Stream is just that. A stream of XML over a connection between two computers. %description -l pl.UTF-8 Ten moduł daje dostęp do strumieni XML. Strumień XML jest po prostu tym, co mówi nazwa - strumieniem XML po połączeniu między dwoma komputerami. %prep %setup -q -n %{pdir}-%{pnam}-%{version} 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 %build echo -e "y\ny\ny\n" | %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ UNINST=0 \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README CHANGES INFO %{perl_vendorlib}/XML/* %{_mandir}/man3/*