[packages/perl-IP-Country-DB_File] Initial
arekm
arekm at pld-linux.org
Tue Aug 1 12:51:53 CEST 2023
commit 2872d145bd4ff767a4a40fecd66c58f8237fd13b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Aug 1 11:51:37 2023 +0200
Initial
perl-IP-Country-DB_File.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
---
diff --git a/perl-IP-Country-DB_File.spec b/perl-IP-Country-DB_File.spec
new file mode 100644
index 0000000..e872820
--- /dev/null
+++ b/perl-IP-Country-DB_File.spec
@@ -0,0 +1,66 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+#
+%define pdir IP
+%define pnam Country-DB_File
+Summary: IP::Country::DB_File - IPv4 and IPv6 to country translation using DB_File
+Name: perl-IP-Country-DB_File
+Version: 3.03
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/IP/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 749ea4ca65126ef38d30bb386865c49e
+URL: https://metacpan.org/dist/IP-Country-DB_File
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
+%if %{with tests}
+BuildRequires: perl-Math-Int64
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+IP::Country::DB_File is a light-weight module for fast IP address to
+country translation based on DB_File. The country code database is
+stored in a Berkeley DB file. You have to build the database using
+build_ipcc.pl or IP::Country::DB_File::Builder before you can lookup
+country codes.
+
+This module tries to be API compatible with the other IP::Country
+modules. The installation of IP::Country is not required.
+
+There are many other modules for locating IP addresses. Neil Bowers
+posted an excellent review. Some features that make this module
+unique:
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%attr(755,root,root) %{_bindir}/build_ipcc.pl
+%{perl_vendorlib}/IP/Country/*.pm
+%{perl_vendorlib}/IP/Country/DB_File
+%{_mandir}/man1/build_ipcc.pl.1*
+%{_mandir}/man3/IP::Country::DB_File*.3*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-IP-Country-DB_File.git/commitdiff/2872d145bd4ff767a4a40fecd66c58f8237fd13b
More information about the pld-cvs-commit
mailing list