14 |
{ |
{ |
15 |
for NVR in $(rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}\n" --specfile $SPEC) |
for NVR in $(rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE}\n" --specfile $SPEC) |
16 |
do |
do |
17 |
SRPM=/builds/rpms/SRPMS/$NVR.src.rpm |
SRPM=/builds/rpms/SRPMS/$NVR*.src.rpm |
18 |
if [ -f $SRPM ] |
if [ -f $SRPM ] |
19 |
then |
then |
20 |
echo "$SRPM already exists" |
echo "$SRPM already exists" |
29 |
kmod-*) |
kmod-*) |
30 |
build_package "--arch i586,i686" |
build_package "--arch i586,i686" |
31 |
;; |
;; |
32 |
|
*-kmod) |
33 |
|
build_package "--arch i686" |
34 |
|
;; |
35 |
*) |
*) |
36 |
build_package |
build_package |
37 |
;; |
;; |