7 # 2 - no spec file name in cmdl parameters
8 # 3 - spec file not stored in repo
9 # 4 - some source, patch or icon files not stored in repo
10 # 5 - package build failed
13 # - builder -u fetches current version first
14 # - tries to get new version from distfiles without new md5
15 # - after fetching new version doesn't update md5
16 # - doesn't get sources for specs with %include /usr/lib/rpm/macros.python
17 # when there's no rpm-pythonprov (rpm's fault, but it's ugly anyway)
20 Build package utility from PLD CVS repository
21 V 0.11 (C) 1999-2003 Free Penguins".
22 PATH="/bin:/usr/bin:/usr/sbin:/sbin:/usr/X11R6/bin"
38 ALWAYS_CVSUP=${ALWAYS_CVSUP:-"yes"}
39 if [ -s CVS/Root ]; then
40 CVSROOT=$(cat CVS/Root)
42 CVSROOT=${CVSROOT:-""}
44 # Example: LOGFILE='../log.$PACKAGE_NAME'
45 # Yes, you can use variable name! Note _single_ quotes!
65 WGET_RETRIES=${MAX_WGET_RETRIES:-0}
66 CVS_RETRIES=${MAX_CVS_RETRIES:-1000}
71 CVS_SERVER="cvs.pld-linux.org"
72 DISTFILES_SERVER="://distfiles.pld-linux.org"
76 FAIL_IF_NO_SOURCES="yes"
78 GETURI="wget --passive-ftp -c -nd -t$WGET_RETRIES --inet"
79 GETURI2="wget -c -nd -t$WGET_RETRIES --inet"
82 if (rpm --version 2>&1 | grep -q '4.0.[0-2]'); then
90 if [ -f ~/etc/builderrc ]; then
92 elif [ -f ~/.builderrc ]; then
96 #---------------------------------------------
101 if [ -n "$DEBUG" ]; then set -xv; fi
103 Usage: builder [-D|--debug] [-V|--version] [-a|--as_anon] [-b|-ba|--build]
105 [-bb|--build-binary] [-bs|--build-source] [-u|--try-upgrade]
106 [{-B|--branch} <branch>] [{-d|--cvsroot} <cvsroot>] [-g|--get]
107 [-h|--help] [--http] [{-l,--logtofile} <logfile>] [-m|--mr-proper]
108 [-q|--quiet] [--date <yyyy-mm-dd> [-r <cvstag>] [{-T--tag <cvstag>]
109 [-Tvs|--tag-version-stable] [-Tvn|--tag-version-nest]
110 [-Ts|--tag-stable] [-Tn|--tag-nest] [-Tv|--tag-version]
111 [-nu|--no-urls] [-v|--verbose] [--opts <rpm opts>]
112 [--with/--without <feature>] [--define <macro> <value>] <package>[.spec]
115 - update md5 comments in spec, implies -nd
116 -a5, --add-md5 - add md5 comments to URL sources, implies -nc -nd
117 -D, --debug - enable script debugging mode,
118 -V, --version - output builder version
119 -a, --as_anon - get files via pserver as cvs@$CVS_SERVER,
121 --build - get all files from CVS repo or HTTP/FTP and build
122 package from <package>.spec,
124 - get all files from CVS repo or HTTP/FTP and build
125 binary only package from <package>.spec,
127 --build-source - get all files from CVS repo or HTTP/FTP and only
128 pack them into src.rpm,
129 -B, --branch - add branch
130 -c, --clean - clean all temporarily created files (in BUILD,
131 SOURCES, SPECS and \$RPM_BUILD_ROOT),
132 -d <cvsroot>, --cvsroot <cvsroot>
134 --define <macro> <value>
135 - define a macro <macro> with value <value>,
136 -g, --get - get <package>.spec and all related files from
137 CVS repo or HTTP/FTP,
138 -h, --help - this message,
139 --http - use http instead of ftp,
140 -l <logfile>, --logtofile <logfile>
142 -m, --mr-proper - only remove all files related to spec file and
144 -nc, --no-cvs - don't download sources from CVS, if source URL is
147 - don't check specs in CVS
149 - don't download from distfiles
150 -nm, --no-mirrors - don't download from mirror, if source URL is given,
151 -nu, --no-urls - don't try to download from FTP/HTTP location,
152 -ns, --no-srcs - don't download Sources
154 - don't download Source0
156 - additional options for rpm
157 -q, --quiet - be quiet,
159 - build package using resources from specified CVS
161 -r <cvstag>, --cvstag <cvstag>
162 - build package using resources from specified CVS
164 -T <cvstag> , --tag <cvstag>
165 - add cvs tag <cvstag> for files,
166 -Tvs, --tag-version-stable
167 - add cvs tags STABLE and NAME-VERSION-RELESE for files,
168 -Tvn, --tag-version-nest
169 - add cvs tags NEST and NAME-VERSION-RELESE for files,
171 - add cvs tag STABLE for files,
173 - add cvs tag NEST for files,
175 - add cvs tag NAME-VERSION-RELESE for files,
176 -v, --verbose - be verbose,
178 - check version, and try to upgrade package
179 -un, --try-upgrade-with-float-version
180 - as above, but allow float version
182 - refetch sources, don't use distfiles, and update md5
184 --with/--without <feature>
185 - conditional build package depending on
186 %_with_<feature>/%_without_<feature> macro
194 rpm -bp --define 'prep %dump' $BCOND $SPECFILE 2>&1
197 rpmbuild --define 'prep %dump' $BCOND $SPECFILE 2>&1
204 if [ -n "$DEBUG" ]; then
210 if [ "$NOSRCS" != "yes" ]; then
211 SOURCES="`rpm_dump | awk '/SOURCEURL[0-9]+/ {print $3}'`"
213 if (rpm_dump | grep -qEi ":.*nosource.*1"); then
214 FAIL_IF_NO_SOURCES="no"
217 PATCHES="`rpm_dump | awk '/PATCHURL[0-9]+/ {print $3}'`"
218 ICONS="`awk '/^Icon:/ {print $2}' ${SPECFILE}`"
219 PACKAGE_NAME="`$RPM -q --qf '%{NAME}\n' --specfile ${SPECFILE} 2> /dev/null | head -1`"
220 PACKAGE_VERSION="`$RPM -q --qf '%{VERSION}\n' --specfile ${SPECFILE} 2> /dev/null| head -1`"
221 PACKAGE_RELEASE="`$RPM -q --qf '%{RELEASE}\n' --specfile ${SPECFILE} 2> /dev/null | head -1`"
223 if [ -n "$BE_VERBOSE" ]; then
224 echo "- Sources : `nourl $SOURCES`"
225 if [ -n "$PATCHES" ]; then
226 echo "- Patches : `nourl $PATCHES`"
228 echo "- Patches : *no patches needed*"
230 if [ -n "$ICONS" ]; then
231 echo "- Icon : `nourl $ICONS`"
233 echo "- Icon : *no package icon*"
235 echo "- Name : $PACKAGE_NAME"
236 echo "- Version : $PACKAGE_VERSION"
237 echo "- Release : $PACKAGE_RELEASE"
243 if [ -n "$DEBUG" ]; then
251 "err_no_spec_in_cmdl" )
252 echo "ERROR: spec file name not specified.";
254 "err_no_spec_in_repo" )
255 echo "Error: spec file not stored in CVS repo.";
257 "err_no_source_in_repo" )
258 echo "Error: some source, patch or icon files not stored in CVS repo. ($2)";
261 echo "Error: package build failed. (${2:-no more info})";
268 if [ -n "$DEBUG" ]; then
273 SOURCE_DIR="`$RPM --eval '%{_sourcedir}'`"
274 SPECS_DIR="`$RPM --eval '%{_specdir}'`"
281 if [ -n "$DEBUG" ]; then
286 if [ "$NOCVSSPEC" != "yes" ]; then
291 if [ -n "$CVSROOT" ]; then
292 OPTIONS="-d $CVSROOT $OPTIONS"
294 if [ ! -s CVS/Root -a "$NOCVSSPEC" != "yes" ]; then
295 echo "warning: No cvs access defined - using local .spec file"
300 if [ -z "$CVSDATE" -a -z "$CVSTAG" ]; then
301 OPTIONS="$OPTIONS -A"
303 if [ -n "$CVSDATE" ]; then
304 OPTIONS="$OPTIONS -D $CVSDATE"
306 if [ -n "$CVSTAG" ]; then
307 OPTIONS="$OPTIONS -r $CVSTAG"
313 while [ "$result" != "0" -a "$retries_counter" -le "$CVS_RETRIES" ]; do
314 retries_counter=$(( $retries_counter + 1 ))
315 output=$(LC_ALL=C cvs $OPTIONS $SPECFILE 2>&1)
317 [ -n "$output" ] && echo "$output"
318 if [ "$result" -ne "0" ]; then
319 if (echo "$output" | grep -qE "(Cannot connect to|connect to .* failed|Connection reset by peer|Connection timed out)") && [ "$retries_counter" -le "$CVS_RETRIES" ]; then
320 echo "Trying again [$SPECFILE]... ($retries_counter)"
324 Exit_error err_no_spec_in_repo;
328 if [ ! -f "$SPECFILE" ]; then
329 Exit_error err_no_spec_in_repo;
332 if [ "$CHMOD" = "yes" -a -n "$SPECFILE" ]; then
333 chmod $CHMOD_MODE $SPECFILE
336 grep -E -m 1 "^#.*Revision:.*Date" $SPECFILE
343 if [ ! -f "mirrors" -a "$NOCVSSPEC" != "yes" ] ; then
344 cvs update mirrors >&2
348 while read origin mirror name rest; do
349 ol=`echo -n "$origin"|wc -c`
350 prefix="`echo -n "$url" | head -c $ol`"
351 if [ "$prefix" = "$origin" ] ; then
352 suffix="`echo "$url"|cut -b $ol-`"
353 echo -n "$mirror$suffix"
364 grep "SOURCEURL[0-9]*[ ]*$1""[ ]*$" | \
365 sed -e 's/.*SOURCEURL\([0-9][0-9]*\).*/\1/' | \
372 [ -z "$no" ] && return
374 spec_rev=$(grep $SPECFILE CVS/Entries | sed -e s:/$SPECFILE/:: -e s:/.*::)
375 if [ -z "$spec_rev" ]; then
376 spec_rev="$(head -1 $SPECFILE | sed -e 's/.*\$Revision: \([0-9.]*\).*/\1/')"
378 spec="$SPECFILE[0-9.,]*,$(echo $spec_rev | sed 's/\./\\./g')"
379 md5=$(grep -s -v '^#' additional-md5sums | \
380 grep -E "[ ]$(basename "$1")[ ]+${spec}([ ,]|\$)" | \
381 sed -e 's/^\([0-9a-f]\{32\}\).*/\1/' | \
382 grep -E '^[0-9a-f]{32}$')
383 if [ X"$md5" = X"" ] ; then
384 grep -i "#[ ]*Source$no-md5[ ]*:" $SPECFILE | sed -e 's/.*://' | xargs
386 if [ $(echo "$md5" | wc -l) != 1 ] ; then
387 echo "$SPECFILE: more then one entry in additional-md5sums for $1" 1>&2
389 echo "$md5" | tail -1
395 echo "$PROTOCOL$DISTFILES_SERVER/by-md5/$(src_md5 "$1" | sed -e 's|^\(.\)\(.\)|\1/\2/&|')/$(basename "$1")"
402 [ "$md5" = "$(md5sum $(nourl "$1") 2> /dev/null | sed -e 's/ .*//')" ]
409 if [ -n "$DEBUG" ]; then
414 if [ -n "$1$2$3$4$5$6$7$8$9${10}" ]; then
418 if [ -n "$CVSROOT" ]; then
419 OPTIONS="-d $CVSROOT $OPTIONS"
421 if [ ! -s CVS/Root -a "$NOCVS" != "yes" ]; then
422 echo "warning: No cvs access defined for SOURCES"
426 if [ -z "$CVSDATE" -a -z "$CVSTAG" ]; then
427 OPTIONS="$OPTIONS -A"
429 if [ -n "$CVSDATE" ]; then
430 OPTIONS="$OPTIONS -D $CVSDATE"
432 if [ -n "$CVSTAG" ]; then
433 OPTIONS="$OPTIONS -r $CVSTAG"
436 for i in $GET_FILES; do
437 if [ ! -f `nourl $i` ] || [ $ALWAYS_CVSUP = "yes" ]; then
438 if echo $i | grep -vE '(http|ftp|https|cvs|svn)://' | grep -qE '\.(gz|bz2)$']; then
439 echo "Warning: no URL given for $i"
442 if [ -n "$(src_md5 "$i")" ] && [ -z "$NODIST" ]; then
443 if good_md5 "$i"; then
444 echo "$(nourl "$i") having proper md5sum already exists"
448 url=$(distfiles_url "$i")
449 if [ `echo $url | grep -E '^(\.|/)'` ] ; then
450 ${GETLOCAL} $url $target
452 if [ -z "$NOMIRRORS" ] ; then
453 url="`find_mirror "$url"`"
455 ${GETURI} -O "$target" "$url" || \
456 if [ `echo $url | grep -E 'ftp://'` ]; then
457 ${GETURI2} -O "$target" "$url"
459 test -s "$target" || rm -f "$target"
461 elif [ -z "$(src_md5 "$i")" ] && \
462 ( [ -z "$NOCVS" ] || echo $i | grep -qvE '(ftp|http|https)://' ); then
465 while [ "$result" != "0" -a "$retries_counter" -le "$CVS_RETRIES" ]; do
466 retries_counter=$(( $retries_counter + 1 ))
467 output=$(LC_ALL=C cvs $OPTIONS `nourl $i` 2>&1)
469 [ -n "$output" ] && echo "$output"
470 if (echo "$output" | grep -qE "(Cannot connect to|connect to .* failed|Connection reset by peer|Connection timed out)") && [ "$result" -ne "0" -a "$retries_counter" -le "$CVS_RETRIES" ]; then
471 echo "Trying again [`nourl $i`]... ($retries_counter)"
480 if [ -z "$NOURLS" ] && [ ! -f "`nourl $i`" -o -n "$UPDATE" ] && [ `echo $i | grep -E 'ftp://|http://|https://'` ]; then
481 if [ -z "$NOMIRRORS" ] ; then
482 im="`find_mirror "$i"`"
487 if [ `echo $im | grep -E 'ftp://'` ]; then ${GETURI2} "$im" ; fi
493 if [ ! -f "`nourl $i`" -a "$FAIL_IF_NO_SOURCES" != "no" ]; then
494 Exit_error err_no_source_in_repo $i;
495 elif [ -n "$UPDATE5" ] && \
496 ( ( [ -n "$ADD5" ] && echo $i | grep -q -E 'ftp://|http://|https://' && \
497 [ -z "$(grep -E -i '^NoSource[ ]*:[ ]*'$i'([ ]|$)' $SPECS_DIR/$SPECFILE)" ] ) || \
498 grep -q -i -E '^#[ ]*source'$(src_no $i)'-md5[ ]*:' $SPECS_DIR/$SPECFILE )
500 echo "Updating source-$srcno md5."
501 md5=$(md5sum `nourl $i` | cut -f1 -d' ')
503 print unless /^\s*#\s*Source'$srcno'-md5\s*:/i;
504 print "# Source'$srcno'-md5:\t'$md5'\n"
505 if /^Source'$srcno'\s*:\s+/;
510 if good_md5 "$i"; then
513 echo "MD5 sum mismatch. Use -U to refetch sources,"
514 echo "or -5 to update md5 sums, if you're sure files are correct."
515 Exit_error err_no_source_in_repo $i
519 if [ "$CHMOD" = "yes" ]; then
520 CHMOD_FILES="`nourl $GET_FILES`"
521 if [ -n "$CHMOD_FILES" ]; then
522 chmod $CHMOD_MODE $CHMOD_FILES
533 if [ -n "$DEBUG" ]; then
538 if [ -n "$1$2$3$4$5$6$7$8$9${10}" ]; then
539 echo "Version: $PACKAGE_VERSION"
540 echo "Release: $PACKAGE_RELEASE"
541 TAGVER=$PACKAGE_NAME-`echo $PACKAGE_VERSION | sed -e "s/\./\_/g" -e "s/@/#/g"`-`echo $PACKAGE_RELEASE | sed -e "s/\./\_/g" -e "s/@/#/g"`
542 if [ "$TAG_VERSION" = "yes" ]; then
543 echo "CVS tag: $TAGVER"
545 if [ -n "$TAG" ]; then
550 if [ -n "$CVSROOT" ]; then
551 OPTIONS="-d $CVSROOT $OPTIONS"
555 for i in $TAG_FILES; do
556 if [ -f `nourl $i` ]; then
557 if [ "$TAG_VERSION" = "yes" ]; then
558 cvs $OPTIONS $TAGVER `nourl $i`
560 if [ -n "$TAG" ]; then
561 cvs $OPTIONS $TAG `nourl $i`
564 Exit_error err_no_source_in_repo $i
569 if [ "$TAG_VERSION" = "yes" ]; then
570 cvs $OPTIONS $TAGVER $SPECFILE
572 if [ -n "$TAG" ]; then
573 cvs $OPTIONS $TAG $SPECFILE
583 echo "CVS branch tag: $TAG"
588 if [ -n "$DEBUG" ]; then
593 if [ -n "$1$2$3$4$5$6$7$8$9${10}" ]; then
596 if [ -n "$CVSROOT" ]; then
597 OPTIONS="-d $CVSROOT $OPTIONS"
600 for i in $TAG_FILES; do
601 if [ -f `nourl $i` ]; then
602 cvs $OPTIONS $TAG `nourl $i`
604 Exit_error err_no_source_in_repo $i
608 cvs $OPTIONS $TAG $SPECFILE
618 if [ -n "$DEBUG" ]; then
625 if [ -n "$TRY_UPGRADE" ]; then
627 if [ -n "FLOAT_VERSION" ]; then
628 TNOTIFY=`./pldnotify.awk $SPECFILE -n`
630 TNOTIFY=`./pldnotify.awk $SPECFILE`
633 TNEWVER=`echo $TNOTIFY | awk '{ match($4,/\[NEW\]/); print $5 }'`
635 if [ -n "$TNEWVER" ]; then
637 TOLDVER=`echo $TNOTIFY | awk '{ print $3; }'`
639 echo "New version found, updating spec file to version " $TNEWVER
641 cp -f $SPECFILE $SPECFILE.bak
645 eval "perl -pi -e 's/Version:\t"$TOLDVER"/Version:\t"$TNEWVER"/gs' $SPECFILE"
646 eval "perl -pi -e 's/Release:\t[1-9]{0,4}/Release:\t1/' $SPECFILE"
650 get_files "$SOURCES $PATCHES";
652 unset TOLDVER TNEWVER TNOTIFY
662 BUILD_SWITCH="-ba" ;;
664 BUILD_SWITCH="-bb" ;;
666 BUILD_SWITCH="-bs --nodeps" ;;
668 if [ -n "$LOGFILE" ]; then
669 if [ -n "$CVSTAG" ]; then
670 LTAG="r_`echo $CVSTAG|sed -e 's/\./_/g'`_"
674 LOG=`eval echo $LOGFILE`
675 if [ -n "$LASTLOG_FILE" ]; then
676 echo "LASTLOG=$LOG" > $LASTLOG_FILE
678 RES_FILE=~/tmp/$RPMBUILD-exit-status.$RANDOM
679 (nice -n ${DEF_NICE_LEVEL} time $RPMBUILD $BUILD_SWITCH -v $QUIET $CLEAN $RPMOPTS $BCOND $SPECFILE; echo $? > $RES_FILE) 2>&1 |tee $LOG
680 RETVAL=`cat $RES_FILE`
682 if [ -n "$LOGDIROK" ] && [ -n "$LOGDIRFAIL" ]; then
683 if [ "$RETVAL" -eq "0" ]; then
690 eval nice -n ${DEF_NICE_LEVEL} $RPMBUILD $BUILD_SWITCH -v $QUIET $CLEAN $RPMOPTS $BCOND $SPECFILE
694 if [ "$RETVAL" -ne "0" ]; then
696 if [ -n "$TRY_UPGRADE" ]; then
697 echo "\n!!! Package with new version cannot be build automagically\n"
698 mv -f $SPECFILE.bak $SPECFILE
701 Exit_error err_build_fail;
709 echo "$@" | sed 's#\<\(ftp\|http\|https\|cvs\|svn\)://[^ ]*/##g'
711 #---------------------------------------------
714 if [ "$#" = 0 ]; then
719 while test $# -gt 0 ; do
734 DEBUG="yes"; shift ;;
736 COMMAND="version"; shift ;;
738 CVSROOT=":pserver:cvs@$CVS_SERVER:/cvsroot"; shift ;;
740 COMMAND="build"; shift ;;
741 -bb | --build-binary )
742 COMMAND="build-binary"; shift ;;
743 -bs | --build-source )
744 COMMAND="build-source"; shift ;;
746 COMMAND="branch"; shift; TAG="${1}"; shift;;
748 CLEAN="--clean --rmspec --rmsource"; shift ;;
750 shift; CVSROOT="${1}"; shift ;;
752 COMMAND="get"; shift ;;
754 COMMAND="usage"; shift ;;
756 PROTOCOL="http"; shift ;;
758 shift; LOGFILE="${1}"; shift ;;
760 shift; DEF_NICE_LEVEL=${1}; shift ;;
762 COMMAND="mr-proper"; shift ;;
764 NOCVS="yes"; shift ;;
765 -ncs | --no-cvs-specs )
766 NOCVSSPEC="yes"; shift ;;
767 -nd | --no-distfiles )
768 NODIST="yes"; shift ;;
770 NOMIRRORS="yes"; shift ;;
772 NOURLS="yes"; shift ;;
774 NOSRCS="yes"; shift ;;
775 -ns0 | --no-source0 )
776 NOSOURCE0="yes"; shift ;;
778 shift; RPMOPTS="${1}"; shift ;;
780 BCOND="$BCOND $1 $2" ; shift 2 ;;
782 QUIET="--quiet"; shift ;;
784 CVSDATE="${2}"; shift 2 ;;
786 shift; CVSTAG="${1}"; shift ;;
787 -Tvs | --tag-version-stable )
792 -Tvn | --tag-version-nest )
807 -Tv | --tag-version )
825 TRY_UPGRADE="1"; shift ;;
826 -un | --try-upgrade-with-float-version )
827 TRY_UPGRADE="1"; FLOAT_VERSION="1"; shift ;;
829 BE_VERBOSE="1"; shift ;;
835 RPMOPTS="${RPMOPTS} --define \"${MACRO} ${VALUE}\""
838 SPECFILE="`basename ${1} .spec`.spec"; shift ;;
842 if [ -n "$DEBUG" ]; then
848 "build" | "build-binary" | "build-source" )
850 if [ -n "$SPECFILE" ]; then
854 if [ -n "$FAIL_IF_CHANGED_BUT_NOT_BUMPED" ]; then
855 TAGVER=$PACKAGE_NAME-`echo $PACKAGE_VERSION | sed -e "s/\./\_/g" -e "s/@/#/g"`-`echo $PACKAGE_RELEASE | sed -e "s/\./\_/g" -e "s/@/#/g"`
856 CURTAGREL=$(cvs status $SPECFILE | grep "Working revision:" | awk '{ print $3 }')
857 TAGREL=$(cvs status -v $SPECFILE | grep -E "^[[:space:]]*${TAGVER}[[[:space:]]" | sed -e 's#.*(revision: ##g' -e 's#).*##g')
859 if [ -n "$TAGREL" -a "$TAGREL" != "$CURTAGREL" ]; then
860 Exit_error err_build_fail "not bumped ver-rel - was already used in rev $TAGREL"
864 if [ -n "$ICONS" ]; then
868 if [ -n "$NOSOURCE0" ] ; then
869 SOURCES=`echo $SOURCES | xargs | sed -e 's/[^ ]*//'`
871 get_files "$SOURCES $PATCHES";
874 Exit_error err_no_spec_in_cmdl;
879 if [ -n "$SPECFILE" ]; then
882 if [ -n "$ICONS" ]; then
886 get_files $SOURCES $PATCHES;
887 branch_files $TAG "$SOURCES $PATCHES $ICONS";
889 Exit_error err_no_spec_in_cmdl;
894 if [ -n "$SPECFILE" ]; then
897 if [ -n "$ICONS" ]; then
901 if [ -n "$NOSOURCE0" ] ; then
902 SOURCES=`echo $SOURCES | xargs | sed -e 's/[^ ]*//'`
904 get_files $SOURCES $PATCHES
906 Exit_error err_no_spec_in_cmdl;
911 if [ -n "$SPECFILE" ]; then
914 if [ -n "$ICONS" ]; then
918 get_files $SOURCES $PATCHES;
919 tag_files "$SOURCES $PATCHES $ICONS";
921 Exit_error err_no_spec_in_cmdl;
925 $RPM --clean --rmsource --rmspec --force --nodeps $SPECFILE