#!/bin/sh -ex version=@VERSION@ temp_dir=/var/tmp srcdir=@srcdir@ rm -rf BUILD SPECS RPMS SOURCES SRPMS mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS (cd ..; make dist) (cd SOURCES; ln -s ../../nuq-${version}.tar.gz .) cat > rpmmacros <