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