3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: XML::Quote - functions to quote/dequote strings in "XML"-way
9 Summary(pl): XML::Quote - funkcje do cytowania ³añcuchów w sposób "XML-owy"
14 License: GPL or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 98f45c2efeeea13793949e5c74689741
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This module provides functions to quote/dequote strings in "XML"-way.
25 All functions are written in XS and are very fast; they correctly
26 process UTF-8, tied, overloaded variables and all the rest of Perl
30 Ten modu³ udostêpnia funkcje do cytowania ³añcuchów w sposób
33 Wszystkie funkcje s± napisane w XS i s± bardzo szybkie. Poprawnie
34 przetwarzaj± UTF-8, zmienne zwi±zane i przeci±¿one, a tak¿e ca³±
35 resztê perlowej "magii".
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 OPTIMIZE="%{rpmcflags}"
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorarch}/XML/Quote.pm
62 %dir %{perl_vendorarch}/auto/XML/Quote
63 %{perl_vendorarch}/auto/XML/Quote/Quote.bs
64 %attr(755,root,root) %{perl_vendorarch}/auto/XML/Quote/Quote.so
65 %{perl_vendorarch}/auto/XML/Quote/autosplit.ix