perl-IP-Country-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. %define real_name IP-Country
  2. Summary: Classes for fast lookup of country codes from IP addresses for Perl
  3. Name: perl-IP-Country
  4. Version: 2.28
  5. Release: 1%{_dist_release}
  6. License: distributable
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/dist/IP-Country/
  9. Source: http://search.cpan.org/CPAN/authors/id/N/NW/NWETTERS/%{real_name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. BuildRequires: perl(ExtUtils::MakeMaker)
  13. BuildRequires: perl(Geography::Countries)
  14. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. %description
  18. Finding the home country of a client using only the IP address can be difficult.
  19. Looking up the domain name associated with that address can provide some help,
  20. but many IP address are not reverse mapped to any useful domain, and the
  21. most common domain (.com) offers no help when looking for country.
  22. This module comes bundled with a database of countries where various IP addresses
  23. have been assigned. Although the country of assignment will probably be the
  24. country associated with a large ISP rather than the client herself, this is
  25. probably good enough for most log analysis applications, and under test has proved
  26. to be as accurate as reverse-DNS and WHOIS lookup.
  27. %prep
  28. %setup -n %{real_name}-%{version}
  29. %build
  30. CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor
  31. make
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. make install DESTDIR=$RPM_BUILD_ROOT
  35. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  36. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  37. sed "s@^$RPM_BUILD_ROOT@@g" |
  38. grep -v ^%{_bindir} |
  39. grep -v ^%{_mandir} |
  40. grep -v "\.packlist" > %{name}.files
  41. if [ "$(cat %{name}.files)X" = "X" ] ; then
  42. echo "ERROR: EMPTY FILE LIST"
  43. exit -1
  44. fi
  45. %check
  46. make test
  47. %clean
  48. rm -rf $RPM_BUILD_ROOT
  49. %files -f %{name}.files
  50. %defattr(-, root, root, 0755)
  51. %doc CHANGES MANIFEST README
  52. %{_bindir}/ip2cc
  53. %{_mandir}/man1/ip2cc.1*
  54. %{_mandir}/man3/*.3*
  55. %dir %{perl_vendorlib}/IP
  56. %changelog
  57. * Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.28-1
  58. - updated to 2.28
  59. - built with perl 5.16.3
  60. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.26-2
  61. - rebuild with perl-5.12.3
  62. * Mon Jun 29 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 2.26-1
  63. - new upstream release
  64. - remove BR: perl(Geography::Countries)
  65. * Mon May 06 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 2.24-1
  66. - new upstream release
  67. * Mon May 05 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 2.23-1
  68. - rebuild with perl 5.10
  69. - new versioning policy
  70. * Sun Feb 18 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.23-0vl1
  71. - new upstream release
  72. - change group to Development/Libraries
  73. * Tue Oct 17 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 2.21-1vl3
  74. - change group to Development/Languages
  75. * Mon Oct 16 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 2.21-1vl2
  76. - 1st release for VinePlus 4.0
  77. - change install dir (site -> vendor)
  78. - fix change log typo
  79. * Sun Oct 15 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 2.21-1vl1
  80. - 1st release for VinePlus 3.2
  81. - change install dir (vendor -> site)
  82. - remove smp flag in make section
  83. * Mon May 29 2006 Dag Wieers <dag@wieers.com> - 2.21-1
  84. - Updated to release 2.21.
  85. * Sat Jun 18 2005 Dries Verachtert <dries@ulyssis.org> - 2.20-1
  86. - Updated to release 2.20.
  87. * Sat Nov 06 2004 Dag Wieers <dag@wieers.com> - 2.18-1
  88. - Updated to release 2.18.
  89. * Fri Jan 02 2004 Dag Wieers <dag@wieers.com> - 2.17-0
  90. - Updated to release 2.17.
  91. * Mon Jul 14 2003 Dag Wieers <dag@wieers.com> - 2.14-0
  92. - Updated to release 2.14.
  93. * Sat Feb 01 2003 Dag Wieers <dag@wieers.com> - 2.08-0
  94. - Initial package. (using DAR)