diff --git a/perl-Geography-Countries.spec b/perl-Geography-Countries.spec new file mode 100644 index 0000000..158d60e --- /dev/null +++ b/perl-Geography-Countries.spec @@ -0,0 +1,45 @@ +Name: perl-Geography-Countries +Version: 1.4 +Release: 1%{?dist} +Summary: 2-letter, 3-letter, and numerical codes for countries +Group: Development/Libraries +License: MIT +URL: http://search.cpan.org/dist/Geography-Countries/ +Source0: http://search.cpan.org/CPAN/authors/id/A/AB/ABIGAIL/Geography-Countries-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More) +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This module maps country names, and their 2-letter, 3-letter and numerical +codes, as defined by the ISO-3166 maintenance agency, and defined by the UNSD. + +%prep +%setup -q -n Geography-Countries-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%{perl_vendorlib}/Geography +%{_mandir}/man3/*.3* + +%changelog +* Mon Apr 2 2007 Tom "spot" Callaway - 1.4-1 +- Initial package for Fedora