qrpm 0.3.2 → 0.3.4

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: c42c8a277f8c960972b0fed47ef032d8ddc4e1a1484ed97c4b57f0849b6ff2b7
4
- data.tar.gz: 96bfb0d37b1af65ac525a3b4f9393841bca7b8bfe14a82a47f096b1967ad72ff
3
+ metadata.gz: 69442a72ca837b3c52ffbda68a8859a7591cb626ce919f583bf7e39f116cc4ef
4
+ data.tar.gz: 6d08a9ed16af1b3c8f9a6afe9d1d31958a78dc8d7ce19638039abac01ef9642f
5
5
  SHA512:
6
- metadata.gz: 6b20c857030afca9a85b73ae3081e8b684fe14331246abfea0f0bb93790ce70682825328bd0c34b8e15480c70fedd9b98ad651b2fe2f20ccf69e79783e5a7e66
7
- data.tar.gz: 8683dcf8bb03fe5cf62d8a9a4d030d8b67381e1de7b74b0fbb94f6f28014c47b302611b38ede8a9f6cb2e432c91eed5c1b54cf7606ed8e37d812186477f2ac25
6
+ metadata.gz: 45fafccf06fb93ff1933ab932022421ad1952df731b7133bb831f8a3cedd303787fc46d82222f98c2b9845c3d5ed090ae8afdb075f24a4eb376b8f675580ad37
7
+ data.tar.gz: c4a3d9c6f372de9e4fccb67af861aea6bc2529dccced89bd3028e2a46dcf122b16f01a9075c0981a7543e456fe90d2ed5504be02c7da532af78923bf744608fa
data/example/qrpm.yml CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- name: my_package_name
2
+ name: testpck
3
3
  summary: This is a summary of the package
4
4
  description: Optional longer description of the package
5
5
  version: 1.2.3
data/exe/qrpm CHANGED
@@ -126,6 +126,10 @@ begin
126
126
  currdir = overrides["currdir"] = File.expand_path(overrides["currdir"] || Dir.getwd)
127
127
  qrpmdir = overrides["qrpmdir"] = File.expand_path(overrides["qrpmdir"] || opts.directory || ".")
128
128
 
129
+ # Check builddir (todo: also currdir?)
130
+ File.directory?(currdir) or error "Can't find '#{currdir}'"
131
+ File.directory?(qrpmdir) or error "Can't find '#{qrpmdir}'"
132
+
129
133
  # Compute builddir
130
134
  if opts.builddir? && opts.force_builddir?
131
135
  ShellOpts.error "Can't use both --builddir and --force-builddir"
@@ -139,7 +143,7 @@ begin
139
143
  end
140
144
 
141
145
  # Check if repository is clean
142
- opts.force? || opts.dump? || `git status --porcelain | grep -v '??' 2>/dev/null` == "" or
146
+ opts.force? || opts.dump? || `cd #{qrpmdir}; git status --porcelain | grep -v '??' 2>/dev/null` == "" or
143
147
  ShellOpts.error "Repository is dirty"
144
148
 
145
149
  # Check configuration file
@@ -156,8 +160,8 @@ begin
156
160
  Dir.chdir(qrpmdir)
157
161
 
158
162
  # Parse QRPM configuration file. Include paths are still resolved with the
159
- # context of the original directory while filesystem paths are relative to
160
- # the source directory
163
+ # context of the original directory if -C is used while filesystem paths are
164
+ # relative to the source directory
161
165
  compiler = Qrpm::Compiler.new(overrides)
162
166
  qrpm = compiler.compile(conf)
163
167
  rpm = qrpm.rpm
data/lib/qrpm/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Qrpm
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.4"
5
5
  end
data/lib/qrpm.rb CHANGED
@@ -102,7 +102,7 @@ module Qrpm
102
102
  DEFAULTS = {
103
103
  "name" => "$(basename $PWD)",
104
104
  "summary" => "The $name RPM package",
105
- "version" => "$(cd ${{srcdir}} && git tag -l 2>/dev/null | tail -1 | tr -dc '.0-9' || echo 0.0.0)",
105
+ "version" => "$(cd ${{srcdir}} && git tag -l 2>/dev/null | sort -V | tail -1 | tr -dc '.0-9' || echo 0.0.0)",
106
106
  "description" => "$summary",
107
107
  "release" => "1",
108
108
  "license" => "GPL",
data/qrpm.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
 
28
28
  spec.add_dependency "shellopts", "~> 2.1.1"
29
29
  spec.add_dependency "indented_io"
30
- spec.add_dependency "constrain"
30
+ spec.add_dependency "constrain", "= 0.5.1"
31
31
  spec.add_dependency "forward_to"
32
32
 
33
33
  # Uncomment to register a new dependency of your gem
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qrpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-24 00:00:00.000000000 Z
11
+ date: 2023-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shellopts
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: constrain
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 0.5.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 0.5.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: forward_to
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  requirements: []
137
- rubygems_version: 3.3.7
137
+ rubygems_version: 3.3.18
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Gem qrpm