]> git.pld-linux.org Git - packages/perl-Data-TemporaryBag.git/blob - perl-Data-TemporaryBag.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Data-TemporaryBag.git] / perl-Data-TemporaryBag.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define pdir    Data
6 %define pnam    TemporaryBag
7 Summary:        Data::TemporaryBag - handle long size data using temporary file
8 Summary(pl.UTF-8):      Data::TemporaryBag - obsługa danych o dużym rozmiarze przy pomocy pliku tymczasowego
9 Name:           perl-Data-TemporaryBag
10 Version:        0.09
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  a0045c0cc1fe92dd54ead9a682a83f08
17 URL:            http://search.cpan.org/dist/Data-TemporaryBag/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Data::TemporaryBag module provides a bag object class handling long
25 size data. The short size data are kept on memory. When the data size
26 becomes over $Threshold size, they are saved into a temporary file
27 internally.
28
29 %description -l pl.UTF-8
30 Moduł Data::TemporaryBAg dostarcza klasę obiektu torby obsługującą
31 dane o dużym rozmiarze. Dane o małym rozmiarze są przechowywane w
32 pamięci. Kiedy rozmiar danych przekracza $Threshold, są one zapisywane
33 wewnętrznie do pliku tymczasowego.
34
35 %prep
36 %setup -q -n %{pdir}-%{pnam}-%{version}
37
38 %build
39 %{__perl} Makefile.PL \
40         INSTALLDIRS=vendor
41
42 %{__make}
43
44 %{?with_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc Changes README
58 %{perl_vendorlib}/Data/TemporaryBag.pm
59 %{_mandir}/man3/*
This page took 0.069013 seconds and 4 git commands to generate.