8ea1eaa
Name:           perl-Business-CreditCard
8ea1eaa
Version:        0.30
5795c29
Release:        5%{?dist}
8ea1eaa
Summary:        Validate/generate credit card checksums/names
8ea1eaa
License:        GPL+ or Artistic
8ea1eaa
Group:          Development/Libraries
8ea1eaa
URL:            http://search.cpan.org/dist/Business-CreditCard/
8ea1eaa
Source0:        http://www.cpan.org/modules/by-module/Business/Business-CreditCard-%{version}.tar.gz
8ea1eaa
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
8ea1eaa
BuildArch:      noarch
8ea1eaa
BuildRequires:  perl(ExtUtils::MakeMaker)
8ea1eaa
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
8ea1eaa
8ea1eaa
%description
8ea1eaa
These subroutines tell you whether a credit card number is self-consistent
8ea1eaa
-- whether the last digit of the number is a valid checksum for the
8ea1eaa
preceding digits.
8ea1eaa
8ea1eaa
%prep
8ea1eaa
%setup -q -n Business-CreditCard-%{version}
8ea1eaa
8ea1eaa
%build
8ea1eaa
%{__perl} Makefile.PL INSTALLDIRS=vendor
8ea1eaa
make %{?_smp_mflags}
8ea1eaa
8ea1eaa
%install
8ea1eaa
rm -rf $RPM_BUILD_ROOT
8ea1eaa
8ea1eaa
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
8ea1eaa
8ea1eaa
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
8ea1eaa
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
8ea1eaa
8ea1eaa
%{_fixperms} $RPM_BUILD_ROOT/*
8ea1eaa
8ea1eaa
%check
8ea1eaa
make test
8ea1eaa
8ea1eaa
%clean
8ea1eaa
rm -rf $RPM_BUILD_ROOT
8ea1eaa
8ea1eaa
%files
8ea1eaa
%defattr(-,root,root,-)
8ea1eaa
%doc BINS Changes README
8ea1eaa
%{perl_vendorlib}/*
8ea1eaa
%{_mandir}/man3/*
8ea1eaa
8ea1eaa
%changelog
5795c29
* Thu Apr 29 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.30-5
5795c29
- Mass rebuild with perl-5.12.0
5795c29
83db146
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.30-4
83db146
- rebuild against perl 5.10.1
83db146
77af324
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-3
77af324
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
77af324
3e619a3
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-2
3e619a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3e619a3
8ea1eaa
* Mon Jun 23 2008 Michael Stahnke <mastahnke@gmail.com> 0.30-1
8ea1eaa
- Specfile autogenerated by cpanspec 1.77.