[5700] | 1 | %define pkgname Test-MockDBI |
---|
| 2 | |
---|
| 3 | Name: perl-%{pkgname} |
---|
| 4 | Version: 0.65 |
---|
[9004] | 5 | Release: 3%{?_dist_release} |
---|
[5700] | 6 | Summary: Test by mocking-up DBI |
---|
[9004] | 7 | |
---|
[5700] | 8 | License: Artistic or GPL+ |
---|
[9004] | 9 | Group: Development/Libraries |
---|
| 10 | URL: http://search.cpan.org/dist/%{pkgname} |
---|
[5700] | 11 | Source0: http://search.cpan.org/CPAN/authors/id/A/AF/AFF/%{pkgname}-%{version}.tar.gz |
---|
| 12 | BuildRequires: perl |
---|
| 13 | BuildRequires: perl(DBI) |
---|
[9004] | 14 | BuildRequires: perl(Test::MockObject) |
---|
[5700] | 15 | Requires: perl(DBI) |
---|
| 16 | BuildArch: noarch |
---|
[9004] | 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[5700] | 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 |
---|
[5798] | 40 | %{__perl} Makefile.PL installdirs=vendor |
---|
[5700] | 41 | %{__make} %{?_smp_mflags} |
---|
| 42 | |
---|
| 43 | %check |
---|
| 44 | %{__make} test |
---|
| 45 | |
---|
| 46 | %install |
---|
[5798] | 47 | rm -rf %{buildroot} |
---|
| 48 | %{__make} install DESTDIR=%{buildroot} |
---|
[9004] | 49 | |
---|
[5798] | 50 | %{__rm} -rf %{buildroot}%{perl_archlib} |
---|
[9004] | 51 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 52 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
[5700] | 53 | |
---|
| 54 | %clean |
---|
[5798] | 55 | rm -rf %{buildroot} |
---|
[5700] | 56 | |
---|
| 57 | %files |
---|
| 58 | %defattr(-,root,root,755) |
---|
| 59 | %doc Changes HISTORY README TODO |
---|
| 60 | %{_mandir}/man3/* |
---|
[5798] | 61 | %{perl_vendorlib}/* |
---|
[5700] | 62 | |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | %changelog |
---|
[9004] | 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 | |
---|
[5798] | 70 | * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.65-2 |
---|
| 71 | - rebuild |
---|
| 72 | |
---|
[5700] | 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 | |
---|