]> git.pld-linux.org Git - packages/perl-Net-IDN-Encode.git/blob - perl-Net-IDN-Encode.spec
- massive: unfold macros in name/summary & other unifications
[packages/perl-Net-IDN-Encode.git] / perl-Net-IDN-Encode.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Net
7 %define pnam    IDN-Encode
8 Summary:        Encoding/decoding of Internationalized Domain Names (IDNs)
9 Summary(pl):    Kodowanie/dekodowanie miêdzynarodowych nazw domenowych (IDN)
10 Name:           perl-Net-IDN-Encode
11 Version:        0.01
12 Release:        1
13 # "same as perl"
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  4c6ab56c32ea13278c22f96dcd63399f
18 URL:            http://search.cpan.org/dist/Net-IDN-Encode/
19 %if %{with tests}
20 BuildRequires:  perl-Net-IDN-Nameprep >= 0.02
21 BuildRequires:  perl-IDNA-Punycode >= 0.02
22 %endif
23 BuildRequires:  perl-devel >= 1:5.8.0
24 BuildRequires:  rpm-perlprov >= 4.1-13
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         _noautoreq      'perl(v5.6.0)'
29
30 %description
31 The "Net::IDN::Encode" module provides an easy-to-use interface for
32 Internationalized Domain Names (IDNs).
33
34 %description -l pl
35 Modu³ Net::IDN::Encode dostarcza ³atwego w u¿yciu interfejsu do
36 obs³ugi Miêdzynarodowych Nazw Domenowych (Internationalized Domain
37 Names [IDNs]).
38
39 %prep
40 %setup -q -n %{pdir}-%{pnam}-%{version}
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45
46 %{__make}
47
48 %{?with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc Changes README
62 %{perl_vendorlib}/Net/IDN/Encode.pm
63 %{_mandir}/man3/*
This page took 0.447782 seconds and 4 git commands to generate.