]> git.pld-linux.org Git - packages/perl-Net-IDN-Nameprep.git/blob - perl-Net-IDN-Nameprep.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Net-IDN-Nameprep.git] / perl-Net-IDN-Nameprep.spec
1 #
2 # Conditional build:
3 %bcond_without  autodeps        # don't BR packages needed only for resolving deps
4 %bcond_without  tests           # do not perform "make test"
5 #
6 %define         pdir    Net
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
11 Version:        1.102
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/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
23 %endif
24 %if %{with tests}
25 BuildRequires:  perl-Test-Simple
26 BuildRequires:  perl-Test-NoWarnings
27 %endif
28 BuildArch:      noarch
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 Net::IDN::Nameprep implements IDN nameprep specification. This module
33 exports only one function called nameprep.
34
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.
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/Nameprep.pm
63 %{_mandir}/man3/Net::IDN::Nameprep.3pm*
This page took 0.069016 seconds and 4 git commands to generate.