SHA256
1
0
forked from pool/libguestfs

- readd autoreconf -fi if automake is newer than 1.10

it fixes ruby build failures due to RPATH ending up in libraries
  in 11.4 and 12.1

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=159
This commit is contained in:
Olaf Hering 2012-11-19 17:28:37 +00:00 committed by Git OBS Bridge
parent 5a75091a73
commit 7d49b08650
2 changed files with 21 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Nov 19 18:26:16 CET 2012 - ohering@suse.de
- readd autoreconf -fi if automake is newer than 1.10
it fixes ruby build failures due to RPATH ending up in libraries
in 11.4 and 12.1
-------------------------------------------------------------------
Mon Nov 19 17:24:19 CET 2012 - ohering@suse.de

View File

@ -53,6 +53,8 @@
#
Name: libguestfs
ExclusiveArch: %ix86 x86_64
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: aaa_base
BuildRequires: attr-devel
BuildRequires: augeas-devel
@ -387,6 +389,15 @@ else
CFLAGS="$CFLAGS -DGUESTFS_QEMU_NO_VIRTIO_BLK"
CXXFLAGS="$CXXFLAGS -DGUESTFS_QEMU_NO_VIRTIO_BLK"
fi
am_version="`automake --version | awk '/^automake \(GNU automake\) / { print $4 }'`"
if test -n "${am_version}"
then
case "${am_version}" in
1.10) ;;
1.10.*) ;;
*) autoreconf -fi ;;
esac
fi
#
%configure \
--help || :
@ -438,7 +449,9 @@ grep "%perl_vendorarch/" %{name}.files | tee t
mv t %{name}.files
%endif
#
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.{l,}a
find $RPM_BUILD_ROOT -name "*.la" -print -delete
rm -fv $RPM_BUILD_ROOT/%{_libdir}/*.a
#
touch %{name}.lang
%find_lang %{name}
#