0.0.23 • Published 4 years ago

rpmbuild v0.0.23

Weekly downloads
100
License
MIT
Repository
github
Last release
4 years ago

rpmbuild

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

Usage

1. Install rpmbuild globally:

npm install -g rpmbuild

2. Install rpmbuild in your project dependencies:

npm install --save rpmbuild

rpmbuild API

var rpm = require('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');
});
0.0.23

4 years ago

0.0.22

10 years ago

0.0.21

10 years ago

0.0.20

10 years ago

0.0.19

10 years ago

0.0.18

10 years ago

0.0.17

10 years ago

0.0.16

10 years ago

0.0.15

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago