]> git.pld-linux.org Git - packages/perl-DBIx-Recordset.git/blame - perl-DBIx-Recordset.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-DBIx-Recordset.git] / perl-DBIx-Recordset.spec
CommitLineData
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 7Summary: DBIx::Recordset - abstraction and simplification of database access
192288c4 8Summary(pl.UTF-8): DBIx::Recordset - abstrakcja i uproszczenie dostępu do bazy danych
93f00e05 9Name: perl-DBIx-Recordset
9016c464 10Version: 0.26
9f258f0c 11Release: 2
89d9add0 12License: GPL or Artistic
93f00e05 13Group: Development/Languages/Perl
42631f01 14Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
2af8b493 15# Source0-md5: fe008ad93b76ac0dea487f0c014842ee
0d734e98 16URL: http://search.cpan.org/dist/DBIx-Recordset/
5d7a99b8 17BuildRequires: perl-devel >= 1:5.8.0
3e329b81 18BuildRequires: rpm-perlprov >= 4.1-13
71d1a2e2 19%if %{with tests}
9b31bdf8 20BuildRequires: perl-DBI
71d1a2e2 21%endif
93f00e05 22BuildArch: noarch
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
93f00e05 25%description
26DBIx::Recordset is a perl module for abstraction and simplification of
27database access.
28
89d9add0 29The goal is to make standard database access
30(select/insert/update/delete) easier to handle and independend of the
0d734e98
ER
31underlying DBMS. Special attention is made on web applications to make
32it possible to handle the state-less access and to process the posted
33data of formfields, but DBIx::Recordset is not limited to web
89d9add0 34applications.
93f00e05 35
fa0e8774
JR
36%description -l pl.UTF-8
37DBIx::Recordset jest modułem Perla, umożliwiającym łatwy dostęp do baz
38danych na wyższym, niż oferowany przez moduł DBI poziomie abstrakcji.
93f00e05 39
fa0e8774
JR
40Celem jest uproszczenie typowych (odczyt/zapis/nadpisanie/usunięcie)
41operacji na bazie danych, oraz uniezależnienie ich od stosowanego
42DBMS. Szczególną uwagę poświęcono umożliwieniu aplikacjom internetowym
43obsługi bezstanowego dostępu i przetwarzania danych z formularzy, ale
93f00e05 44DBIx::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
57rm -rf $RPM_BUILD_ROOT
58
befcfe2a 59%{__make} install \
60 DESTDIR=$RPM_BUILD_ROOT
93f00e05 61
b67d0e54 62mv -f eg/README README.eg
93f00e05 63
64install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
0d734e98 65cp -p eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
93f00e05 66
67%clean
68rm -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}
This page took 0.337962 seconds and 4 git commands to generate.