Blob Blame History Raw
Name:           perl-Class-DBI-FromCGI
Version:        1.00
Release:        3%{?dist}
Summary:        Update Class::DBI data using CGI::Untaint
Group:          Development/Libraries
License:        GPL+ or Artistic
URL:            http://search.cpan.org/dist/Class-DBI-FromCGI
Source0:        http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/Class-DBI-FromCGI-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:	perl(Class::DBI), perl(CGI::Untaint), perl(DBD::SQLite) 
BuildRequires:	perl(Test::More)
Requires:  perl(Class::DBI), perl(CGI::Untaint)
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
%{summary}.

%prep
%setup -q -n Class-DBI-FromCGI-%{version}
perldoc -t perlartistic > Artistic
perldoc -t perlgpl > COPYING

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%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 -type d -depth -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,-)
%doc Artistic COPYING Changes
%{perl_vendorlib}/Class/DBI
%{_mandir}/man3/*.3*


%changelog
* Fri Aug 24 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.00-3
- license fix

* Thu Sep 14 2006 Tom "spot" Callaway <tcallawa@redhat.com> - 1.00-2
- bump for FC-6

* Mon Jan  9 2006 Tom "spot" Callaway <tcallawa@redhat.com> - 1.00-1
- bump to 1.00

* Wed Sep  7 2005 Paul Howarth <paul@city-fan.org> - 0.94-3
- remove redundant BR: perl
- honor %%{_smp_mflags}
- include license text
- add BR: perl(DBD::SQLite) for better test cover

* Fri Jul  8 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.94-2
- cleanups

* Wed Jul  6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.94-1
- Initial package for Fedora Extras