perl-Geography-Countries-vl.spec 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. %define real_name Geography-Countries
  2. Summary: Classes for 2-letter, 3-letter, and numerical codes for countries
  3. Name: perl-Geography-Countries
  4. Version: 2009041301
  5. Release: 1%{_dist_release}
  6. License: distributable
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/dist/Geography-Countries/
  9. Source: http://search.cpan.org/CPAN/authors/id/A/AB/ABIGAIL/%{real_name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. BuildRequires: perl >= 0:5.00503
  13. Requires: perl >= 0:5.00503
  14. Obsoletes: perl(IP::Country) <= 2.08
  15. %description
  16. This module maps country names, and their 2-letter, 3-letter and
  17. numerical codes, as defined by the ISO-3166 maintenance agency [1],
  18. and defined by the UNSD.
  19. %prep
  20. %setup -n %{real_name}-%{version}
  21. %build
  22. %{__perl} Makefile.PL INSTALLDIRS=vendor
  23. %{__make}
  24. %install
  25. rm -rf %{buildroot}
  26. make install DESTDIR=$RPM_BUILD_ROOT
  27. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  28. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  29. sed "s@^$RPM_BUILD_ROOT@@g" |
  30. grep -v ^%{_mandir} |
  31. grep -v perllocal.pod |
  32. grep -v "\.packlist" > %{name}.files
  33. if [ "$(cat %{name}.files)X" = "X" ] ; then
  34. echo "ERROR: EMPTY FILE LIST"
  35. exit -1
  36. fi
  37. %check
  38. make test
  39. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. %files -f %{name}.files
  42. %defattr(-, root, root, 0755)
  43. %doc MANIFEST
  44. %dir %{perl_vendorlib}/Geography
  45. %{_mandir}/man3/*.3pm*
  46. #%{perl_vendorlib}/Geography/Countries.pm
  47. # %dir %{perl_sitelib}/Geography/
  48. # %{perl_sitelib}/Geography/Countries.pm
  49. %changelog
  50. * Mon Jun 29 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  51. - 2009041301-1
  52. - new upstream release
  53. * Mon May 05 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 1.4-5
  54. - rebuild with perl 5.10
  55. - new versioning policy
  56. * Sun Feb 18 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.4-2vl4
  57. - change Group to Development/Libraries
  58. * Tue Oct 17 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 1.4-2vl3
  59. - change group to Development/Languages
  60. * Mon Oct 16 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 1.4-2vl2
  61. - 1st release for VinePlus 4.0
  62. - change install dir (site -> vendor)
  63. - fix changelog typo
  64. * Sun Oct 15 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 1.4-2vl1
  65. - 1st release for VinePlus 3.2
  66. - change install dir (vendor -> site)
  67. - remove smp flag in make section
  68. * Fri Jan 13 2006 Dag Wieers <dag@wieers.com> - 1.4-2 - 3697+/dries
  69. - Cosmetic cleanup.
  70. * Fri Jan 02 2004 Dag Wieers <dag@wieers.com> - 1.4-1
  71. - Obsolete older perl-IP-Country package.
  72. * Wed Dec 03 2003 Dag Wieers <dag@wieers.com> - 1.4-0
  73. - Initial package. (using DAR)