3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam TemporaryBag
8 Summary: Data::TemporaryBag - Handle long size data using temporary file.
9 Name: perl-Data-TemporaryBag
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 BuildRequires: perl-devel >= 1:5.8.0
16 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _noautoreq 'perl(anything_fake_or_conditional)'
23 Data::TemporaryBag module provides a bag object class handling long
24 size data. The short size data are kept on memory. When the data size
25 becomes over $Threshold size, they are saved into a temporary file
29 %setup -q -n %{pdir}-%{pnam}-%{version}
32 # Don't use pipes here: they generally don't work. Apply a patch.
33 %{__perl} Makefile.PL \
37 # if module isn't noarch, use:
39 # OPTIMIZE="%{rpmcflags}"
41 %{?with_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
47 DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)