]>
Commit | Line | Data |
---|---|---|
a760fe29 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
d7190a4d ER |
4 | |
5 | %define pdir Cache | |
6 | %define pnam FastMmap | |
a760fe29 | 7 | %include /usr/lib/rpm/macros.perl |
a760fe29 | 8 | Summary: Cache::FastMmap - Uses an mmap'ed file to act as a shared memory interprocess cache |
1199c055 | 9 | Summary(pl.UTF-8): Cache::FastMmap - użycie mmapowanego pliku jako współdzielonej pamięci podręcznej |
a760fe29 | 10 | Name: perl-Cache-FastMmap |
dbdf809b | 11 | Version: 1.40 |
f92b86ce | 12 | Release: 2 |
a760fe29 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
dbdf809b | 17 | # Source0-md5: e0929ba556c629a43f5d65a2b6cb9a2f |
9252b0d4 | 18 | URL: http://search.cpan.org/dist/Cache-FastMmap/ |
a760fe29 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
9252b0d4 | 24 | Uses an mmap'ed file to act as a shared memory interprocess cache. |
a760fe29 | 25 | |
70c82a90 JR |
26 | %description -l pl.UTF-8 |
27 | Ten moduł pozwala na używanie mmapowanego pliku jako pamięci | |
28 | podręcznej współdzielonej między procesami. | |
a760fe29 | 29 | |
30 | %prep | |
31 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
32 | ||
33 | %build | |
34 | %{__perl} Makefile.PL \ | |
35 | INSTALLDIRS=vendor | |
36 | %{__make} \ | |
064fbd9f | 37 | CC="%{__cc}" \ |
a760fe29 | 38 | OPTIMIZE="%{rpmcflags}" |
39 | ||
40 | %{?with_tests:%{__make} test} | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %{__make} install \ | |
46 | DESTDIR=$RPM_BUILD_ROOT | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc Changes README | |
54 | %{perl_vendorarch}/Cache/*.pm | |
a760fe29 | 55 | %dir %{perl_vendorarch}/auto/Cache/FastMmap |
dbdf809b | 56 | %{perl_vendorarch}/auto/Cache/FastMmap/FastMmap.bs |
57 | %attr(755,root,root) %{perl_vendorarch}/auto/Cache/FastMmap/FastMmap.so | |
a760fe29 | 58 | %{_mandir}/man3/* |