]>
Commit | Line | Data |
---|---|---|
4c5d68db ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
03f21f46 | 4 | # |
4c5d68db ER |
5 | %include /usr/lib/rpm/macros.perl |
6 | %define pdir Cache | |
7 | %define pnam Memcached | |
8 | Summary: Cache::Memcached - shared data cache using memcached | |
726b18b7 | 9 | Summary(pl.UTF-8): Cache::Memcached - współdzielone cache dla danych przy użyciu memcached |
4c5d68db | 10 | Name: perl-Cache-Memcached |
3f013448 | 11 | Version: 1.18 |
3ef2aa8e | 12 | Release: 1 |
4c5d68db ER |
13 | License: GPL or Artistic |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
3f013448 | 16 | # Source0-md5: 120d1766c94153339072d9c73f36fcb3 |
4c5d68db ER |
17 | URL: http://www.danga.com/memcached/ |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | %if %{with tests} | |
20 | BuildRequires: perl-String-CRC32 | |
21 | %endif | |
22 | BuildRequires: rpm-perlprov >= 4.1-13 | |
27246593 | 23 | BuildArch: noarch |
4c5d68db ER |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | This is the Perl API for memcached, a distributed memory cache daemon. | |
28 | ||
29 | memcached is a high-performance, distributed memory object caching | |
30 | system, generic in nature, but intended for use in speeding up dynamic | |
31 | web applications by alleviating database load. | |
32 | ||
726b18b7 | 33 | %description -l pl.UTF-8 |
03f21f46 | 34 | To jest perlowe API dla memcached - rozproszonego demona cache'owania |
726b18b7 | 35 | pamięci. |
03f21f46 | 36 | |
726b18b7 JR |
37 | memcached to wysoko wydajny, rozproszony system cache'owania obiektów, |
38 | ogólny w swojej naturze, ale stworzony z myślą o używaniu do | |
03f21f46 | 39 | przyspieszenia dynamicznych aplikacji WWW poprzez zmniejszenie |
726b18b7 | 40 | obciążenia bazy danych. |
03f21f46 | 41 | |
4c5d68db ER |
42 | %prep |
43 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
44 | ||
45 | %build | |
46 | %{__perl} Makefile.PL \ | |
47 | INSTALLDIRS=vendor | |
303731b0 | 48 | %{__make} |
4c5d68db ER |
49 | |
50 | %{?with_tests:%{__make} test} | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | %{__make} install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
4c5d68db ER |
57 | %clean |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc Change* README | |
63 | %{perl_vendorlib}/Cache/Memcached.pm | |
64 | %{_mandir}/man3/* |