5 # These are the packages we don't want to build yet:
6 nobuild=$(grep -v '^#' IGNORE)
8 # Keep going - don't stop when smock hits an error.
13 # If any extra SRPMS need to be considered, list them here. Otherwise
18 if ! echo "$nobuild" | grep -sq "^$dir\$"; then
19 if [ -d $dir -a -f $dir/*.spec ]; then
20 if ! rpmbuild -bs --define "_sourcedir $(pwd)/$dir" --define "_srcrpmdir $(pwd)/$dir" $dir/*.spec; then
21 echo "Failed to create a source RPM in directory $dir."
22 echo "If you want to ignore this directory, you should add"
23 echo "it to the IGNORE file in the top level directory."
26 srpms="$srpms $(pwd)/$dir/*.src.rpm"
31 # Rawhide build everything:
36 --distro=fedora-rawhide \
40 # In Fedora 10 don't try to build the OCaml RPMs since they
41 # require OCaml 3.11 which was not in Fedora 10:
46 *ocaml* | *virt-top*) ;;
47 *) srpms_no_ocaml="$srpms_no_ocaml $f" ;;