]>
Commit | Line | Data |
---|---|---|
d791c51f JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
d791c51f JB |
5 | %define pdir Unicode |
6 | %define pnam Stringprep | |
7 | Summary: Preparation of Internationalized Strings (RFC 3454) | |
8 | Summary(pl.UTF-8): Tworzenie umiędzynarodowionych łańcuchów znaków (RFC 3454) | |
9 | Name: perl-Unicode-Stringprep | |
022dbc7e | 10 | Version: 1.105 |
d791c51f JB |
11 | Release: 1 |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
ffb6bcbc | 15 | Source0: http://www.cpan.org/modules/by-module/Unicode/%{pdir}-%{pnam}-%{version}.tar.gz |
022dbc7e | 16 | # Source0-md5: bf9ffbc387cc12d67a3875be1cd8e105 |
d791c51f | 17 | URL: http://search.cpan.org/dist/Unicode-Stringprep/ |
ffb6bcbc | 18 | BuildRequires: perl-devel >= 1:5.8.3 |
d791c51f JB |
19 | BuildRequires: rpm-perlprov >= 4.1-13 |
20 | %if %{with tests} | |
21 | BuildRequires: perl-Test-Simple | |
22 | BuildRequires: perl-Test-NoWarnings | |
23 | BuildRequires: perl-Unicode-Normalize >= 1 | |
24 | %endif | |
ffb6bcbc | 25 | Requires: perl-Unicode-Normalize >= 1 |
d791c51f JB |
26 | BuildArch: noarch |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | This module implements the stringprep framework for preparing Unicode | |
31 | text strings in order to increase the likelihood that string input and | |
32 | string comparison work in ways that make sense for typical users | |
33 | throughout the world. The stringprep protocol is useful for protocol | |
34 | identifier values, company and personal names, internationalized | |
35 | domain names, and other text strings. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Ten moduł implementuje szkielet stringprep do przygotowywania | |
39 | unikodowych łańcuchów znaków tak, aby zwiększyć prawdopodobieństwo, że | |
40 | wejście i porównywanie łańcuchów działa w sposób sensowny dla typowych | |
41 | użytkowników na świecie. Protokół stringprep jest przydatny dla | |
42 | wartości identyfikujących protokół, nazw firm i osób, międzynarodowych | |
43 | domen i innych łańcuchów tekstowych. | |
44 | ||
45 | %prep | |
46 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
47 | ||
48 | %build | |
49 | %{__perl} Makefile.PL \ | |
50 | INSTALLDIRS=vendor | |
51 | ||
52 | %{__make} | |
53 | ||
54 | %{?with_tests:%{__make} test} | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %{__make} install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc Changes README | |
68 | %{perl_vendorlib}/Unicode/Stringprep.pm | |
69 | %{perl_vendorlib}/Unicode/Stringprep | |
70 | %{_mandir}/man3/Unicode::Stringprep*.3pm* |