]>
Commit | Line | Data |
---|---|---|
7d109517 | 1 | # |
2 | # Conditional build: | |
eaf83122 | 3 | %bcond_without tests # Do not perform "make test" |
c21589ce | 4 | |
8c0943ff | 5 | %define pdir DBIx |
6 | %define pnam DataLookup | |
a260d7f7 | 7 | Summary: DataLookup - Perl extension for database view lookup table |
b81e8825 | 8 | Summary(pl.UTF-8): DataLookup - rozszerzenie Perla do przeglądania widoków baz danych |
7d109517 | 9 | Name: perl-DBIx-DataLookup |
10 | Version: 0.03 | |
131b7d95 | 11 | Release: 5 |
8e2f9cf7 | 12 | License: GPL v1+ or Artistic |
7d109517 | 13 | Group: Development/Languages/Perl |
d8f8b37e | 14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
601e803a | 15 | # Source0-md5: fe4102aa940282b3fe731d37149b73dc |
c21589ce | 16 | URL: http://search.cpan.org/dist/DBIx-DataLookup/ |
29d00ee9 | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
bc04b40c | 18 | BuildRequires: rpm-perlprov >= 4.1-13 |
7d109517 | 19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
a260d7f7 JB |
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. | |
7d109517 | 27 | |
2f451b7d JR |
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. | |
7d109517 | 33 | |
34 | %prep | |
35 | %setup -q -n %{pdir}-%{pnam}-%{version}/%{pnam} | |
36 | ||
37 | %build | |
bc04b40c | 38 | %{__perl} -MExtUtils::MakeMaker -e 'WriteMakefile(NAME=>"DBIx::DataLookup")' \ |
39 | INSTALLDIRS=vendor | |
7d109517 | 40 | %{__make} |
a260d7f7 | 41 | |
eaf83122 | 42 | %{?with_tests:%{__make} test} |
7d109517 | 43 | |
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
6aff1dab | 47 | %{__make} install \ |
48 | DESTDIR=$RPM_BUILD_ROOT | |
7d109517 | 49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
bc04b40c | 55 | %{perl_vendorlib}/%{pdir}/*.pm |
7d109517 | 56 | %{_mandir}/man3/* |