From c0987de9a0619a398c0c285114e09bb8d0683a03 Mon Sep 17 00:00:00 2001 From: Mamoru Tasaka Date: May 17 2010 07:27:19 +0000 Subject: - Set TMPDIR environment at %check to make it sure all files created during rpmbuild are cleaned up --- diff --git a/rubygem-actionpack.spec b/rubygem-actionpack.spec index 8215a6e..851cc49 100644 --- a/rubygem-actionpack.spec +++ b/rubygem-actionpack.spec @@ -10,7 +10,7 @@ Summary: Web-flow and rendering framework putting the VC in MVC Name: rubygem-%{gemname} Epoch: 1 Version: 2.3.5 -Release: 1%{?dist} +Release: 2%{?dist} Group: Development/Languages License: MIT URL: http://www.rubyonrails.org @@ -92,6 +92,11 @@ cp -a .%{gemdir}/* %{buildroot}%{gemdir} rm -rf %{buildroot} %check +# Don't pollute /tmp, it won't be cleaned up after build +rm -rf ./tmpdir +mkdir ./tmpdir +export TMPDIR=$(pwd)/tmpdir + pushd .%{geminstdir} # dependency loop @@ -119,6 +124,10 @@ rake test --trace %changelog +* Mon May 17 2010 Mamoru Tasaka - 1:2.3.5-2 +- Set TMPDIR environment at %%check to make it sure all files created + during rpmbuild are cleaned up + * Thu Jan 28 2010 Mamoru Tasaka - 1:2.3.5-1 - Update to 2.3.5