]> git.pld-linux.org Git - packages/perl-Test-utf8.git/commitdiff
- new auto/th/perl-Test-utf8-1.01-1
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 2 Oct 2018 19:59:08 +0000 (21:59 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 2 Oct 2018 19:59:08 +0000 (21:59 +0200)
perl-Test-utf8.spec [new file with mode: 0644]

diff --git a/perl-Test-utf8.spec b/perl-Test-utf8.spec
new file mode 100644 (file)
index 0000000..871bde8
--- /dev/null
@@ -0,0 +1,66 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    Test
+%define                pnam    utf8
+%include       /usr/lib/rpm/macros.perl
+Summary:       Test::utf8 - handy UTF-8 tests
+Summary(pl.UTF-8):     Test::utf8 - podręczne testy UTF-8
+Name:          perl-Test-utf8
+Version:       1.01
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 58351d9e168399f6e55fb0982cdbe6a1
+URL:           https://metacpan.org/release/Test-utf8
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Test-Builder-Tester >= 0.09
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module is a collection of tests useful for dealing with UTF-8
+strings in Perl.
+
+This module has two types of tests: The validity tests check if a
+string is valid and not corrupt, whereas the characteristics tests
+will check that string has a given set of characteristics.
+
+%description -l pl.UTF-8
+Ten moduł to zbiór testów przydatnych przy obsłudze łańcuchów
+znaków UTF-8 w Perlu.
+
+Moduł ma dwa rodzaje testów: testy poprawności, sprawdzające, czy
+łańcuch jest poprawny oraz testy charakterystyki, sprawdzające, czy
+łancuch ma dany zbiór cech.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES
+%{perl_vendorlib}/Test/utf8.pm
+%{_mandir}/man3/Test::utf8.3pm*
This page took 0.215226 seconds and 4 git commands to generate.