[libguestfs] Ignore ocaml/guestfs directory when deleting *.a files.

Richard W.M. Jones rjones at fedoraproject.org
Tue Apr 9 21:40:12 UTC 2013


commit 8049012254be8a3f4b8718a07969daf29c231232
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Tue Apr 9 21:24:26 2013 +0100

    Ignore ocaml/guestfs directory when deleting *.a files.

 libguestfs.spec |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libguestfs.spec b/libguestfs.spec
index ead1474..74f3825 100644
--- a/libguestfs.spec
+++ b/libguestfs.spec
@@ -12,7 +12,7 @@ Summary:       Access and modify virtual machine disk images
 Name:          libguestfs
 Epoch:         1
 Version:       1.21.28
-Release:       1%{?dist}
+Release:       2%{?dist}
 License:       LGPLv2+
 
 # Source and patches.
@@ -629,7 +629,9 @@ make check -k
 make DESTDIR=$RPM_BUILD_ROOT INSTALLDIRS=vendor install
 
 # Delete static libraries, libtool files.
-find $RPM_BUILD_ROOT -name '*.a' -delete
+rm $(
+  find $RPM_BUILD_ROOT -path '*/ocaml/guestfs' -prune -o -name '*.a' -print
+)
 find $RPM_BUILD_ROOT -name '*.la' -delete
 
 # Delete some bogus Perl files.
@@ -879,7 +881,7 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/libguestfs
 
 
 %changelog
-* Tue Apr  9 2013 Richard W.M. Jones <rjones at redhat.com> - 1:1.21.28-1
+* Tue Apr  9 2013 Richard W.M. Jones <rjones at redhat.com> - 1:1.21.28-2
 - New upstream version 1.21.28.
 - Change attach-method -> backend in a few places.
 - Simplify make install section so it fits on a single page.


More information about the scm-commits mailing list