/[smeserver]/rpms/perl-IP-Country/sme9/perl-IP-Country.spec
ViewVC logotype

Annotation of /rpms/perl-IP-Country/sme9/perl-IP-Country.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Jun 19 22:34:07 2018 UTC (6 years, 5 months ago) by jpp
Branch: MAIN
CVS Tags: perl-IP-Country-2_28-1_el6_sme, HEAD
Initial import perl-IP-Country for sme9

1 jpp 1.1 Name: perl-IP-Country
2     Version: 2.28
3     Release: 1%{?dist}
4     Summary: Fast lookup of country codes from IP addresses
5     License: Artistic
6     Group: Development/Libraries
7     URL: http://search.cpan.org/dist/IP-Country/
8     Source0: http://www.cpan.org/authors/id/N/NW/NWETTERS/IP-Country-%{version}.tar.gz
9     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
10     BuildArch: noarch
11     BuildRequires: perl(ExtUtils::MakeMaker)
12     BuildRequires: perl(Geography::Countries)
13     Requires: perl(Geography::Countries)
14     Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
15    
16     %description
17     Finding the home country of a client using only the IP address can be
18     difficult. Looking up the domain name associated with that address can
19     provide some help, but many IP address are not reverse mapped to any
20     useful domain, and the most common domain (.com) offers no help when
21     looking for country.
22    
23     %prep
24     %setup -q -n IP-Country-%{version}
25    
26     %build
27     %{__perl} Makefile.PL INSTALLDIRS=vendor
28     make %{?_smp_mflags}
29    
30     %install
31     rm -rf $RPM_BUILD_ROOT
32    
33     make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
34    
35     find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
36     find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
37    
38     %{_fixperms} $RPM_BUILD_ROOT/*
39    
40     %check
41     make test
42    
43     %clean
44     rm -rf $RPM_BUILD_ROOT
45    
46     %files
47     %defattr(-,root,root,-)
48     %doc CHANGES README
49     %{perl_vendorlib}/*
50     %{_mandir}/man3/*
51     %{_mandir}/man1/ip2cc.1*
52     %{_bindir}/ip2cc
53    
54     %changelog
55     * Thu Mar 17 2016 Daniel Berteaud <daniel@firewall-services.com> 2.28-1
56     - First build using cpanspec [SME: 9328]

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed