- support an ~/.fpmrc - the syntax of this file is one flag per line.
This file is optional.
https://github.com/jordansissel/fpm/issues/39
- Support --replaces (only .deb supports this right now, rpm seems to
not).
plugin. For now, only 'gem' uses this.
- Add flag --gem-bin-path to install a gem's executables to a specific
place. Some folks like /usr/bin, so, package puppet with bins there:
* fpm -s gem -t deb --gem-bin-path /usr/bin puppet
The original implementation for this bin-path flag was by lassizci.
https://github.com/jordansissel/fpm/pull/27
* Uses 'easy_install' to download packages from pypi.
* You can also give the path to a setup.py to use if you already have
the project locally.
* Automatically chooses 'native' or 'all' arch depending on whether
the python project has C extensions
Left deb as default but now you can 'make rpm' if that's your kink.
Wurks gud, (though your jdk dependency may vary):
[eric@leterel ~/fpm/jruby]$ rpm -q --requires -p jruby-1.6.1.noarch.rpm
jdk >= 1.6.0
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
[eric@leterel ~/fpm/jruby]$ sudo rpm -Uvh ./jruby-1.6.1.noarch.rpm
Preparing... ########################################### [100%]
1:jruby ########################################### [100%]
[eric@leterel ~/fpm/jruby]$ /opt/jruby/bin/jruby -e 'puts "hello world"'
hello world
Unless specified, the arch is selected automatically.
The default arch is "native"
Also support "native" and "all" strings which are converted to the
appropriate values for the target packages.
"all" will become "noarch" for rpms (stays as 'all' for deb)
"native" will become amd64 or i386 for deb (or other)
"native" will become the output of 'uname -m' for rpm.
If the source is a gem, and the gem has no extensions (ruby C code),
default to "all". If it has C extensions (like eventmachine and
sqlite3 gems), then the arch defaults to "native"
This resolves:
https://github.com/jordansissel/fpm/pull/29https://github.com/jordansissel/fpm/issues/25https://github.com/jordansissel/fpm/issues/14