]>
Commit | Line | Data |
---|---|---|
71d1a2e2 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
0d734e98 | 4 | |
a10decda | 5 | %define pdir DBIx |
6 | %define pnam Recordset | |
89d9add0 | 7 | Summary: DBIx::Recordset - abstraction and simplification of database access |
192288c4 | 8 | Summary(pl.UTF-8): DBIx::Recordset - abstrakcja i uproszczenie dostępu do bazy danych |
93f00e05 | 9 | Name: perl-DBIx-Recordset |
9016c464 | 10 | Version: 0.26 |
9f258f0c | 11 | Release: 2 |
89d9add0 | 12 | License: GPL or Artistic |
93f00e05 | 13 | Group: Development/Languages/Perl |
42631f01 | 14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
2af8b493 | 15 | # Source0-md5: fe008ad93b76ac0dea487f0c014842ee |
0d734e98 | 16 | URL: http://search.cpan.org/dist/DBIx-Recordset/ |
5d7a99b8 | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
3e329b81 | 18 | BuildRequires: rpm-perlprov >= 4.1-13 |
71d1a2e2 | 19 | %if %{with tests} |
9b31bdf8 | 20 | BuildRequires: perl-DBI |
71d1a2e2 | 21 | %endif |
93f00e05 | 22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
93f00e05 | 25 | %description |
26 | DBIx::Recordset is a perl module for abstraction and simplification of | |
27 | database access. | |
28 | ||
89d9add0 | 29 | The goal is to make standard database access |
30 | (select/insert/update/delete) easier to handle and independend of the | |
0d734e98 ER |
31 | underlying DBMS. Special attention is made on web applications to make |
32 | it possible to handle the state-less access and to process the posted | |
33 | data of formfields, but DBIx::Recordset is not limited to web | |
89d9add0 | 34 | applications. |
93f00e05 | 35 | |
fa0e8774 JR |
36 | %description -l pl.UTF-8 |
37 | DBIx::Recordset jest modułem Perla, umożliwiającym łatwy dostęp do baz | |
38 | danych na wyższym, niż oferowany przez moduł DBI poziomie abstrakcji. | |
93f00e05 | 39 | |
fa0e8774 JR |
40 | Celem jest uproszczenie typowych (odczyt/zapis/nadpisanie/usunięcie) |
41 | operacji na bazie danych, oraz uniezależnienie ich od stosowanego | |
42 | DBMS. Szczególną uwagę poświęcono umożliwieniu aplikacjom internetowym | |
43 | obsługi bezstanowego dostępu i przetwarzania danych z formularzy, ale | |
93f00e05 | 44 | DBIx::Recordset nie jest ograniczony do WWW. |
45 | ||
93f00e05 | 46 | %prep |
47 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
93f00e05 | 48 | |
49 | %build | |
9016c464 | 50 | %{__perl} -MExtUtils::MakeMaker -e 'WriteMakefile(NAME=>"%{pdir}::%{pnam}")' \ |
7e610d72 | 51 | INSTALLDIRS=vendor |
93f00e05 | 52 | %{__make} |
71d1a2e2 | 53 | |
54 | %{?with_tests:%{__make} test} | |
93f00e05 | 55 | |
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
befcfe2a | 59 | %{__make} install \ |
60 | DESTDIR=$RPM_BUILD_ROOT | |
93f00e05 | 61 | |
b67d0e54 | 62 | mv -f eg/README README.eg |
93f00e05 | 63 | |
64 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
0d734e98 | 65 | cp -p eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
93f00e05 | 66 | |
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
b67d0e54 | 72 | %doc Changes README TODO README.eg |
3e329b81 | 73 | %{perl_vendorlib}/DBIx/*.pm |
74 | %dir %{perl_vendorlib}/DBIx/Recordset | |
75 | %{perl_vendorlib}/DBIx/Recordset/*.pm | |
93f00e05 | 76 | %{_mandir}/man3/* |
b67d0e54 | 77 | %{_examplesdir}/%{name}-%{version} |