Search
j0ke.net Open Build Service
>
Projects
>
devel
:
perl
>
perl-Cache-Memcached
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Added
perl-Cache-Memcached.spec
@@ -0,0 +1,85 @@ +# +# - Cache::Memcached - + +%define pkgname Cache-Memcached +%define filelist %{pkgname}-%{version}-filelist +%define NVR %{pkgname}-%{version}-%{release} +%define maketest 1 + +name: perl-Cache-Memcached +summary: Cache-Memcached - client library for memcached (memory cache daemon) +version: 1.28 +release: 1 +vendor: Brad Fitzpatrick <brad@danga.com> +packager: Arix International <cpan2rpm@arix.com> +license: Artistic +group: Applications/CPAN +url: http://www.cpan.org +buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n) +buildarch: noarch +prefix: %(echo %{_prefix}) +#Source: http://search.cpan.org//CPAN/authors/id/B/BR/BRADFITZ/%{pkgname}-%{version}.tar.gz +Source: %{pkgname}-%{version}.tar.gz + +Requires: perl = %{perl_version} +Requires: perl-String-CRC32 +BuildRequires: perl-String-CRC32 + +%description +This is the Perl API for memcached, a distributed memory cache daemon. +More information is available at: + + http://www.danga.com/memcached/ + + +%prep +%setup -q -n %{pkgname}-%{version} + + +%build +perl Makefile.PL +make + + +#%check +#make test + + +%install +%if 0%{?suse_version} +%perl_make_install +%perl_process_packlist +%else +make DESTDIR=$RPM_BUILD_ROOT install_vendor +find $RPM_BUILD_ROOT/usr -type f -name perllocal.pod |xargs -i rm -f {} +find $RPM_BUILD_ROOT/usr -type d -depth -exec rmdir {} \; 2>/dev/null +%endif + + +%clean +rm -rf $RPM_BUILD_ROOT + +# vendorarch='/usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi'; +# vendorlib='/usr/lib/perl5/vendor_perl/5.8.8'; + +%files +%defattr(-,root,root) +%doc README TODO +%doc %{_mandir}/man?/* +%dir %{perl_vendorlib}/Cache +%dir %{perl_vendorlib}/Cache/Memcached +%dir %{perl_vendorarch}/auto/Cache/ +%dir %{perl_vendorarch}/auto/Cache/Memcached +%{perl_vendorlib}/Cache/Memcached* +# %{perl_vendorarch}/Cache/ +%{perl_vendorarch}/auto/Cache/Memcached/ +%if 0%{?suse_version} +/var/adm/perl-modules/%{name} +%endif + + +%changelog +* Wed Apr 8 2009 Holger Manthey <holger.manthey@bertelsmann.de> +- Initial build. + +