Skip to content

Useful scripts to convert npm packages to rpm packages (source tar balls, and spec files)

License

Notifications You must be signed in to change notification settings

openSUSE-zh/npm2rpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm2rpm

Useful scripts to convert npm packages to rpm packages (source tar balls, and spec files)

Install

sudo zypper install nodejs rpmdevtools
git clone [email protected]:openSUSE-zh/npm2rpm.git
cd npm2rpm
sudo install npm2rpm /usr/local/bin
sudo install -m 644 spectemplate-nodejs.spec /etc/rpmdevtools/

How it works

Run

npm2rpm gulp-cli

will generate two files:

  1. npmjs-gulp-cli-2.2.0.tar.gz
  2. npmjs-gulp-cli.spec

Fill in information and link executable scripts into bin directory. Then your package is finished!

What about nodejs-packaging?

This package uses a different approach. It just bundle all dependencies in source tarball, instead of creating a lot of RPM packages. It doesn't create dependencies. So it is much easier to maintain and packages work the same way as npm installation.

About

Useful scripts to convert npm packages to rpm packages (source tar balls, and spec files)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages