fpm 1.13.0 → 1.13.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f231a03d2baac73ae0f4f8f15094237ca94ec43de51ef0b86dde886a8647efa2
4
- data.tar.gz: 91666a6a7b09b6f3ab3bb6dccf32e647d58a43754d2163a4748ae8a2e14515e8
3
+ metadata.gz: a51484aca566bb4b8a1362c216c96aeb3fe0400abc44befefe32152624e99148
4
+ data.tar.gz: 1ae93c91155b91e8decc380fa502ed8e38dd14d74df232bf29ece3c89f34ca4a
5
5
  SHA512:
6
- metadata.gz: b21d482730c5e532f9bf6f9e7faf51bf712aa9f75ebab9b8453d1f1b9cd9f1e0ef5a32bb84f18808bc5bc8c15a8e1c47546ad1d474e9c3c581eaa7afe85e80b9
7
- data.tar.gz: 72963da4b7601fa8d416ab20ce26e15838960b7dca9c364b38312266857e3beb9b11b32a9c708ff393a612f0e5ff350b6098fd794c4b5b05fe767c0a4323dfdd
6
+ metadata.gz: dbca18e4c26ed2d88e9918985288617e8678e5a8d2872170ea5b1a35ac63e740c317513faa5ed9d9c12efef9dc464e09f324e94b2504ceaddf58c02aeecd2ec8
7
+ data.tar.gz: 0f1865843b14ac86cd4d8fdf0a7b71d1dfd2c5912e9b66dd7e2169a659646afbfc7adc61da55e9ac8414944e717a7b90c7ea5b3d6994301549e5af73b88994b0
data/CHANGELOG.rst CHANGED
@@ -1,6 +1,14 @@
1
1
  Release Notes and Change Log
2
2
  ============================
3
3
 
4
+ 1.13.1 (July 6, 2021)
5
+ ^^^^^^^^^^^^^^^^^^^^^
6
+ * deb: The `--provides` flag now allows for versions. Previously, fpm would
7
+ remove the version part of a provides field when generating deb packages.
8
+ (`#1788`_, `#1803`_; Jordan Sissel, Phil Schwarz, tympanix)
9
+ * osxpkg: Update documentation to include installing `rpm` tools on OSX
10
+ (`#1797`_; allen joslin)
11
+
4
12
  1.13.0 (June 19, 2021)
5
13
  ^^^^^^^^^^^^^^^^^^^^^^
6
14
  * Apple M1 users should now work (`#1772`_, `#1785`_, `#1786`_; Jordan Sissel)
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (This is an MIT-style license)
2
2
 
3
- Copyright (c) 2011-2017 Jordan Sissel and contributors.
3
+ Copyright (c) 2011-2021 Jordan Sissel and contributors.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -687,6 +687,19 @@ class FPM::Package::Deb < FPM::Package
687
687
  File.unlink(changelog_path)
688
688
  end
689
689
  end
690
+
691
+ if origin == FPM::Package::Gem
692
+ # fpm's gem input will have provides as "rubygem-name = version"
693
+ # and we need to convert this to Debian-style "rubygem-name (= version)"
694
+ self.provides = self.provides.collect do |provides|
695
+ m = /^(#{attributes[:gem_package_name_prefix]})-([^\s]+)\s*=\s*(.*)$/.match(provides)
696
+ if m
697
+ "#{m[1]}-#{m[2]} (= #{m[3]})"
698
+ else
699
+ provides
700
+ end
701
+ end
702
+ end
690
703
  end # def converted_from
691
704
 
692
705
  def debianize_op(op)
@@ -775,6 +788,11 @@ class FPM::Package::Deb < FPM::Package
775
788
  "debs don't like underscores")
776
789
  provides = provides.gsub("_", "-")
777
790
  end
791
+
792
+ if m = provides.match(/^([A-Za-z0-9_-]+)\s*=\s*(\d+.*$)/)
793
+ logger.warn("Replacing 'provides' entry #{provides} with syntax 'name (= version)'")
794
+ provides = "#{m[1]} (= #{m[2]})"
795
+ end
778
796
  return provides.rstrip
779
797
  end
780
798
 
data/lib/fpm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module FPM
2
- VERSION = "1.13.0"
2
+ VERSION = "1.13.1"
3
3
  end
data/templates/deb.erb CHANGED
@@ -25,7 +25,7 @@ Build-Depends: <%= attributes[:deb_build_depends].collect { |d| fix_dependency(d
25
25
  <% if !provides.empty? -%>
26
26
  <%# Turn each provides from 'foo = 123' to simply 'foo' because Debian :\ -%>
27
27
  <%# http://www.debian.org/doc/debian-policy/ch-relationships.html -%>
28
- Provides: <%= provides.map {|p| p.split(" ").first}.join ", " %>
28
+ Provides: <%= provides.join ", " %>
29
29
  <% end -%>
30
30
  <% if !replaces.empty? -%>
31
31
  Replaces: <%= replaces.collect { |d| fix_dependency(d) }.flatten.join(", ") %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.0
4
+ version: 1.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Sissel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-19 00:00:00.000000000 Z
11
+ date: 2021-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json