SPECS: perl-Sys-Mmap.spec (NEW) - initial

arekm arekm at pld-linux.org
Wed Feb 25 18:55:54 CET 2009


Author: arekm                        Date: Wed Feb 25 17:55:54 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial

---- Files affected:
SPECS:
   perl-Sys-Mmap.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Sys-Mmap.spec
diff -u /dev/null SPECS/perl-Sys-Mmap.spec:1.1
--- /dev/null	Wed Feb 25 18:55:54 2009
+++ SPECS/perl-Sys-Mmap.spec	Wed Feb 25 18:55:48 2009
@@ -0,0 +1,64 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define		pdir	Sys
+%define		pnam	Mmap
+Summary:	Sys::Mmap - Perl module that allows to use mmap to map in a file as a Perl variable
+Name:		perl-Sys-Mmap
+Version:	0.13
+Release:	1
+# sae as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Sys/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	e65a007157e3e26807db52299497109d
+URL:		http://search.cpan.org/dist/Sys-Mmap/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Mmap - uses mmap to map in a file as a Perl variable.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make} \
+	CC="%{__cc}" \
+	OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Change* README
+%{perl_vendorarch}/Sys/*.pm
+%dir %{perl_vendorarch}/auto/Sys/Mmap
+%attr(755,root,root) %{perl_vendorarch}/auto/Sys/Mmap/*.so
+%{perl_vendorarch}/auto/Sys/Mmap/*.bs
+%{_mandir}/man3/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/02/25 17:55:48  arekm
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list