@seangarner/rpmbuild
RPM build package for node. This is a wrapper around rpmbuild command line. Forked from azweb76/node-rpmbuild
Last updated 2 years ago by seangarner .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @seangarner/rpmbuild 
SYNC missed versions from official npm registry.

rpmbuild

This is a node package that wraps the rpmbuild cli making integrating rpmbuild into node a little easier.

Forked from https://github.com/azweb76/node-rpmbuild which appears to have been abandoned.

Usage

1. Install rpmbuild globally:

npm install -g @seangarner/rpmbuild

2. Install rpmbuild in your project dependencies:

npm install --save @seangarner/rpmbuild

rpmbuild API

var rpm = require('@seangarner/rpmbuild');
rpm.build({
  name: 'myproject',
  summary: 'myproject RPM',
  description: 'this is an RPM for myproject',
  files: {
    '/var/local/myproject': [ 'lib/**', 'node_modules/**' ],
    '/usr/bin': [ 'bin/**' ]
  },
  installScript: ['chown -R myuser:myuser %{buildroot}', 'echo "test" > %{buildroot}/test.txt'],
  version: '0.0.1',
  release: 1,
  url: 'http://myproject/',
  license: 'GPL+',
  group: 'Development/Tools'
}, function(err, result){
  if (err){
    throw new Error('rpm.build failed' + err.toString());
  }
  console.log('done');
});

Current Tags

  • 0.0.23                                ...           latest (2 years ago)

1 Versions

  • 0.0.23                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |