]> git.pld-linux.org Git - packages/perl-Sys-Mmap.git/blame - perl-Sys-Mmap.spec
- rebuild with perl 5.28.0
[packages/perl-Sys-Mmap.git] / perl-Sys-Mmap.spec
CommitLineData
4f7155a5
AM
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir Sys
7%define pnam Mmap
8Summary: Sys::Mmap - Perl module that allows to use mmap to map in a file as a Perl variable
9Name: perl-Sys-Mmap
822edecc 10Version: 0.16
56cc6144 11Release: 10
4f7155a5
AM
12# sae as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Sys/%{pdir}-%{pnam}-%{version}.tar.gz
822edecc 16# Source0-md5: faae869e876fa86f92e6de3f13af3aef
4f7155a5
AM
17URL: http://search.cpan.org/dist/Sys-Mmap/
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23Mmap - uses mmap to map in a file as a Perl variable.
24
25%prep
26%setup -q -n %{pdir}-%{pnam}-%{version}
27
28%build
29%{__perl} Makefile.PL \
30 INSTALLDIRS=vendor
31%{__make} \
32 CC="%{__cc}" \
33 OPTIMIZE="%{rpmcflags}"
34
35%{?with_tests:%{__make} test}
36
37%install
38rm -rf $RPM_BUILD_ROOT
39
40%{__make} install \
41 DESTDIR=$RPM_BUILD_ROOT
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%files
47%defattr(644,root,root,755)
48%doc Change* README
49%{perl_vendorarch}/Sys/*.pm
50%dir %{perl_vendorarch}/auto/Sys/Mmap
51%attr(755,root,root) %{perl_vendorarch}/auto/Sys/Mmap/*.so
4f7155a5 52%{_mandir}/man3/*
This page took 0.116816 seconds and 4 git commands to generate.