spqr 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +9 -6
- data/VERSION +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
@@ -18,16 +18,19 @@ rescue LoadError
|
|
18
18
|
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
19
19
|
end
|
20
20
|
|
21
|
-
|
22
|
-
task :rpmspec => :release do
|
21
|
+
def pkg_version
|
23
22
|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
24
|
-
|
23
|
+
return version.chomp
|
24
|
+
end
|
25
|
+
|
26
|
+
desc "create an RPM spec file"
|
27
|
+
task :rpmspec => :build do
|
28
|
+
sh "gem2rpm -t spqr.spec.in -o spqr.spec pkg/spqr-#{pkg_version}.gem"
|
25
29
|
end
|
26
30
|
|
27
31
|
desc "create a source RPM"
|
28
|
-
task :srpm => :
|
29
|
-
|
30
|
-
sh "gem2rpm -t spqr.spec.in -s pkg/spqr-#{version}.gem"
|
32
|
+
task :srpm => :build do
|
33
|
+
sh "gem2rpm -t spqr.spec.in -s pkg/spqr-#{pkg_version}.gem"
|
31
34
|
end
|
32
35
|
|
33
36
|
require 'spec/rake/spectask'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|