# # Conditional build: # _without_tests - do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir Attribute %define pnam Persistent Summary: Attribute::Persistent - Really lazy persistence Summary(pl): Attribute::Persistent - bardzo leniwe zachowywanie atrybutów Name: perl-Attribute-Persistent Version: 1.0 Release: 2 License: GPL/Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz BuildRequires: perl >= 5.6 %if %{?_without_tests:0}%{!?_without_tests:1} BuildRequires: perl-Attribute-Handlers-Prospective BuildRequires: perl-Digest-MD5 BuildRequires: perl-MLDBM %endif BuildRequires: rpm-perlprov >= 3.0.3-26 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This module provides a way of abstracting away persistence of array and hash variables. It's useful for quick hacks when you don't care about pulling in the right DBM library and calling tie and so on. Its job is to reduce fuss for the lazy programmer at the cost of flexibility. %description -l pl Ten moduł udostępnia metodę na wyabstrahowanie zachowywania zmiennych tablicowych i haszy. Jest przydatnych do szybkich hacków, kiedy nie dba się o wyciąganie właściwej biblioteki DBM, wywoływanie jej dowiązań itd. Zadaniem modułu jest zredukowanie zamieszania dla leniwego programisty kosztem elastyczności. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build perl Makefile.PL %{__make} %{!?_without_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 Change* %{perl_sitelib}/%{pdir}/*.pm %{_mandir}/man3/*