3 %bcond_without tests # do not perform "make test"
6 %define pnam TestDatabase
7 Summary: DBICx::TestDatabase - create a temporary database from a DBIx::Class::Schema
8 Summary(pl.UTF-8): DBICx::TestDatabase - tworzy tymczasową bazę danych z DBIx::Class::Schema
9 Name: perl-DBICx-TestDatabase
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://search.cpan.org/CPAN/authors/id/J/JR/JROCKWAY/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: e236d1a2bb4b07c70b35af0ae6e49415
17 URL: http://search.cpan.org/dist/DBICx-TestDatabase/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-DBD-SQLite
22 BuildRequires: perl-DBIx-Class
23 BuildRequires: perl-SQL-Translator
24 BuildRequires: perl-Test-use-ok
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This module creates a temporary SQLite database, deploys your DBIC
31 schema, and then connects to it. This lets you easily test your DBIC
32 schema. Since you have a fresh database for every test, you don't have
33 to worry about cleaning up after your tests, ordering of tests
34 affecting failure, etc.
36 %description -l pl.UTF-8
37 Moduł ten tworzy tymczasową bazę danych SQLite, osadza schemat DBIC i
38 wtedy łaczy się z nim.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
53 %{__make} pure_install \
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %{perl_vendorlib}/DBICx/*.pm
63 %{perl_vendorlib}/DBICx/TestDatabase