[packages/ruby-ffi] do not package patch backups

glen glen at pld-linux.org
Thu Dec 11 09:37:12 CET 2014


commit 705bedfdd9a36b67d0c0516c1ad3605617ae5221
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Dec 11 10:37:07 2014 +0200

    do not package patch backups

 ruby-ffi.spec | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/ruby-ffi.spec b/ruby-ffi.spec
index 14690f7..b1863bd 100644
--- a/ruby-ffi.spec
+++ b/ruby-ffi.spec
@@ -88,6 +88,9 @@ stronie <http://wiki.github.com/ffi/ffi/why-use-ffi>.
 # ext build
 cp -p %{_datadir}/setup.rb .
 
+# cleanup backups after patching
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
+
 %build
 %__gem_helper spec
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-ffi.git/commitdiff/705bedfdd9a36b67d0c0516c1ad3605617ae5221



More information about the pld-cvs-commit mailing list