source: projects/specs/trunk/p/perl-Test-MockDBI/perl-Test-MockDBI-vl.spec @ 5798

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