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

Revision 9004, 1.9 KB checked in by inagaki, 10 years ago (diff)

2014-10-11 Ryoichi INAGAKI <ryo1@…>

  • perl-Net-SMTP-SSL, perl-Thread-Tie, perl-Test-MockDBI: rebuild
  • perl-Thread-Serialize, perl-Test-MockObject?, perl-UNIERSAL-can, perl-UNIVERSAL-isa, perl-load: update


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