]> git.pld-linux.org Git - packages/perl-Net-Domain-TLD.git/blob - perl-Net-Domain-TLD.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Net-Domain-TLD.git] / perl-Net-Domain-TLD.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    PDIR
6 %define         pnam    PNAM
7 Summary:        Work with TLD names
8 Name:           perl-Net-Domain-TLD
9 Version:        1.70
10 Release:        2
11 License:        GPL+ or Artistic
12 Group:          Development/Libraries
13 Source0:        http://search.cpan.org/CPAN/authors/id/A/AL/ALEXP/Net-Domain-TLD-%{version}.tar.gz
14 # Source0-md5:  025709d5c48461ff8b647254ac3cffbc
15 URL:            http://search.cpan.org/dist/Net-Domain-TLD/
16 BuildRequires:  rpm-perlprov >= 4.1-13
17 %if %{with autodeps} || %{with tests}
18 BuildRequires:  perl(Carp)
19 BuildRequires:  perl(Exporter)
20 BuildRequires:  perl(ExtUtils::MakeMaker)
21 BuildRequires:  perl(Storable)
22 BuildRequires:  perl(base)
23 BuildRequires:  perl(constant)
24 BuildRequires:  perl(strict)
25 BuildRequires:  perl(warnings)
26 %endif
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 The purpose of this module is to provide user with current list of
32 available top level domain names including new ICANN additions and
33 ccTLDs.
34
35 %prep
36 %setup -q -n Net-Domain-TLD-%{version}
37
38 %build
39 %{__perl} Makefile.PL \
40         INSTALLDIRS=vendor
41 %{__make}
42
43 %{?with_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 %{__make} pure_install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Net/Domain/TLD/.packlist
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc Changes
58 %dir %{perl_vendorlib}/Net/Domain
59 %{perl_vendorlib}/Net/Domain/TLD.pm
60 %{_mandir}/man3/Net::Domain::TLD.3pm*
This page took 0.106968 seconds and 4 git commands to generate.