Commit bcc8bed 1 parent 596eb92 commit bcc8bed Copy full SHA for bcc8bed
File tree 8 files changed +36
-3
lines changed
integration-tests-ansible/test-project-play-rpm
main/scala/com/typesafe/sbt/packager/rpm
8 files changed +36
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
3
+ ## [ Unreleased] ( https://github.com/sbt/sbt-native-packager/tree/HEAD )
4
+
5
+ [ Full Changelog] ( https://github.com/sbt/sbt-native-packager/compare/v1.3.15...HEAD )
6
+
7
+ ** Closed issues:**
8
+
9
+ - WindowsPlugin: support multiple .wxs inputs [ \# 1176] ( https://github.com/sbt/sbt-native-packager/issues/1176 )
10
+
11
+ ## [ v1.3.15] ( https://github.com/sbt/sbt-native-packager/tree/v1.3.15 ) (2018-11-29)
12
+ [ Full Changelog] ( https://github.com/sbt/sbt-native-packager/compare/v1.3.14...v1.3.15 )
13
+
14
+ ** Merged pull requests:**
15
+
16
+ - WindowsPlugin: support multiple wxs sources \(\# 1176\) [ \# 1177] ( https://github.com/sbt/sbt-native-packager/pull/1177 ) ([ nigredo-tori] ( https://github.com/nigredo-tori ) )
17
+
3
18
## [ v1.3.14] ( https://github.com/sbt/sbt-native-packager/tree/v1.3.14 ) (2018-11-21)
4
19
[ Full Changelog] ( https://github.com/sbt/sbt-native-packager/compare/v1.3.12...v1.3.14 )
5
20
Original file line number Diff line number Diff line change @@ -28,3 +28,5 @@ rpmRelease := "1"
28
28
rpmVendor := " DemoVendor"
29
29
30
30
rpmLicense := Some (" Apache-2.0" )
31
+
32
+ rpmEpoch := 1
Original file line number Diff line number Diff line change 4
4
set -euo pipefail
5
5
IFS=$' \n\t '
6
6
7
- ansible-playbook --private-key=.vagrant/machines/default/virtualbox/private_key --user=vagrant --connection=ssh --limit=' default' --inventory-file=.vagrant/provisioners/ansible/inventory provisioning/test.yml
7
+ ansible-playbook-3 --private-key=.vagrant/machines/default/virtualbox/private_key --user=vagrant --connection=ssh --limit=' default' --inventory-file=.vagrant/provisioners/ansible/inventory provisioning/test.yml
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ trait RpmKeys {
21
21
// DESCRIPTION KEYS
22
22
// TODO - Summary and license are required.
23
23
val rpmLicense = SettingKey [Option [String ]](" rpm-license" , " License of the code within the RPM." )
24
+ val rpmEpoch = SettingKey [Int ](" rpm-epoch" , " Epoch of the generated RPM." )
24
25
val rpmDistribution = SettingKey [Option [String ]](" rpm-distribution" )
25
26
val rpmUrl =
26
27
SettingKey [Option [String ]](" rpm-url" , " Url to include in the RPM." )
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ case class RpmMetadata(name: String,
18
18
summary : String ,
19
19
description : String ,
20
20
autoprov : String ,
21
- autoreq : String )
21
+ autoreq : String ,
22
+ epoch : Int )
22
23
23
24
/**
24
25
* The Description used to generate an RPM
@@ -222,6 +223,9 @@ case class RpmSpec(meta: RpmMetadata,
222
223
sb append (" Version: %s\n " format meta.version)
223
224
sb append (" Release: %s\n " format meta.release)
224
225
sb append (" Summary: %s\n " format meta.summary)
226
+
227
+ if (meta.epoch > 0 ) sb append (" Epoch: %d\n " format meta.epoch)
228
+
225
229
meta.prefix foreach { v =>
226
230
sb append (" prefix: %s\n " format v)
227
231
}
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ object RpmPlugin extends AutoPlugin {
69
69
rpmPrefix := None ,
70
70
rpmVendor := " " , // TODO - Maybe pull in organization?
71
71
rpmLicense := None ,
72
+ rpmEpoch := 0 ,
72
73
rpmDistribution := None ,
73
74
rpmUrl := None ,
74
75
rpmGroup := None ,
@@ -121,7 +122,8 @@ object RpmPlugin extends AutoPlugin {
121
122
(packageSummary in Rpm ).value,
122
123
(packageDescription in Rpm ).value,
123
124
rpmAutoprov.value,
124
- rpmAutoreq.value
125
+ rpmAutoreq.value,
126
+ rpmEpoch.value
125
127
),
126
128
rpmDescription := RpmDescription (
127
129
rpmLicense.value,
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ rpmUrl := Some("http://github.com/sbt/sbt-native-packager")
21
21
22
22
rpmLicense := Some (" BSD" )
23
23
24
+ rpmEpoch := 1
25
+
24
26
packageArchitecture in Rpm := " x86_64"
25
27
26
28
linuxPackageMappings in Rpm := {
@@ -38,6 +40,7 @@ TaskKey[Unit]("checkSpecFile") := {
38
40
assert(spec contains " Release: 1" , " Contains project release" )
39
41
assert(spec contains " Summary: Test rpm package" , " Contains project summary" )
40
42
assert(spec contains " License: BSD" , " Contains project license" )
43
+ assert(spec contains " Epoch: 1" , " Contains epoch of 1" )
41
44
assert(spec contains " Vendor: typesafe" , " Contains project vendor" )
42
45
assert(spec contains " URL: http://github.com/sbt/sbt-native-packager" , " Contains project url" )
43
46
assert(spec contains " BuildArch: x86_64" , " Contains project package architecture" )
Original file line number Diff line number Diff line change @@ -123,6 +123,12 @@ Informational Settings
123
123
``rpmLicense ``
124
124
The license associated with software in the RPM.
125
125
126
+ ``rpmEpoch ``
127
+ The epoch is the most significant number used when resolving different versions
128
+ for the same RPM. For a given package, packages with the highest epoch will be
129
+ used, and in the event of a tie it will fall back to comparing the version and
130
+ release.
131
+
126
132
Dependency Settings
127
133
~~~~~~~~~~~~~~~~~~~
128
134
You can’t perform that action at this time.
0 commit comments