code: public String build( final File directory) throws NoSuchAlgorithmException, IOException {
  		final String rpm = format.getLead().getName() + "." + format.getLead().getArch().toString().toLowerCase() + ".rpm";
  		final File file = new File( directory, rpm);
  		if ( file.exists()) file.delete();
  		RandomAccessFile raFile = new RandomAccessFile( file, "rw");
  		build(raFile.getChannel());
  		raFile.close();
  		return rpm;
  	}
docs: Generates an RPM with a standard name consisting of the RPM package name, version, release,
  and type in the given directory.
  
  @param directory the destination directory for the new RPM file.
  @return the name of the rpm
  @throws NoSuchAlgorithmException the algorithm isn't supported
  @throws IOException there was an IO error