[projects/template-specs] add Build.PL sample

glen glen at pld-linux.org
Wed Jan 15 17:48:43 CET 2014


commit 01f000c48a750e206c61fa11ec83cc5ebccae335
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Jan 15 18:47:46 2014 +0200

    add Build.PL sample

 perl.spec | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/perl.spec b/perl.spec
index 8afa261..b7804d4 100644
--- a/perl.spec
+++ b/perl.spec
@@ -61,6 +61,12 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %{__perl} Makefile.PL \
 	INSTALLDIRS=vendor
 
+# Build.PL based packages
+%{__perl} Build.PL \
+	destdir=$RPM_BUILD_ROOT \
+	installdirs=vendor
+./Build
+
 %{__make}
 # if module isn't noarch, use:
 # %{__make} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/4db70b3117b685e394776624428725a78bcd2bdc



More information about the pld-cvs-commit mailing list