rpm: rename generically named method
This commit is contained in:
parent
7da63cbd37
commit
00bfd19349
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ class Rpm < Formula
|
|||
system "make install"
|
||||
end
|
||||
|
||||
def spec
|
||||
def test_spec
|
||||
<<-EOS.undent
|
||||
Summary: Test package
|
||||
Name: test
|
||||
|
@ -104,7 +104,7 @@ class Rpm < Formula
|
|||
rpmdir('%_builddir').mkpath
|
||||
specfile = rpmdir('%_specdir')+'test.spec'
|
||||
specfile.unlink if specfile.exist?
|
||||
(specfile).write(spec)
|
||||
(specfile).write(test_spec)
|
||||
system "#{bin}/rpmbuild", "-ba", specfile
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue