]>
Commit | Line | Data |
---|---|---|
bbc0f242 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Test | |
6 | %define pnam utf8 | |
bbc0f242 JB |
7 | Summary: Test::utf8 - handy UTF-8 tests |
8 | Summary(pl.UTF-8): Test::utf8 - podręczne testy UTF-8 | |
9 | Name: perl-Test-utf8 | |
fcfc3b00 | 10 | Version: 1.02 |
bbc0f242 JB |
11 | Release: 1 |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz | |
fcfc3b00 | 16 | # Source0-md5: 71d187539c76ac1ed9a0242ff208796d |
bbc0f242 JB |
17 | URL: https://metacpan.org/release/Test-utf8 |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
fcfc3b00 | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
bbc0f242 JB |
21 | %if %{with tests} |
22 | BuildRequires: perl-Test-Builder-Tester >= 0.09 | |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | This module is a collection of tests useful for dealing with UTF-8 | |
29 | strings in Perl. | |
30 | ||
31 | This module has two types of tests: The validity tests check if a | |
32 | string is valid and not corrupt, whereas the characteristics tests | |
33 | will check that string has a given set of characteristics. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | Ten moduł to zbiór testów przydatnych przy obsłudze łańcuchów | |
37 | znaków UTF-8 w Perlu. | |
38 | ||
39 | Moduł ma dwa rodzaje testów: testy poprawności, sprawdzające, czy | |
40 | łańcuch jest poprawny oraz testy charakterystyki, sprawdzające, czy | |
41 | łancuch ma dany zbiór cech. | |
42 | ||
43 | %prep | |
44 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
45 | ||
46 | %build | |
47 | %{__perl} Makefile.PL \ | |
48 | INSTALLDIRS=vendor | |
49 | %{__make} | |
50 | ||
51 | %{?with_tests:%{__make} test} | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %{__make} pure_install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc CHANGES | |
65 | %{perl_vendorlib}/Test/utf8.pm | |
66 | %{_mandir}/man3/Test::utf8.3pm* |