new macros: %rpm_check_field(p:), %php_version(n:), %php_release(n:)
This commit is contained in:
parent
92abd3c20c
commit
9508e9b3af
@ -404,6 +404,12 @@
|
||||
@alt@%get_SVR() %(rpm -q --qf '%%|SERIAL?{%%{SERIAL}:}|%%{VERSION}-%%{RELEASE}' %1 2>/dev/null)
|
||||
@alt@%get_NSVR() %(rpm -q --qf '%%{NAME}-%%|SERIAL?{%%{SERIAL}:}|%%{VERSION}-%%{RELEASE}' %1 2>/dev/null)
|
||||
@alt@%get_dep() %(rpm -q --qf '%%{NAME} >= %%|SERIAL?{%%{SERIAL}:}|%%{VERSION}-%%{RELEASE}' %1 2>/dev/null)
|
||||
@alt@%rpm_check_field(p:) %(foo=`rpm -q --qf '%%{%1}' %{-p:%{-p*}} 2>/dev/null`; [ "`expr '$foo' '>' '%2'`" -eq 1 ] && echo -n "$foo" || echo -n "%2")
|
||||
@alt@
|
||||
@alt@# Define php_version and php_release to version and release no less than specified one via -n option
|
||||
@alt@%php_version(n:) %rpm_check_field -p php VERSION %{-n:%{-n*}}
|
||||
@alt@%php_release(n:) %rpm_check_field -p php RELEASE %{-n:%{-n*}}
|
||||
@alt@
|
||||
@alt@## compiler optflags defaults
|
||||
@alt@
|
||||
@alt@# core flags
|
||||
|
Loading…
Reference in New Issue
Block a user