[packages/adapter: 166/631] - adapterize mandrake specs

glen glen at pld-linux.org
Mon Sep 12 19:48:22 CEST 2016


commit cab706de7b1282f6b74be0b6df44a5596eea3686
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Wed Jul 6 05:52:14 2005 +0000

    - adapterize mandrake specs
    
    Changed files:
        adapter.awk -> 1.160

 adapter.awk | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 56a83b5..b7c0ab0 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -227,6 +227,7 @@ defattr == 1 {
 ##########
 /^%clean/, (/^%[a-z]+$/ && !/^%clean/ && !/^%((end)?if|else)/) {
 	did_clean = 1
+	use_macros()
 }
 
 ############
@@ -693,6 +694,14 @@ function use_macros()
 	gsub("^make$", "%{__make}")
 	gsub("^make ", "%{__make} ")
 
+	# mandrake specs
+	gsub("^%make$", "%{__make}")
+	gsub("^%make ", "%{__make} ")
+	gsub("^%makeinstall_std", "%{__make} install \\\n\tDESTDIR=$RPM_BUILD_ROOT")
+	gsub("^%{__rm} -rf %{buildroot}", "rm -rf $RPM_BUILD_ROOT")
+	gsub("%optflags", "%{rpmcflags}")
+	gsub("%{compat_perl_vendorarch}", "%{perl_vendorarch}")
+
 	gsub("/usr/src/linux", "%{_kernelsrcdir}")
 	gsub("%{_prefix}/src/linux", "%{_kernelsrcdir}")
 }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list