+#
+# Conditional build:
+# _without_tests - do not perform "make test"
+#
%include /usr/lib/rpm/macros.perl
-%define pdir Cache
-%define pnam Cache
+%define pdir Cache
+%define pnam Cache
Summary: Cache::Cache perl extension
Summary(pl): Rozszerzenie perla: Cache::Cache
Name: perl-Cache-Cache
Version: 1.01
-Release: 2
+Release: 3
License: GPL/Artistic
Group: Development/Languages/Perl
Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
%build
perl Makefile.PL
%{__make}
+%{!?_without_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc CHANGES COPYING CREDITS DISCLAIMER README STYLE TODO
-%{perl_sitelib}/Cache
+%{perl_sitelib}/Cache/*.pm
%{_mandir}/man3/*