qrpm 0.5.1 → 0.5.2

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: edf34f7ca5df2324db07479247d78763e601168362b440423c6cc15fb2a89d09
4
- data.tar.gz: fbbaeb191365f313fdcb7ab0c8fc0c095d4a281c14eacb9397e046f547b80f0b
3
+ metadata.gz: 03cd1a1d806c5f9284af06e778849190a96d7626043f9ad9c451c8d8098718c7
4
+ data.tar.gz: 287d10503f8436fcabdcb644a59cd976cadd15e8944ae59fc1f598d04ece6024
5
5
  SHA512:
6
- metadata.gz: aab56faa2180c5dcb853687a8111314ae194c4732aa56630588e44067c60cfc28a0052e67f3fa30d6d5149be735077780e20eb6b1aaf936f2461fb6634e46fe0
7
- data.tar.gz: 330aac5777211f3bca7402d60b6c57ecf2159621a601ef0b802e1cc8deaf2127587bdd5582305cfd0b13118c0e03b87ec0e0718960afac71ebd53406e03dbf4c
6
+ metadata.gz: 1767b5fccd1327840f515021453a82c28d2166710b6c0cf38fb2872d116a7553eb48215bf85a8ca45f58be444d75bceaa1dd33d295319871c37073d313c3a480
7
+ data.tar.gz: 548e33898949eb8dc5e2dbe8ba0a515e25796a9a62c1671c3b9cf9ea25493ce3ac0e793b85c640f2c8f0e194882b197022448c5ae94c047067aff0883b45ad05
data/exe/qrpm CHANGED
@@ -197,19 +197,19 @@ begin
197
197
  opts.force? || opts.dump? || `cd #{qrpmdir}; git status --porcelain | grep -v '??' 2>/dev/null` == "" or
198
198
  ShellOpts.error "Repository is dirty"
199
199
 
200
+ # Create lexer
201
+ lexer = Qrpm::Lexer.new([currdir, qrpmdir].uniq, opts.include.reverse)
202
+
203
+ # Change to qrpm directory
204
+ Dir.chdir(qrpmdir)
205
+
200
206
  # Check configuration file
201
207
  file ||= Qrpm::QRPM_CONFIG_FILE
202
208
  ::File.exist?(file) or ShellOpts.error "Can't find '#{file}'"
203
209
 
204
- # Create lexer
205
- lexer = Qrpm::Lexer.new([currdir, qrpmdir].uniq, opts.include.reverse)
206
-
207
210
  # Load the qrpm configuration file
208
211
  conf = lexer.lex(File.expand_path file)
209
212
 
210
- # Change to qrpm directory
211
- Dir.chdir(qrpmdir)
212
-
213
213
  # Parse QRPM configuration file. Include paths are still resolved with the
214
214
  # context of the original directory if -C is used while filesystem paths are
215
215
  # relative to the source directory
data/lib/qrpm/rpm.rb CHANGED
@@ -130,7 +130,12 @@ module Qrpm
130
130
  IO.write(destfiles.first, @spec)
131
131
  else
132
132
  IO.write(spec_path, @spec)
133
- system "rpmbuild -v -ba --define \"_topdir #{rootdir}\" #{rootdir}/SPECS/#{name}.spec #{verb}" or
133
+ rpm_build_options = [
134
+ "-v -ba",
135
+ "-D 'debug_package %{nil}'",
136
+ "--define \"_topdir #{rootdir}\"",
137
+ ].join(" ")
138
+ system "rpmbuild #{rpm_build_options} #{rootdir}/SPECS/#{name}.spec #{verb}" or
134
139
  raise "Failed building RPM file. Re-run with -v option to see errors"
135
140
  if target == :srpm
136
141
  destfiles = Dir["#{rootdir}/SRPMS/*"]
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.5.1"
4
+ VERSION = "0.5.2"
5
5
  end
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.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-24 00:00:00.000000000 Z
11
+ date: 2024-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shellopts
@@ -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.18
137
+ rubygems_version: 3.3.7
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Gem qrpm