#
# Create rpm for 64 and 32 bit linux.
#
# creating /usr/src/packages/RPMS/x86_64/yudit-3.0.0-1.x86_64.rpm
cp yudit-3.0.0.tar.gz /usr/src/packages/SOURCES/yudit-3.0.0.tar.gz
rpmbuild -ba yudit-3.0.0/yudit-3.0.0.spec
# using /usr/src/packages/SRPMS/yudit-3.0.0-1.src.rpm
cp /usr/src/packages/SRPMS/yudit-3.0.0-1.src.rpm .
CC='gcc -m32' CXX='g++ -m32' linux32 rpmbuild --rebuild --target=i586 yudit-3.0.0-1.src.rpm
