UNPKG

specit

Version:

Automatically generates an RPM Spec file for your Node.js project

22 lines (19 loc) 572 B
var path = require('path'); module.exports = { serviceFile: function (root, pkg) { return path.resolve(root, pkg.name + '.service'); }, specsDirectory: function (root) { return path.resolve(root, 'SPECS'); }, specFile: function (root, pkg) { return path.resolve(root, pkg.name + '.spec'); }, sourcesDirectory: function (root) { return path.resolve(root, 'SOURCES'); }, sourcesArchive: function (root, pkg) { var sourcesDirectory = this.sourcesDirectory(root); return path.resolve(sourcesDirectory, pkg.name + '.tar.gz'); } };