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: 71d187539c76ac1ed9a0242ff208796d
17 URL: https://metacpan.org/release/Test-utf8
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: rpmbuild(macros) >= 1.745
22 BuildRequires: perl-Test-Builder-Tester >= 0.09
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This module is a collection of tests useful for dealing with UTF-8
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.
35 %description -l pl.UTF-8
36 Ten moduł to zbiór testów przydatnych przy obsłudze łańcuchów
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.
44 %setup -q -n %{pdir}-%{pnam}-%{version}
47 %{__perl} Makefile.PL \
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
56 %{__make} pure_install \
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorlib}/Test/utf8.pm
66 %{_mandir}/man3/Test::utf8.3pm*