Git Product home page Git Product logo

revamp's Introduction

Revamp

Build Status Coverage Status Code Climate Dependency Status Gem Version

This module can convert standard puppet module file in form of tarball to valid RPM or DEB package with all dependencies as references to other system packages. The dependencies can be packaged inside the final system package or just referenced as dependencies.

Installation

Install it yourself, globally as:

$ sudo gem install revamp

On Debian/Ubuntu systems to convert to RPM you will need also:

$ sudo apt-get install -y rpm

On RHEL systems you will need also:

$ sudo yum install -y rpm-build

For convenience thare is a Docker image with system tools and revamp preinstalled: coigovpl/revamp. The usage is simply:

$ docker run --rm coigovpl/revamp revamp --help

Usage

The basic usage is really simple:

$ revamp -f coi-jboss-1.0.0.tar.gz
INFO: Converting to RPM package puppetmodule_coi-jboss-1.0.0-0.noarch.rpm...
INFO: Files successfully converted: 1.

Or with extra options:

$ revamp --release 42 --outdir /tmp -f coi-jboss-1.0.0.tar.gz
INFO: Converting to RPM package /tmp/puppetmodule_coi-jboss-1.0.0-42.noarch.rpm...
INFO: Files successfully converted: 1.

More on available options in help:

$ revamp --help

Contributing

  1. Fork it ( https://github.com/coi-gov-pl/gem-revamp/fork )
  2. Create your feature branch (git checkout -b feature/my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature/my-new-feature)
  5. Create a new Pull Request

revamp's People

Contributors

cardil avatar

Watchers

Tomasz bla Fortuna avatar  avatar James Cloos avatar Mariusz Wyszomierski avatar Krzysztof O1 avatar  avatar Piotr Dudzic avatar Radosław Frąckiewicz avatar Cezary Zalewski avatar

revamp's Issues

Invalid provides in produced RPMs

Requires:

$ rpm -qiRp puppetmodule_spotify-puppetexplorer-1.0.1-42.noarch.rpm 
Name        : puppetmodule_spotify-puppetexplorer
Version     : 1.0.1
Release     : 42
Architecture: noarch
Install Date: (not installed)
Group       : Development
Size        : 22817
License     : Apache-2.0
Signature   : (none)
Source RPM  : puppetmodule_spotify-puppetexplorer-1.0.1-42.src.rpm
Build Date  : wto, 29 gru 2015, 10:12:52
Build Host  : 51523b4d2328
Relocations : (not relocatable)
Summary     : Manage the Puppet Explorer web application
Description :
Manage the Puppet Explorer web application
/bin/sh
puppetmodule(puppetlabs-apache) >= 1.0.0
puppetmodule(puppetlabs-apt) >= 1.0.0
puppetmodule(puppetlabs-stdlib) >= 1.0.0
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1

Provides:

$ rpm -qip --provides puppetmodule_puppetlabs-apt-1.8.0-42.noarch.rpm
Name        : puppetmodule_puppetlabs-apt
Version     : 1.8.0
Release     : 42
Architecture: noarch
Install Date: (not installed)
Group       : Development
Size        : 203667
License     : Apache-2.0
Signature   : (none)
Source RPM  : puppetmodule_puppetlabs-apt-1.8.0-42.src.rpm
Build Date  : wto, 29 gru 2015, 10:12:45
Build Host  : 51523b4d2328
Relocations : (not relocatable)
Summary     : Provides an interface for managing Apt source, key, and definitions with Puppet
Description :
Provides an interface for managing Apt source, key, and definitions with Puppet
puppetmodule(puppetlabs-apt)
puppetmodule_puppetlabs-apt = 1.8.0-42

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.