From 36f9f1591322136b4b2afd16ef30c58823899690 Mon Sep 17 00:00:00 2001 From: Jose Pedro Oliveira Date: Feb 28 2005 21:08:22 +0000 Subject: Bring up to date with current fedora.extras perl spec template --- diff --git a/perl-Cache-Cache.spec b/perl-Cache-Cache.spec index b691616..c0fd7e9 100644 --- a/perl-Cache-Cache.spec +++ b/perl-Cache-Cache.spec @@ -1,17 +1,21 @@ %{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)} -Summary: Generic cache interface and implementations -Name: perl-Cache-Cache -Version: 1.03 -Release: 1 -License: GPL or Artistic -Group: Applications/CPAN -URL: http://search.cpan.org/dist/Cache-Cache/ -Source: http://search.cpan.org/CPAN/authors/id/D/DC/DCLINTON/Cache-Cache-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) -BuildRequires: perl(IPC::ShareLite), perl(Digest::SHA1), perl(Error) -BuildArch: noarch +Name: perl-Cache-Cache +Version: 1.03 +Release: 2 +Summary: Generic cache interface and implementations + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/Cache-Cache/ +Source0: http://www.cpan.org/authors/id/D/DC/DCLINTON/Cache-Cache-1.03.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl >= 1:5.6.1, perl(Storable) +BuildRequires: perl(Digest::SHA1), perl(Error), perl(IPC::ShareLite) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + %description The Cache modules are designed to assist a developer in persisting data for a @@ -24,34 +28,41 @@ of the filesystem or shared memory. %prep -%setup -n Cache-Cache-%{version} +%setup -q -n Cache-Cache-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS="vendor" -%{__make} %{?_smp_mflags} +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} %install -%{__rm} -rf %{buildroot} -%{__make} pure_install PERL_INSTALL_ROOT="%{buildroot}" +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* -# Clean up buildroot -find %{buildroot} -type f -name .packlist -exec rm -f {} \; +%check || : +make test -%clean -%{__rm} -rf %{buildroot} + +%clean +rm -rf $RPM_BUILD_ROOT %files -%defattr(-, root, root, 0755) -%doc CHANGES COPYING* CREDITS DISCLAIMER README +%defattr(-,root,root,-) +%doc CHANGES COPYING CREDITS DISCLAIMER README STYLE %{perl_vendorlib}/Cache/ %{_mandir}/man3/*.3* %changelog +* Mon Feb 28 2005 Jose Pedro Oliveira - 1.03-2 +- Bring up to date with current fedora.extras perl spec template. + * Tue Feb 1 2005 Matthias Saou 1.03-1 - Merge in changes from Jose Pedro Oliveira's fedora.us package : #146741. - Update to 1.03.