Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 594d443b75a1b777e15b8e042e1ad255 > files > 2

perl-IP-QQWry-0.0.20-2.mga3.src.rpm

%define upstream_name    IP-QQWry
%define upstream_version 0.0.20

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    %mkrel 2

Summary:    A simple interface for QQWry IP database(file)
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/IP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 6.420.0
BuildRequires: perl(Test::More)
BuildRequires: perl(version)
BuildArch:  noarch

%description
'QQWry.Dat' the http://www.cz88.net/fox/ manpage is an IP file database. It
provides some useful infomation such as the geographical position of the
host bound with some IP address, the IP's owner, etc. the IP::QQWry manpage
provides a simple interface for this file database.

For more about the format of the database, take a look at this: the
http://lumaqq.linuxsir.org/article/qqwry_format_detail.html manpage

Caveat: The 'QQWry.Dat' database uses gbk or big5 encoding, 'IP::QQWry'
doesn't provide any encoding conversion utility, so if you want some other
encoding, you have to do it yourself. (BTW, the Encode manpage is a great
module for this.)

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

%changelog

* Sun Jan 13 2013 umeabot <umeabot> 0.0.20-2.mga3
+ Revision: 368637
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sat Nov 26 2011 kharec <kharec> 0.0.20-1.mga2
+ Revision: 172045
- update to 0.0.20

* Tue Nov 22 2011 kharec <kharec> 0.0.16-1.mga2
+ Revision: 170967
- imported package perl-IP-QQWry