fpm 0.2.20 → 0.2.21
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/fpm +5 -0
- data/lib/fpm/builder.rb +2 -1
- data/templates/deb.erb +1 -1
- data/templates/rpm.erb +6 -2
- metadata +6 -6
data/bin/fpm
CHANGED
@@ -118,6 +118,11 @@ def main(args)
|
|
118
118
|
"Add a description for this package.") do |description|
|
119
119
|
settings.description = description
|
120
120
|
end # --description
|
121
|
+
|
122
|
+
opts.on("--url URL",
|
123
|
+
"Add a url for this package.") do |url|
|
124
|
+
settings.url = url
|
125
|
+
end # --url
|
121
126
|
end # OptionParser
|
122
127
|
|
123
128
|
opts.parse!(args)
|
data/lib/fpm/builder.rb
CHANGED
data/templates/deb.erb
CHANGED
data/templates/rpm.erb
CHANGED
@@ -4,7 +4,8 @@ Version: <%= version %>
|
|
4
4
|
Epoch: <%= epoch %>
|
5
5
|
<% end %>
|
6
6
|
Release: <%= iteration or 1 %>
|
7
|
-
|
7
|
+
<%# use the first line of the description as the summary %>
|
8
|
+
Summary: <%= description.split("\n").first %>
|
8
9
|
BuildArch: <%= architecture %>
|
9
10
|
AutoReqProv: no
|
10
11
|
|
@@ -14,6 +15,7 @@ TODO: [Jay] rpms require a license
|
|
14
15
|
let's detect it intelligently
|
15
16
|
%>
|
16
17
|
License: <%= license %>
|
18
|
+
URL: <%= url or "http://nourlgiven.example.com/" %>
|
17
19
|
Source0: %{_sourcedir}/data.tar.gz
|
18
20
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
19
21
|
|
@@ -44,8 +46,10 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
44
46
|
Provides: <%= prov %>
|
45
47
|
<% end %>
|
46
48
|
|
49
|
+
<%# rpm rejects descriptions with blank lines (even between content), so hack
|
50
|
+
around it by replacing blank lines with ' .' %>
|
47
51
|
%description
|
48
|
-
<%= description %>
|
52
|
+
<%= description.gsub(/^\s*$/, " .") %>
|
49
53
|
|
50
54
|
%prep
|
51
55
|
echo "PREP"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 61
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 21
|
10
|
+
version: 0.2.21
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jordan Sissel
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-11 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
requirements: []
|
90
90
|
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 1.
|
92
|
+
rubygems_version: 1.6.2
|
93
93
|
signing_key:
|
94
94
|
specification_version: 3
|
95
95
|
summary: fpm - package building and mangling
|