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

This commit is contained in:
Richard W.M. Jones 2013-04-09 21:24:26 +01:00
parent 0931cc3257
commit 8049012254
1 changed files with 5 additions and 3 deletions

View File

@ -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@redhat.com> - 1:1.21.28-1
* Tue Apr 9 2013 Richard W.M. Jones <rjones@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.