3 %bcond_without tests # do not perform "make test"
7 Summary: Test::utf8 - handy UTF-8 tests
8 Summary(pl.UTF-8): Test::utf8 - podręczne testy UTF-8
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
16 # Source0-md5: 58351d9e168399f6e55fb0982cdbe6a1
17 URL: https://metacpan.org/release/Test-utf8
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Test-Builder-Tester >= 0.09
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This module is a collection of tests useful for dealing with UTF-8
30 This module has two types of tests: The validity tests check if a
31 string is valid and not corrupt, whereas the characteristics tests
32 will check that string has a given set of characteristics.
34 %description -l pl.UTF-8
35 Ten moduł to zbiór testów przydatnych przy obsłudze łańcuchów
38 Moduł ma dwa rodzaje testów: testy poprawności, sprawdzające, czy
39 łańcuch jest poprawny oraz testy charakterystyki, sprawdzające, czy
40 łancuch ma dany zbiór cech.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
55 %{__make} pure_install \
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorlib}/Test/utf8.pm
65 %{_mandir}/man3/Test::utf8.3pm*