fpm 0.4.18 → 0.4.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELIST +3 -0
- data/lib/fpm/package/pyfpm/get_metadata.pyc +0 -0
- data/lib/fpm/package/rpm.rb +2 -1
- data/templates/rpm.erb +4 -2
- metadata +2 -2
data/CHANGELIST
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
0.4.19 (September 26, 2012)
|
2
|
+
- Escape '%' characters in file names (#266, #222. Patch by John Wittkoski)
|
3
|
+
|
1
4
|
0.4.18 (September 25, 2012)
|
2
5
|
- Fix regression in rpm building where the epoch in was missing in the rpm,
|
3
6
|
but prior fpm versions defaulted it to 1. This caused rpms built with newer
|
Binary file
|
data/lib/fpm/package/rpm.rb
CHANGED
@@ -234,5 +234,6 @@ class FPM::Package::RPM < FPM::Package
|
|
234
234
|
end # def digest_algorithm
|
235
235
|
|
236
236
|
public(:input, :output, :converted_from, :architecture, :to_s, :iteration,
|
237
|
-
:payload_compression, :digest_algorithm, :prefix, :build_sub_dir
|
237
|
+
:payload_compression, :digest_algorithm, :prefix, :build_sub_dir,
|
238
|
+
:epoch)
|
238
239
|
end # class FPM::Package::RPM
|
data/templates/rpm.erb
CHANGED
@@ -69,9 +69,9 @@ Obsoletes: <%= repl %>
|
|
69
69
|
|
70
70
|
%install
|
71
71
|
<% files.each do |path| -%>
|
72
|
-
<% source = Shellwords.shellescape(File.join(staging_path, path)) -%>
|
72
|
+
<% source = Shellwords.shellescape(File.join(staging_path, path)).gsub("%", "%%") -%>
|
73
73
|
<% # Copy to the build_path/BUILD/ to make rpmbuild happy -%>
|
74
|
-
<% target = Shellwords.shellescape(File.join(build_path, build_sub_dir, path)) -%>
|
74
|
+
<% target = Shellwords.shellescape(File.join(build_path, build_sub_dir, path)).gsub("%", "%%") -%>
|
75
75
|
<% dir = File.dirname(target) %>
|
76
76
|
mkdir -p <%= dir %>
|
77
77
|
if [ -f <%= source %> ] || [ -h <%= source %> ] ; then
|
@@ -117,12 +117,14 @@ fi
|
|
117
117
|
# Replace [ with [\[] to make rpm not use globs
|
118
118
|
# Replace * with [*] to make rpm not use globs
|
119
119
|
# Replace ? with [?] to make rpm not use globs
|
120
|
+
# Replace % with [%] to make rpm not expand macros
|
120
121
|
files.collect { |f| "/#{f}" } \
|
121
122
|
.reject { |f| config_files.include?(f) } \
|
122
123
|
.collect { |f| f[/\s/] and "\"#{f}\"" or f } \
|
123
124
|
.collect { |f| f.gsub("[", "[\\[]") } \
|
124
125
|
.collect { |f| f.gsub("*", "[*]") } \
|
125
126
|
.collect { |f| f.gsub("?", "[?]") } \
|
127
|
+
.collect { |f| f.gsub("%", "[%]") } \
|
126
128
|
.join("\n")
|
127
129
|
#.collect { |f| File.join(prefix, f) } \
|
128
130
|
%>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.19
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|