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.UTF-8): XML::Quote - funkcje do cytowania łańcuchów w sposób "XML-owy"
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 98f45c2efeeea13793949e5c74689741
18 URL: http://search.cpan.org/dist/XML-Quote/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This module provides functions to quote/dequote strings in "XML"-way.
26 All functions are written in XS and are very fast; they correctly
27 process UTF-8, tied, overloaded variables and all the rest of Perl
30 %description -l pl.UTF-8
31 Ten moduł udostępnia funkcje do cytowania łańcuchów w sposób
34 Wszystkie funkcje są napisane w XS i są bardzo szybkie. Poprawnie
35 przetwarzają UTF-8, zmienne związane i przeciążone, a także całą
36 resztę perlowej "magii".
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 OPTIMIZE="%{rpmcflags}"
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %{perl_vendorarch}/XML/Quote.pm
63 %dir %{perl_vendorarch}/auto/XML/Quote
64 %attr(755,root,root) %{perl_vendorarch}/auto/XML/Quote/Quote.so
65 %{perl_vendorarch}/auto/XML/Quote/autosplit.ix