Changes of Revision 2
[-] | Added | perl-Cache-Memcached.spec |
x 1
2 +# 3 +# - Cache::Memcached - 4 + 5 +%define pkgname Cache-Memcached 6 +%define filelist %{pkgname}-%{version}-filelist 7 +%define NVR %{pkgname}-%{version}-%{release} 8 +%define maketest 1 9 + 10 +name: perl-Cache-Memcached 11 +summary: Cache-Memcached - client library for memcached (memory cache daemon) 12 +version: 1.28 13 +release: 1 14 +vendor: Brad Fitzpatrick <brad@danga.com> 15 +packager: Arix International <cpan2rpm@arix.com> 16 +license: Artistic 17 +group: Applications/CPAN 18 +url: http://www.cpan.org 19 +buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n) 20 +buildarch: noarch 21 +prefix: %(echo %{_prefix}) 22 +#Source: http://search.cpan.org//CPAN/authors/id/B/BR/BRADFITZ/%{pkgname}-%{version}.tar.gz 23 +Source: %{pkgname}-%{version}.tar.gz 24 + 25 +Requires: perl = %{perl_version} 26 +Requires: perl-String-CRC32 27 +BuildRequires: perl-String-CRC32 28 + 29 +%description 30 +This is the Perl API for memcached, a distributed memory cache daemon. 31 +More information is available at: 32 + 33 + http://www.danga.com/memcached/ 34 + 35 + 36 +%prep 37 +%setup -q -n %{pkgname}-%{version} 38 + 39 + 40 +%build 41 +perl Makefile.PL 42 +make 43 + 44 + 45 +#%check 46 +#make test 47 + 48 + 49 +%install 50 +%if 0%{?suse_version} 51 +%perl_make_install 52 +%perl_process_packlist 53 +%else 54 +make DESTDIR=$RPM_BUILD_ROOT install_vendor 55 +find $RPM_BUILD_ROOT/usr -type f -name perllocal.pod |xargs -i rm -f {} 56 +find $RPM_BUILD_ROOT/usr -type d -depth -exec rmdir {} \; 2>/dev/null 57 +%endif 58 + 59 + 60 +%clean 61 +rm -rf $RPM_BUILD_ROOT 62 + 63 +# vendorarch='/usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi'; 64 +# vendorlib='/usr/lib/perl5/vendor_perl/5.8.8'; 65 + 66 +%files 67 +%defattr(-,root,root) 68 +%doc README TODO 69 +%doc %{_mandir}/man?/* 70 +%dir %{perl_vendorlib}/Cache 71 +%dir %{perl_vendorlib}/Cache/Memcached 72 +%dir %{perl_vendorarch}/auto/Cache/ 73 +%dir %{perl_vendorarch}/auto/Cache/Memcached 74 +%{perl_vendorlib}/Cache/Memcached* 75 +# %{perl_vendorarch}/Cache/ 76 +%{perl_vendorarch}/auto/Cache/Memcached/ 77 +%if 0%{?suse_version} 78 +/var/adm/perl-modules/%{name} 79 +%endif 80 + 81 + 82 +%changelog 83 +* Wed Apr 8 2009 Holger Manthey <holger.manthey@bertelsmann.de> 84 +- Initial build. 85 + 86 + 87 |