Commit Graph

817 Commits

Author SHA1 Message Date
Jordan Sissel f0ae9c3645 - upgraaaade 2012-11-08 16:59:31 -08:00
Jordan Sissel 332b3667a5 - don't make assumptions about valid names of a rubygem.
If it's not a valid rubygem, the download will fail and we report it
  anyway!

  Fixes #287
2012-11-08 12:20:16 -08:00
Jordan Sissel 4b6d3b3a48 Merge pull request #260 from ajf8/rpm-directories
issue 245 (RPM's with non-root owners doesn't set ownership of directori...
2012-11-08 12:08:43 -08:00
Jordan Sissel 8efef09c0c Remove unused method 2012-10-31 17:47:56 -07:00
Jordan Sissel d2e40bd38a - fix #280 and hae a test verify it. 2012-10-26 10:37:37 -07:00
Jordan Sissel c0df808280 - deb provides don't support versions (#280) 2012-10-26 10:30:43 -07:00
Jordan Sissel 34dbd7fb8d Merge pull request #269 from radim/master
dpkg vs rubygem version dependency
2012-10-11 13:22:32 -07:00
Jordan Sissel 8796a0859a - bump version 2012-10-05 15:20:32 -07:00
Jordan Sissel ebd133a32d - python: only specify --install-{scripts,lib,data} if the
attributes/flags are set in fpm.

  This should fix #273 without breaking prior behavior.
2012-10-05 15:18:18 -07:00
Radim Marek 3aecbad502 Expand gem version 2012-10-05 00:23:35 +02:00
Jordan Sissel 32edfef452 Merge pull request #272 from UnifiedPost/feature/rubygem_include_version
Add the version of the gem to the provides
2012-10-04 10:36:24 -07:00
Jordan Sissel fbb9f4b6d3 Merge pull request #271 from UnifiedPost/feature/keep_tempfiles_after
When running in debug mode, do not remove temp files created
2012-10-04 10:35:21 -07:00
Jan Vansteenkiste c3fcb8132c Add the version of the gem to the provides so we can set dependencies on the gem version in other rpms 2012-10-04 11:34:08 +02:00
Jan Vansteenkiste ef109721b9 When running in debug mode, do not remove temp files created 2012-10-04 11:14:03 +02:00
Jordan Sissel 7842a6c192 Merge pull request #270 from jcopenha/master
Support 'prefix' in deb templates
2012-10-02 16:36:19 -07:00
Jason Copenhaver c3e5a0c907 Support 'prefix' in deb templates 2012-10-01 10:09:42 -03:00
Jordan Sissel 7bf937b16c update changelog/version 2012-09-26 00:38:37 -07:00
Jordan Sissel 0ed0021ecd Merge pull request #266 from jwittkoski/spec_file_percents
Replace % with [%] to make rpm not expand macros in file names
2012-09-26 00:34:33 -07:00
Jordan Sissel b27efde44b fix failling test due to 'epoch' being private 2012-09-25 13:59:29 -07:00
Jordan Sissel 2a27467e39 - prep for release 2012-09-25 13:51:49 -07:00
Jordan Sissel d8f2ac7cb6 - write specs to ensure the default epoch and release are always '1'
This ensures future regressions are caught before fpm releases.

- rpm: if epoch is nil, default to 1. This fixes a regression where fpm
  0.4.3 generated rpms with an epoch of '1' and the fpm 0.4.17 (or
  somewhere in between) started generating rpms with no epoch value.
  This caused version comparisions of '15' and '10' to show '10' as
  newer if you built the version 10 one in older fpms.
2012-09-25 13:48:33 -07:00
John Wittkoski c7bb5052e5 Escape percents in filenames in %install section 2012-09-25 12:19:35 -04:00
John Wittkoski e0472f3945 Replace % with [%] to make rpm not expand macros 2012-09-25 10:43:07 -04:00
Jordan Sissel 85241b6d1c - Add --workdir flag for specifying a place other than the system /tmp
directory to do work. (Idea by Ryan Petrello)
2012-09-12 13:39:06 -07:00
Jordan Sissel 7c6534208e update changelist 2012-09-12 13:08:57 -07:00
Jordan Sissel fca568ff1c version bump 2012-09-12 13:08:16 -07:00
Jordan Sissel 9a9bdf3c33 Remove a pointless warning 2012-09-12 13:07:00 -07:00
Alan F a88cca4084 issue 245 (RPM's with non-root owners doesn't set ownership of directories). Add a --directories argument, which in a similar way to --config-files allows directories to be tagged as directories, meaning they are owned by the RPM. This means they get the --rpm-user and --rpm-group as their owners, and they are removed with the RPM. 2012-09-11 09:23:40 +01:00
Jordan Sissel 37fc96637c - bump version to 0.4.16
- note fix for ruby 1.8.7
2012-09-06 21:13:29 -07:00
Jordan Sissel 7c8fbee0fb Fix compatibility with ruby 1.8 2012-09-06 21:00:20 -07:00
Jordan Sissel 101347629e Fix changelog for 0.4.15 2012-09-06 20:03:20 -07:00
Jordan Sissel d6199594d5 - bump version with completed changelist. 2012-09-06 20:00:29 -07:00
Jordan Sissel 96c134435c Update changelist 2012-09-06 19:57:22 -07:00
Jordan Sissel b088335049 Reject dependencies with commas (#253) and offer alternatives 2012-09-06 19:56:33 -07:00
Jordan Sissel dc3c7e815a Fix typo 2012-09-06 19:51:11 -07:00
Jordan Sissel b85f30f54b update changelist for release 2012-09-06 19:47:24 -07:00
Jordan Sissel e4ff0e0599 improve flag doc 2012-09-06 19:44:20 -07:00
Jordan Sissel f923360114 - Add --template-value flag for passing arbitrary things into your
template scripts.

  Test:
    % rm *deb
    % ruby bin/fpm -s dir -t deb -n fizzle --template-value foo=bar --after-install =(echo '<%= foo %>') /etc/motd
    Created deb package {"path":"fizzle_1.0_amd64.deb"}
    % ar p fizzle_1.0_amd64.deb control.tar.gz | tar -zx ./postinst
    % cat postinst
    bar
    % rm postinst
2012-09-06 19:36:57 -07:00
Jordan Sissel cc01ef15f1 - fix bad test 2012-09-06 19:26:58 -07:00
Jordan Sissel 5e67ec8531 Skip rpm regression tests since they require rpmbuild 2012-09-06 19:20:28 -07:00
Jordan Sissel 0ea8c73b18 Merge pull request #255 from zllak/feature/python/install_data
python: customize the --install-data option for setup.py
2012-09-06 19:11:35 -07:00
Jordan Sissel 649b47cbf3 Merge pull request #253 from JacekLach/rescue-eperm-while-linking
EPERM on hardlinking files is not rescued when packaging a dir
2012-09-06 19:07:45 -07:00
Jordan Sissel 700db07aaf Remove lie about recursing in directories (#171) 2012-09-06 13:20:07 -07:00
Jordan Sissel 5ddfdd7ec2 - add user/group ownership settings for deb packages 2012-09-05 23:12:31 -07:00
Thomas Meson ad7f395842 python: customize the --install-data option for setup.py
Give the possibility to specify from command line where to install the
data. Data were installed in the 'lib' directory, which is still the
default setting if not explicitely changed, for backward compatibility.
A more "normal" data directory would be /usr or /usr/share, also
depending on the target OS.
2012-08-30 16:36:06 +02:00
Jacek Lach cdee7ae02b Try copying file when linking fails with EPERM
Thus files that are owned by different users but can be copied will not
break packaging.
2012-08-29 12:46:33 +01:00
Jordan Sissel f3bf4afa96 Force default package to_s when name given is nil (#241) 2012-08-25 11:23:05 -07:00
Jordan Sissel a2a9ae9631 Add note about --deb-priority 2012-08-25 01:22:48 -07:00
Jordan Sissel 910b676373 Add spec coverage for deb priority 2012-08-25 01:22:37 -07:00
Jordan Sissel 6617425576 - Add --deb-priority (#232) 2012-08-25 04:10:51 -04:00