3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam utf8_strict
8 Summary: PerlIO::utf8_strict - Fast and correct UTF-8 IO
9 Name: perl-%{pdir}-%{pnam}
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/PerlIO/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 6b971926fa3dbd2af494753004a279a0
17 URL: http://search.cpan.org/dist/PerlIO-utf8_strict/
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 a fast and correct UTF-8 PerlIO layer.
24 Unlike perl's default :utf8 layer it checks the input for correctness.
27 %setup -q -n %{pdir}-%{pnam}-%{version}
31 destdir=$RPM_BUILD_ROOT \
36 OPTIMIZE="%{rpmcflags}"
38 %{?with_tests:./Build test}
41 rm -rf $RPM_BUILD_ROOT
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
51 %{perl_vendorarch}/PerlIO/utf8_strict.pm
52 %dir %{perl_vendorarch}/auto/PerlIO/utf8_strict
53 %attr(755,root,root) %{perl_vendorarch}/auto/PerlIO/utf8_strict/*.so