3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
7 %define pnam IDN-Nameprep
8 Summary: IDN nameprep tools
9 Summary(pl.UTF-8): Narzędzia obsługujące specyfikację IDN nameprep
10 Name: perl-Net-IDN-Nameprep
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Net/CFAERBER/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: ba4342fdb57e2c62afc122194d1e680b
18 URL: http://search.cpan.org/dist/IDN-Nameprep/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 %if %{with autodeps} || %{with tests}
22 BuildRequires: perl-Unicode-Stringprep >= 1.1
25 BuildRequires: perl-Test-Simple
26 BuildRequires: perl-Test-NoWarnings
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Net::IDN::Nameprep implements IDN nameprep specification. This module
33 exports only one function called nameprep.
35 %description -l pl.UTF-8
36 Net::IDN::Nameprep jest implementacją specyfikacji IDN nameprep. Ten
37 moduł eksportuje tylko jedną funkcję o nazwie nameprep.
40 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %{perl_vendorlib}/Net/IDN/Nameprep.pm
63 %{_mandir}/man3/Net::IDN::Nameprep.3pm*