]>
Commit | Line | Data |
---|---|---|
dbb67cee JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir PerlIO | |
7 | %define pnam utf8_strict | |
8 | Summary: PerlIO::utf8_strict - Fast and correct UTF-8 IO | |
8ab9be9c | 9 | Name: perl-%{pdir}-%{pnam} |
f99b59f5 | 10 | Version: 0.007 |
5db944a0 | 11 | Release: 2 |
dbb67cee JR |
12 | # same as perl |
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 | |
f99b59f5 | 16 | # Source0-md5: 9e8fba7f15c612c4f2ed2f961bf1141b |
dbb67cee JR |
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) | |
21 | ||
22 | %description | |
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. | |
25 | ||
26 | %prep | |
27 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
28 | ||
29 | %build | |
f99b59f5 AM |
30 | %{__perl} Makefile.PL \ |
31 | INSTALLDIRS=vendor | |
32 | %{__make} | |
dbb67cee | 33 | |
f99b59f5 | 34 | %{?with_tests:%{__make} test} |
dbb67cee JR |
35 | |
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
f99b59f5 AM |
39 | %{__make} install \ |
40 | DESTDIR=$RPM_BUILD_ROOT | |
dbb67cee JR |
41 | |
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %doc Changes | |
48 | %{perl_vendorarch}/PerlIO/utf8_strict.pm | |
49 | %dir %{perl_vendorarch}/auto/PerlIO/utf8_strict | |
50 | %attr(755,root,root) %{perl_vendorarch}/auto/PerlIO/utf8_strict/*.so | |
51 | %{_mandir}/man3/* |