From 00bfd193495e62f7c105e4b7d3c0d83b457031fc Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 9 May 2015 00:11:54 -0400 Subject: [PATCH] rpm: rename generically named method --- Formula/rpm.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/rpm.rb b/Formula/rpm.rb index 22f7cc9d9a..51ecd0f2ff 100644 --- a/Formula/rpm.rb +++ b/Formula/rpm.rb @@ -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