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