# # Conditional build: # _without_tests - do not perform "make test" # %include /usr/lib/rpm/macros.perl %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: 4 License: GPL/Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz URL: http://perl-cache.sourceforge.net/ BuildRequires: perl >= 5.6.1 %if %{?_without_tests:0}%{!?_without_tests:1} BuildRequires: perl-Digest-SHA1 >= 2.01 BuildRequires: perl-Error >= 0.15 BuildRequires: perl(File::Spec) >= 0.82 BuildRequires: perl-IPC-ShareLite >= 0.08 BuildRequires: perl-Storable >= 1.014 %endif BuildRequires: rpm-perlprov >= 3.0.3-16 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The Cache modules are designed to assist a developer in persisting data for a specified period of time. Often these modules are used in web applications to store data locally to save repeated and redundant expensive calls to remote machines or databases. People have also been known to use Cache::Cache for its straightforward interface in sharing data between runs of an application or invocations of a CGI-style script or simply as an easy to use abstraction of the filesystem or shared memory. %description -l pl Moduły Cache mają na celu pomóc programiście w utrzymywaniu danych przez określony czas. Te moduły są przeważnie używane w aplikacjach WWW do zapisywania danych lokalnie w celu uniknięcia powtarzających się i niepotrzebnych odwołań do zewnętrznych maszyn lub baz danych. Cache::Cache bywa używany ze względu na swój prosty interfejs do dzielenia danych pomiędzy uruchomieniami aplikacji lub wywołaniami skryptu CGI, albo po prostu jako łatwa w użyciu abstrakcja systemu plików lub pamięci dzielonej. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} -MExtUtils::MakeMaker -wle 'WriteMakefile(NAME=>"Cache::Cache")' %{__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 CHANGES COPYING CREDITS DISCLAIMER README STYLE %{perl_sitelib}/Cache/*.pm %{_mandir}/man3/*