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/%{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
29 %description -l pl.UTF-8
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 \
44 OPTIMIZE="%{rpmcflags}"
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorarch}/XML/Quote.pm
61 %dir %{perl_vendorarch}/auto/XML/Quote
62 %{perl_vendorarch}/auto/XML/Quote/Quote.bs
63 %attr(755,root,root) %{perl_vendorarch}/auto/XML/Quote/Quote.so
64 %{perl_vendorarch}/auto/XML/Quote/autosplit.ix