1 | %define pkgname Test-MockDBI |
---|
2 | |
---|
3 | Name: perl-%{pkgname} |
---|
4 | Version: 0.65 |
---|
5 | Release: 2%{?_dist_release} |
---|
6 | Summary: Test by mocking-up DBI |
---|
7 | License: Artistic or GPL+ |
---|
8 | Group: Development/Perl |
---|
9 | Url: http://search.cpan.org/dist/%{pkgname} |
---|
10 | Source0: http://search.cpan.org/CPAN/authors/id/A/AF/AFF/%{pkgname}-%{version}.tar.gz |
---|
11 | BuildRequires: perl |
---|
12 | BuildRequires: perl(DBI) |
---|
13 | BuildRequires: perl(Test::MockObject) |
---|
14 | Requires: perl(DBI) |
---|
15 | BuildArch: noarch |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
---|
17 | |
---|
18 | Vendor: Project Vine |
---|
19 | Distribution: Vine Linux |
---|
20 | Packager: shaolin |
---|
21 | |
---|
22 | %description |
---|
23 | Test::MockDBI provides a way to test DBI interfaces by creating rules for |
---|
24 | changing the DBI\'s behavior, then examining the standard output for |
---|
25 | matching patterns. |
---|
26 | |
---|
27 | %prep |
---|
28 | %setup -q -n %{pkgname}-%{version} |
---|
29 | find . -type f -print0 | xargs -0 chmod 644 |
---|
30 | %{__cat} > DBI.cfg << EOF |
---|
31 | DSN DBI:SQLite:dbname=test |
---|
32 | USER test |
---|
33 | PASS |
---|
34 | SQL SELECT 1 |
---|
35 | EOF |
---|
36 | |
---|
37 | |
---|
38 | %build |
---|
39 | %{__perl} Makefile.PL installdirs=vendor |
---|
40 | %{__make} %{?_smp_mflags} |
---|
41 | |
---|
42 | %check |
---|
43 | %{__make} test |
---|
44 | |
---|
45 | %install |
---|
46 | rm -rf %{buildroot} |
---|
47 | %{__make} install DESTDIR=%{buildroot} |
---|
48 | %{__rm} -rf %{buildroot}%{perl_archlib} |
---|
49 | |
---|
50 | %clean |
---|
51 | rm -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 | |
---|