Commit Graph

2265 Commits

Author SHA1 Message Date
Jordan Sissel 8f2dd4516a Default :workdir attribute to Dir.tmpdir
This fixes a bug where rpm output passes an rpm build macro `_tmppath`
that is empty, and on Fedora 27 this causes rpmbuild to fail.

The test suite catches this by making most all RPM specs fail, and with
this change, most of them now pass.
2018-01-10 21:09:17 -08:00
Anthony Mastrean dfaa43a799 Switch from gitter to irc freenode link 2018-01-10 21:01:49 -08:00
Anthony Mastrean b43c393f4f Update README.rst
Bring those project-level badges front-and-center for Travis-CI builds, Gitter chat, and Rubygems.
2018-01-10 21:01:49 -08:00
Charles R. Portwood II b3c20f4e87 Fixes typo with APK control scripts
Alpine Linux describes the available control scripts at https://wiki.alpinelinux.org/wiki/Creating_an_Alpine_package.

This patch fixes an issue where `post-install` was registered multiple times, preventing `:after_install`, `:before_install`, `:before_upgrade`, and `:after_upgrade` from running the correct script.
2018-01-10 21:00:56 -08:00
Anthony Mastrean dce029dddb [Fixes #1397] Update fpm
Ruby 1.9 requires Rubygems internally and this is no longer strictly required. It's been this way since 2009, so it's a little hard to come by official documentation. I hope this works...

> Note: For Ruby 1.8 you must require 'rubygems' before requiring any gems.

http://guides.rubygems.org/rubygems-basics/#requiring-code
2018-01-10 21:00:06 -08:00
Anatoli Babenia c7c9043467 Link intro to full list of sources 2018-01-10 20:59:09 -08:00
Douglas Muth 4343397dfb Added Dockerfile 2018-01-08 16:07:54 -08:00
Jordan Sissel a996a8a404 Allow noarch rpms to contain binaries.
The reasoning for this is that some projects may ship single packages
containing everything necessary. For example, `Netty` and `JRuby` are
Java projects which contain platform-specific (for many platforms)
libraries -- for example, libjffi.
2017-12-24 06:00:04 -08:00
Chris Krelle 90a7f94067 add check for config file already in staging area
Check if config file already exists in the staging before attempting
to copy it
2017-12-23 13:02:43 -08:00
Chris Krelle fe0ab21476 add copy of local file to staging area so it is included in the package 2017-12-23 13:02:43 -08:00
Chris Krelle 8758734009 Fix issue 1440, createing deb packages with --config-files option
While I am not a ruby programer, I was able to come up with a solution to
the issue I was running into when attempting to create a .deb package when
using the --config-files option.
2017-12-23 13:02:43 -08:00
Torsten Schmidt c4b3cd863e fix: install loop problem in rpm.erb
When using install command (from /usr/bin/install) in after_install
shell in creates a endless loop, because it jumps to funtion beginning
of install(). So it's best practise to rename it to _install() to avoid
collision with /usr/bin/install command
2017-12-23 12:59:44 -08:00
Stephen 58b023c3cc exclude not working osx rvms 2017-12-23 00:04:38 -08:00
Stephen 8d85e0990c Update .travis.yml 2017-12-23 00:04:38 -08:00
Stephen f34bcac521 Create Brewfile 2017-12-23 00:04:38 -08:00
Stephen 19523e1873 turn osx tests on 2017-12-23 00:04:38 -08:00
Amnon BC d6ee7e199c add xzmt - multithreaded xz compression for rpmbuild 2017-12-23 00:01:14 -08:00
Marc-Andre Lafortune a0b3a1f078 Load only the backports that are needed 2017-12-15 23:53:38 -08:00
Marc-Andre Lafortune bfcc2b7d5e Specify minimal required ruby version 2017-12-15 23:53:38 -08:00
Jordan Sissel 92d134eaa5
Update to Contributor Covenant 1.4 (previously1.0) 2017-11-06 22:01:13 -08:00
Jordan Sissel ead229fb06
Update README.rst
Add project principles.
2017-11-06 21:54:22 -08:00
Anthony Mastrean 8a91a79088 [Fixes #1402] Update files.rst
Update the Jenkins/WAR example to use the more stable addresses, although they do redirect to mirrors and make the wget example output look nasty, it should be more reliable.
2017-09-28 08:36:45 -07:00
Jordan Sissel bd89a51f61 Version bump 2017-08-20 13:28:56 -07:00
Nemanja Boric 139793c8b3 Allow source=dest/ syntax for symlinks
PR #1253, while fixed the bug where `source.link=dest/source.link`
resulted in `source.link=dest/source.link/source.link` introduced a bug
where `source=dest/` syntax stopped working for symlinks (it is ok for
files). This is now fixed, as the symlink source now behaves the same as
it would with a single file input. Test case testing this behaviour is
also added.

Fixes #1395
2017-09-11 09:36:10 -07:00
Joseph Anthony Pasquale Holsten 6f07665db0 Merge pull request #1404 from yanca018/master
Update LICENSE
2017-08-26 20:13:58 -07:00
yanca018 03ea0c151b Update LICENSE 2017-08-14 03:04:21 -05:00
Jordan Sissel b7e82d49b4 Version bump 2017-07-29 01:27:51 -07:00
Jordan Sissel a15f60e20f Restore prior --config-files behavior
PR #1379/#860 introduced a new behavior for --config-files that fetches
config files from the local filesystem. The prior behavior was to
require these files to be provided by the source package (`--source`
flag).

This patch makes a hybrid solution which does, for any given
`--config-files foo` flag:

* does the path `foo` already exist in the staging area? Do nothing.
This means the package source (`-s gem` for example) provided this file.
* or, does the path `foo` exist in the local filesystem? If so, copy it
into the staging area.
* otherwise, consider this to be an error that the --config-files
setting cannot find the file, and fpm will fail with an error.
2017-07-29 14:49:16 -07:00
Jordan Sissel fcd4e70662 Try formatting with a definition list 2017-07-28 15:31:28 -07:00
Jordan Sissel bab1780b12 Add some answers to questions folks may have on pleaserun+fpm 2017-07-28 15:28:50 -07:00
Jordan Sissel d11567300f The phrase 'reasonably straightforward' is probably incorrect. Reprhase to express intent (we hope it's easy, etc) 2017-07-28 15:11:10 -07:00
Jordan Sissel 100a825796 Version bump for a newer pleaserun 2017-07-28 14:59:15 -07:00
Jordan Sissel b0fd3d2ef3 version bump 2017-07-28 14:53:45 -07:00
Jordan Sissel e4ade183c2 Add pleaserun docs. Happy sysadmin day! 2017-07-28 03:43:37 -07:00
Justin Kolberg efd05dd93b Add missing forward-slash to dir.rst
Without this forward-slash, installing the resulting deb package can wipe out directories.
2017-07-25 14:31:39 -07:00
Scott Van Hess e777018424 Rename `--include-dependencies` to `--embed-dependencies` 2017-07-21 10:24:13 -07:00
Scott Van Hess c63e6fa89d Optionally allow gem dependencies to be installed 2017-07-21 10:24:13 -07:00
Jordan Sissel b9f4c1e64f - fix another bad conversion from ftw to net/http. I hate net::http so
much.
2017-07-21 10:24:13 -07:00
Jordan Sissel 42b7c5acd3 - Version bump.
- This version adds solaris package support. Thanks to Ben Rockwood for
  donating a Joyent Solaris instance so I could work on this.
2017-07-21 10:24:13 -07:00
jakerobinson 783b06fe97 copy config files external to source 2017-07-21 10:09:23 -07:00
Ward Vandewege 55672427a5 Add --python-setup-py-arguments flag which can be used to pass arbitrary
arguments to setup.py.

This is helpful to package python modules that have a poorly written
setup.py that requires special arguments.
2017-07-21 09:55:01 -07:00
Alexander Weidinger 127b29194a Add --deb-after-purge FILE 2017-07-20 16:41:15 -07:00
Jordan Sissel 923ee23636 Merge pull request #1281 from rnowling/fix-nodejs-example-formatting
Correct formatting of commands in Node.js example
2017-07-20 14:57:35 -07:00
Jordan Sissel 8453c61112 Merge branch 'master' into fix-nodejs-example-formatting 2017-07-20 14:57:06 -07:00
Jan Delgado c7393be73f Performance optimization for apk packages: This patch dramatically improves
performance when building larger alpine apk packages.
2017-07-20 14:16:01 -07:00
Jordan Sissel 78853a81c9 Use 'false' not 'FALSE' constant 2017-07-20 14:12:18 -07:00
Thiago Figueiró 07e7e5399d Fix #1123 do not include empty .scripts directory 2017-07-20 14:12:18 -07:00
Thiago Figueiró 4d5b09778e Disable travis osx tests 2017-07-20 14:12:18 -07:00
Thiago Figueiró d6e136b457 Test against rubies 2.2.5, 2.3.3 and 2.4.0 2017-07-20 14:12:18 -07:00
Thiago Figueiró d2a71442c1 Add tar spec for #1123 2017-07-20 14:12:18 -07:00