Commit Graph

435 Commits

Author SHA1 Message Date
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 34dbd7fb8d Merge pull request #269 from radim/master
dpkg vs rubygem version dependency
2012-10-11 13:22: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
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
Jason Copenhaver c3e5a0c907 Support 'prefix' in deb templates 2012-10-01 10:09:42 -03:00
Jordan Sissel b27efde44b fix failling test due to 'epoch' being private 2012-09-25 13:59:29 -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
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 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 7c8fbee0fb Fix compatibility with ruby 1.8 2012-09-06 21:00:20 -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 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 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 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
Jordan Sissel 3831a4bd9f Fix up the specs and output checks 2012-08-25 03:59:03 -04:00
Jordan Sissel e1f29462fe - Abort and notify the user if the package is to be written to a
location (parent directory) that does not exist. (#244)
2012-08-25 00:18:11 -07:00
Jordan Sissel f9ed3dd83f - Make custom channels work with pear (#207)
- add --pear-channel-update flag to force 'pear channel-update' prior to
  installation.
2012-08-24 23:56:29 -07:00
Jordan Sissel 3d10f65d7f improve error messages 2012-08-24 23:56:14 -07:00
Jordan Sissel 0d3321717a - Got closer to channel support working. When I do it manually, it
works, but through fpm it does not. Probably something silly.
  (progress on #207)
2012-08-24 20:17:50 -04:00
Jordan Sissel e869313a9a Start hacking on pear channel support (#207) 2012-08-24 16:58:23 -07:00
Jordan Sissel 72e687f6ab Work around bug or misconfiguration in dpkg found on OSX when dpkg is provided by homebrew. 'dpkg --print-architecture' succeeds but emits nothing. 2012-08-24 15:45:05 -07:00
Jordan Sissel 2cc447c895 remove excess debug print 2012-08-24 15:36:13 -07:00
Jordan Sissel 68e0a4d5ed Merge pull request #250 from zllak/fix/deb
fix small problem in the debian output
2012-08-24 15:11:24 -07:00
Jordan Sissel cb50a1803b - Replace "\n" with newline char in the --description value (#251) 2012-08-24 18:07:45 -04:00
Thomas Meson 305066a62a fix small problem in the debian output
the created deb was issuing obsolete operators for the package
dependencies. This commit replaces the < and > operators by << and >>,
which are recommeded by debian policy
2012-08-17 16:44:38 +02:00
Jan Vansteenkiste f51cca2758 Update lib/fpm/command.rb
Update description of the command line flags: if you can specify a flag multiple times, document that you can.
2012-08-16 14:43:10 +03:00
Jordan Sissel 376ea7d794 Make --exclude on 'foo' kill any files like foo/bar/baz - #248 2012-08-14 16:03:50 -07:00
Jordan Sissel 0cdfeef793 Fix a bug introduced in 0.4.11 that caused all deb packages to contain empty maintainer scripts if not otherwise specified, which made apt/dpkg quite unhappy 2012-08-10 16:00:50 -07:00
Jordan Sissel eb301e4296 - support templating package/maintainer scripts (#246)
- include test coverage
2012-08-07 10:25:13 -07:00
Jordan Sissel 0f3d66a164 move erb require to top 2012-08-07 09:44:20 -07:00
Jordan Sissel 390e287791 remove monkeypatches now that we're on a newer backports (2.6.2) 2012-08-07 09:33:48 -07:00
Jordan Sissel 3213a717e8 - remove monkeypatches and upgrade to backports 2.6.2 2012-08-07 09:32:59 -07:00
Jordan Sissel a42cad6747 fix missing logger 2012-08-06 02:37:45 -04:00
Matt Blair 0ecf6f9e30 if a deb's compression type isn't specified, use gzip. 2012-07-29 19:45:58 -07:00