tasks/rpm.js
function writeSpecFile(grunt, options, filesToPack) {
	return function(callback) {
		try {
			var specPath = path.join(options.destination, specFolder);
			options.files = filesToPack;
			var pkg = grunt.file.readJSON('package.json');
			grunt.util._.defaults(options, pkg);
			
			options.specFilepath = path.join(specPath, options.name + '.spec');
			spec(options, callback);
		} catch(e) {
			callback(e);
		}
	};
}
function writeSpecFile(grunt, options, filesToPack) {
	return function(callback) {
		try {
			var specPath = path.join(options.destination, specFolder);
			options.files = filesToPack;
			var pkg = grunt.file.readJSON('package.json');
			grunt.util._.defaults(options, pkg);
			
			options.specFilepath = path.join(specPath, options.name + '.spec');
			spec(options, callback);
		} catch(e) {
			callback(e);
		}
	};
}
function writeSpecFile ( grunt , options , filesToPack ) { return function ( callback ) { try { var specPath = path . join ( options . destination , specFolder ) ; options . files = filesToPack ; var pkg = grunt . file . readJSON ( 'package.json' ) ; grunt . util . _ . defaults ( options , pkg ) ; options . specFilepath = path . join ( specPath , options . name + '.spec' ) ; spec ( options , callback ) ; } catch ( e ) { callback ( e ) ; } } ; }
Write the spec file that rpmbuild will read for the rpm details
Write the spec file that rpmbuild will read for the rpm details