3 %bcond_without tests # Do not perform "make test"
6 %define pnam DataLookup
7 Summary: DataLookup - Perl extension for database view lookup table
8 Summary(pl.UTF-8): DataLookup - rozszerzenie Perla do przeglądania widoków baz danych
9 Name: perl-DBIx-DataLookup
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: fe4102aa940282b3fe731d37149b73dc
16 URL: http://search.cpan.org/dist/DBIx-DataLookup/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Remotely similar to DBIx::Cache but is very simpler and serves
24 narrower purpose. This module allows you to both cache records pulled
25 by an SQL statement from a database in the memory as well as look them
26 up later at any time during execution of your script.
28 %description -l pl.UTF-8
29 Ten moduł zewnętrznie jest podobny do DBIx::Cache, ale jest prostszy i
30 ma węższy zakres zastosowań. Pozwala na pamiętanie w pamięci rekordów
31 wyciągniętych z bazy przez wyrażenia SQL, a także przeglądanie ich
32 później w dowolnej chwili.
35 %setup -q -n %{pdir}-%{pnam}-%{version}/%{pnam}
38 %{__perl} -MExtUtils::MakeMaker -e 'WriteMakefile(NAME=>"DBIx::DataLookup")' \
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %{perl_vendorlib}/%{pdir}/*.pm