[packages/adapter: 147/631] - sourceforge urls filter for easy copy paste from project pages - add %attr for .so files
glen
glen at pld-linux.org
Mon Sep 12 19:46:47 CEST 2016
commit 55356feb525ab74f073da3b041e1460c910a46be
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Mon Mar 14 20:20:00 2005 +0000
- sourceforge urls filter for easy copy paste from project pages
- add %attr for .so files
Changed files:
adapter.awk -> 1.142
adapter.awk | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index 27ecff8..a8ab4c0 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -456,8 +456,10 @@ preamble == 1 {
$2 = fixedsub(filename, url[n], $2)
# sourceforge urls
- sub("^http://.*\.dl\.sourceforge\.net/", "http://dl.sourceforge.net/", $2)
+ sub("[?]use_mirror=.*$", "", $2);
sub("^http://prdownloads\.sourceforge\.net/", "http://dl.sourceforge.net/", $2)
+
+ sub("^http://.*\.dl\.sourceforge\.net/", "http://dl.sourceforge.net/", $2)
sub("^http://dl\.sourceforge\.net/sourceforge/", "http://dl.sourceforge.net/", $2)
}
@@ -701,6 +703,11 @@ function use_files_macros( i, n, t, a)
}
}
+
+ if (/\.so$/ && !/^%attr.*/) {
+ $0 = "%attr(755,root,root) " $0
+ }
+
# sort %verify attrs
if (match($0, /%verify\(not (.*)\)/)) {
t = substr($0, RSTART, RLENGTH)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
More information about the pld-cvs-commit
mailing list