rpms/perl-DBD-Mock/devel perl-DBD-Mock.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Chris Weyl (cweyl)
fedora-extras-commits at redhat.com
Mon Mar 19 15:00:25 UTC 2007
Author: cweyl
Update of /cvs/extras/rpms/perl-DBD-Mock/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2544/devel
Modified Files:
.cvsignore sources
Added Files:
perl-DBD-Mock.spec
Log Message:
auto-import perl-DBD-Mock-1.34-1.fc6 on branch devel from perl-DBD-Mock-1.34-1.fc6.src.rpm
--- NEW FILE perl-DBD-Mock.spec ---
Name: perl-DBD-Mock
Version: 1.34
Release: 1%{?dist}
Summary: Mock database driver for testing
License: GPL or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/DBD-Mock/
Source0: http://www.cpan.org/authors/id/R/RK/RKINYON/DBD-Mock-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl >= 1:5.6.0
BuildRequires: perl(DBI) >= 1.3
BuildRequires: perl(Module::Build), perl(Test::More) >= 0.47
## testing
BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Testing with databases can be tricky. If you are developing a system
married to a single database then you can make some assumptions about your
environment and ask the user to provide relevant connection information.
But if you need to test a framework that uses DBI, particularly a framework
that uses different types of persistence schemes, then it may be more
useful to simply verify what the framework is trying to do -- ensure the
right SQL is generated and that the correct parameters are bound. DBD::Mock
makes it easy to just modify your configuration (presumably held outside
your code) and just use it instead of DBD::Foo (like DBD::Pg or DBD::mysql)
in your framework.
%prep
%setup -q -n DBD-Mock-%{version}
%build
%{__perl} Build.PL installdirs=vendor
./Build
%install
rm -rf %{buildroot}
./Build install destdir=%{buildroot} create_packlist=0
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} %{buildroot}/*
%check
./Build test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Sat Mar 10 2007 Chris Weyl <cweyl at alumni.drew.edu> 1.34-1
- Specfile autogenerated by cpanspec 1.70.
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-DBD-Mock/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 19 Mar 2007 01:14:32 -0000 1.1
+++ .cvsignore 19 Mar 2007 14:59:52 -0000 1.2
@@ -0,0 +1 @@
+DBD-Mock-1.34.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-DBD-Mock/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 19 Mar 2007 01:14:32 -0000 1.1
+++ sources 19 Mar 2007 14:59:52 -0000 1.2
@@ -0,0 +1 @@
+5070cfde75059aa2273e09b39c4d2d5f DBD-Mock-1.34.tar.gz
More information about the scm-commits
mailing list