3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Sys::Mmap - Perl module that allows to use mmap to map in a file as a Perl variable
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Sys/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: faae869e876fa86f92e6de3f13af3aef
17 URL: http://search.cpan.org/dist/Sys-Mmap/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Mmap - uses mmap to map in a file as a Perl variable.
26 %setup -q -n %{pdir}-%{pnam}-%{version}
29 %{__perl} Makefile.PL \
33 OPTIMIZE="%{rpmcflags}"
35 %{?with_tests:%{__make} test}
38 rm -rf $RPM_BUILD_ROOT
41 DESTDIR=$RPM_BUILD_ROOT
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
49 %{perl_vendorarch}/Sys/*.pm
50 %dir %{perl_vendorarch}/auto/Sys/Mmap
51 %attr(755,root,root) %{perl_vendorarch}/auto/Sys/Mmap/*.so