3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Persistent
8 Summary: Attribute::Persistent - really lazy persistence
9 Summary(pl): Attribute::Persistent - bardzo leniwe zachowywanie atrybutów
10 Name: perl-Attribute-Persistent
13 License: GPL 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: 04253a2788a686d26cb2b428a92071b1
17 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: perl-Attribute-Handlers-Prospective
20 BuildRequires: perl-Digest-MD5
21 BuildRequires: perl-MLDBM
23 BuildRequires: rpm-perlprov >= 4.1-13
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This module provides a way of abstracting away persistence of array
31 It's useful for quick hacks when you don't care about pulling in the
32 right DBM library and calling tie and so on. Its job is to reduce fuss
33 for the lazy programmer at the cost of flexibility.
36 Ten modu³ udostêpnia metodê na wyabstrahowanie zachowywania zmiennych
37 tablicowych i haszy. Jest przydatnych do szybkich hacków, kiedy nie
38 dba siê o wyci±ganie w³a¶ciwej biblioteki DBM, wywo³ywanie jej
39 dowi±zañ itd. Zadaniem modu³u jest zredukowanie zamieszania dla
40 leniwego programisty kosztem elastyczno¶ci.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorlib}/%{pdir}/*.pm