]> git.pld-linux.org Git - packages/perl-Data-TemporaryBag.git/commitdiff
-new spec
authorGrzegorz Sterniczuk <grzegorz@sterniczuk.eu>
Thu, 28 Oct 2004 12:50:33 +0000 (12:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Data-TemporaryBag.spec -> 1.1

perl-Data-TemporaryBag.spec [new file with mode: 0644]

diff --git a/perl-Data-TemporaryBag.spec b/perl-Data-TemporaryBag.spec
new file mode 100644 (file)
index 0000000..b9f7e65
--- /dev/null
@@ -0,0 +1,58 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define        pdir    Data
+%define        pnam    TemporaryBag
+Summary:       Data::TemporaryBag - Handle long size data using temporary file.
+Name:          perl-Data-TemporaryBag
+Version:       0.08
+Release:       0.2
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _noautoreq      'perl(anything_fake_or_conditional)'
+
+%description
+Data::TemporaryBag module provides a bag object class handling long
+size data. The short size data are kept on memory. When the data size
+becomes over $Threshold size, they are saved into a temporary file
+internally.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+# Don't use pipes here: they generally don't work. Apply a patch.
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+
+%{__make}
+# if module isn't noarch, use:
+# %{__make} \
+#      OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+# use macros:
+%{perl_vendorlib}/*
+%{perl_vendorarch}/*
+%{_mandir}/man3/*
This page took 0.191491 seconds and 4 git commands to generate.