]>
Commit | Line | Data |
---|---|---|
6d1c4ae1 | 1 | %include /usr/lib/rpm/macros.perl |
2 | %define pdir DBIx | |
3 | %define pnam FetchLoop | |
4 | Summary: DBIx::FetchLoop - Fetch with change detection and aggregates | |
5 | #Summary(pl): | |
6 | Name: perl-DBIx-FetchLoop | |
7 | Version: 0.41 | |
8 | Release: 1 | |
9 | License: ? | |
10 | Group: Development/Languages/Perl | |
11 | Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
12 | BuildRequires: perl >= 5.6 | |
13 | BuildRequires: rpm-perlprov >= 3.0.3-26 | |
14 | BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | DBIx::FetchLoop is a supplemental approach for data retrieval with | |
19 | DBI. Result rows are queued with hash references to previous, current | |
20 | and next rows. Utility functions allow for simplified comparison of a | |
21 | field between previous and current or current and next rows. Additional | |
22 | functions allow you automatically create new fields for aggregating or | |
23 | concatenating based on fields in the resulting dataset. | |
24 | ||
25 | # %description -l pl | |
26 | # TODO | |
27 | ||
28 | %prep | |
29 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
30 | ||
31 | %build | |
32 | perl Makefile.PL | |
33 | %{__make} | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %files | |
44 | %defattr(644,root,root,755) | |
45 | %{perl_sitelib}/%{pdir}/*.pm | |
46 | %{_mandir}/man3/* |