perl-Test-MockDBI-vl.spec 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. %define pkgname Test-MockDBI
  2. Name: perl-%{pkgname}
  3. Version: 0.65
  4. Release: 2%{?_dist_release}
  5. Summary: Test by mocking-up DBI
  6. License: Artistic or GPL+
  7. Group: Development/Perl
  8. Url: http://search.cpan.org/dist/%{pkgname}
  9. Source0: http://search.cpan.org/CPAN/authors/id/A/AF/AFF/%{pkgname}-%{version}.tar.gz
  10. BuildRequires: perl
  11. BuildRequires: perl(DBI)
  12. BuildRequires: perl(Test::MockObject)
  13. Requires: perl(DBI)
  14. BuildArch: noarch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: shaolin
  19. %description
  20. Test::MockDBI provides a way to test DBI interfaces by creating rules for
  21. changing the DBI\'s behavior, then examining the standard output for
  22. matching patterns.
  23. %prep
  24. %setup -q -n %{pkgname}-%{version}
  25. find . -type f -print0 | xargs -0 chmod 644
  26. %{__cat} > DBI.cfg << EOF
  27. DSN DBI:SQLite:dbname=test
  28. USER test
  29. PASS
  30. SQL SELECT 1
  31. EOF
  32. %build
  33. %{__perl} Makefile.PL installdirs=vendor
  34. %{__make} %{?_smp_mflags}
  35. %check
  36. %{__make} test
  37. %install
  38. rm -rf %{buildroot}
  39. %{__make} install DESTDIR=%{buildroot}
  40. %{__rm} -rf %{buildroot}%{perl_archlib}
  41. %clean
  42. rm -rf %{buildroot}
  43. %files
  44. %defattr(-,root,root,755)
  45. %doc Changes HISTORY README TODO
  46. %{_mandir}/man3/*
  47. %{perl_vendorlib}/*
  48. %changelog
  49. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.65-2
  50. - rebuild
  51. * Mon Feb 20 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.65-1
  52. - initial build for Vine Linux
  53. * Fri Sep 30 2011 Leonardo Coelho <leonardoc@mandriva.com> 0.650.0-1mdv2012.0
  54. + Revision: 702167
  55. - first mandriva version
  56. - Created package structure for 'perl-Test-MockDBI'.