]>
Commit | Line | Data |
---|---|---|
4c2f8bd1 AG |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
20948812 | 5 | %define pdir Net |
6 | %define pnam IDN-Encode | |
dd2c1bc6 | 7 | Summary: Encoding/decoding of Internationalized Domain Names (IDNs) |
104a7a63 | 8 | Summary(pl.UTF-8): Kodowanie/dekodowanie międzynarodowych nazw domenowych (IDN) |
ebd023ea | 9 | Name: perl-Net-IDN-Encode |
6c3fa023 | 10 | Version: 2.500 |
74cdbf5f | 11 | Release: 1 |
4c2f8bd1 AG |
12 | # "same as perl" |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
0658b2d9 | 15 | Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz |
6c3fa023 | 16 | # Source0-md5: 7e5697a38cf05ff66be96947815573da |
4c2f8bd1 | 17 | URL: http://search.cpan.org/dist/Net-IDN-Encode/ |
4cc5d28b | 18 | %if %{with tests} |
74cdbf5f | 19 | BuildRequires: perl-ExtUtils-CBuilder |
74cdbf5f JB |
20 | BuildRequires: perl-Test-NoWarnings |
21 | BuildRequires: perl-Test-Simple | |
0658b2d9 | 22 | BuildRequires: perl-Unicode-Normalize |
4cc5d28b | 23 | %endif |
0658b2d9 | 24 | BuildRequires: perl-devel >= 1:5.8.5 |
4c2f8bd1 AG |
25 | BuildRequires: rpm-perlprov >= 4.1-13 |
26 | BuildArch: noarch | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
4c2f8bd1 AG |
29 | %description |
30 | The "Net::IDN::Encode" module provides an easy-to-use interface for | |
31 | Internationalized Domain Names (IDNs). | |
32 | ||
f40d716d JR |
33 | %description -l pl.UTF-8 |
34 | Moduł Net::IDN::Encode dostarcza łatwego w użyciu interfejsu do | |
35 | obsługi Międzynarodowych Nazw Domenowych (Internationalized Domain | |
74cdbf5f | 36 | Names - IDN). |
4c2f8bd1 AG |
37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
42 | %{__perl} Makefile.PL \ | |
43 | INSTALLDIRS=vendor | |
44 | ||
45 | %{__make} | |
46 | ||
47 | %{?with_tests:%{__make} test} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
0658b2d9 JB |
55 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Net/IDN/*.pod |
56 | ||
4c2f8bd1 AG |
57 | %clean |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc Changes README | |
63 | %{perl_vendorlib}/Net/IDN/Encode.pm | |
74cdbf5f JB |
64 | %{perl_vendorlib}/Net/IDN/Punycode.pm |
65 | %{perl_vendorlib}/Net/IDN/Punycode.xs | |
66 | %{perl_vendorlib}/Net/IDN/Punycode | |
0658b2d9 JB |
67 | %{perl_vendorlib}/Net/IDN/UTS46.pm |
68 | %{perl_vendorlib}/Net/IDN/UTS46 | |
74cdbf5f | 69 | %{_mandir}/man3/Net::IDN::Encode.3pm* |
0658b2d9 | 70 | %{_mandir}/man3/Net::IDN::Overview.3pm* |
74cdbf5f | 71 | %{_mandir}/man3/Net::IDN::Punycode*.3pm* |
0658b2d9 JB |
72 | %{_mandir}/man3/Net::IDN::Standards.3pm* |
73 | %{_mandir}/man3/Net::IDN::UTS46*.3pm* |