84551b1
Name:           perl-Class-DBI-AsForm
ae30c35
Version:        2.42
597d965
Release:        5%{?dist}
84551b1
Summary:        Produce HTML form elements for database columns
84551b1
Group:          Development/Libraries
597d965
License:        GPL+ or Artistic
84551b1
URL:            http://search.cpan.org/dist/Class-DBI-AsForm
84551b1
Source0:        http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/Class-DBI-AsForm-%{version}.tar.gz
84551b1
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
84551b1
84551b1
BuildArch:      noarch
84551b1
BuildRequires:	perl(Class::DBI), perl(HTML::Element), perl(Class::DBI::Plugin::Type)
597d965
BuildRequires:  perl(DBD::SQLite), perl(Test::Pod), perl(Test::Pod::Coverage), perl(Test::More)
84551b1
Requires:  perl(Class::DBI)
84551b1
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
e2d85a6
Patch0:		perl-Class-DBI-AsForm-fix01test.patch
84551b1
84551b1
%description
84551b1
%{summary}.
84551b1
84551b1
%prep
84551b1
%setup -q -n Class-DBI-AsForm-%{version}
e2d85a6
%patch0 -p1
84551b1
perldoc -t perlartistic > Artistic
84551b1
perldoc -t perlgpl > COPYING
84551b1
 
84551b1
84551b1
%build
84551b1
%{__perl} Makefile.PL INSTALLDIRS=vendor
84551b1
make %{?_smp_mflags}
84551b1
84551b1
%install
84551b1
rm -rf $RPM_BUILD_ROOT
84551b1
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
84551b1
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
84551b1
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
84551b1
chmod -R u+w $RPM_BUILD_ROOT/*
84551b1
84551b1
%check
84551b1
make test
84551b1
84551b1
%clean
84551b1
rm -rf $RPM_BUILD_ROOT
84551b1
84551b1
%files
84551b1
%defattr(-,root,root,-)
84551b1
%doc Artistic COPYING Changes
84551b1
%{perl_vendorlib}/Class/DBI
84551b1
%{_mandir}/man3/*.3*
84551b1
84551b1
84551b1
%changelog
597d965
* Fri Aug 24 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.42-5
597d965
- license fix
597d965
e2d85a6
* Thu Sep 14 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.42-4
e2d85a6
- fix broken test
e2d85a6
94187d1
* Thu Sep 14 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.42-3
94187d1
- fix missing BR
94187d1
161d599
* Thu Sep 14 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.42-2
161d599
- bump for fc-6
161d599
ae30c35
* Thu Jan  5 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.42-1
ae30c35
- bump to 2.42
ae30c35
84551b1
* Wed Sep  7 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.41-3
84551b1
- remove redundant BR: perl
84551b1
- honor %%{_smp_mflags}
84551b1
- include license text
84551b1
84551b1
* Fri Jul  8 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.41-2
84551b1
- cleanups
84551b1
84551b1
* Wed Jul  6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.41-1
84551b1
- Initial package for Fedora Extras