[packages/adapter: 297/631] - adapterize from some metadata file - add buildroot
glen
glen at pld-linux.org
Mon Sep 12 19:59:21 CEST 2016
commit 32908bc5c9fc96a13d1b524ce64bf4c0fdb4508b
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Sat Mar 4 10:30:14 2006 +0000
- adapterize from some metadata file
- add buildroot
Changed files:
adapter.awk -> 1.287
adapter.awk | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index fe97f7c..cd93d92 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -638,7 +638,7 @@ preamble == 1 {
}
# obsolete/unwanted tags
- if (field ~ /vendor:|packager:|distribution:|docdir:|prefix:|icon:/) {
+ if (field ~ /vendor:|packager:|distribution:|docdir:|prefix:|icon:|author:|author-email:|metadata-version:/) {
next
}
@@ -674,13 +674,23 @@ preamble == 1 {
release_seen = 1;
}
+ if (field ~ /buildroot:/) {
+ did_build_root = 1
+ }
+
if (field ~ /serial:/)
$1 = "Epoch:"
+ if (field ~ /home-page:/)
+ $1 = "URL:"
+
# proper caps
if (field ~ /^url:$/)
$1 = "URL:"
+ if (field ~ /^description:$/)
+ $1 = "\n%description\n"
+
# Use %{name} and %{version} in the filenames in "Source:"
if (field ~ /^source/ || field ~ /patch/) {
n = split($2, url, /\//)
@@ -835,6 +845,11 @@ preamble == 1 {
print "Release:\t" release
release_seen = 1
}
+
+ if (did_build_root == 0) {
+ print "BuildRoot:\t%{tmpdir}/%{name}-%{version}-root-%(id -u -n)"
+ did_build_root = 1
+ }
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
More information about the pld-cvs-commit
mailing list