summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/attachments/20110901/68dfb8ac/attachment-0001.ksh
blob: 93d86fe0632561bac684b198c8a1fc897dd83e81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
%define upstream_name		Sys-Mmap
%define upstream_version	0.16

Name:		perl-%{upstream_name}
Version:	%{upstream_version}
Release:	%mkrel 0

Summary:	Sys::Mmap
License:	GPL
Group:		Development/Perl
Url:		http://www.kernel.org/software/mon/
Source0:	http://www.cpan.org/modules/by-module/Sys/%{upstream_name}-%{upstream_version}.tar.gz 
BuildRequires:	perl-devel

%description
The Mmap module lets you use mmap to map in a file as a perl variable rather
than reading the file into dynamically allocated memory.  Multiple programs may
map the same file into memory, and immediately see changes by each other.
Memory may be allocated not attached to a file, and shared with subprocesses.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make

%check

%make test

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/*/*

%changelog
* Tue Aug 30 2011 Barry Jackson <zen25000@zen.co.uk> 0.16-0 
- New package for Mageia