From 65a0512242d20c28d84b26dc71b302ecb449c36d Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 11 Jan 2011 16:27:22 -0500 Subject: [PATCH] - Fix build failure on 32-bit platforms --- libtalloc.spec | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/libtalloc.spec b/libtalloc.spec index d913b02..cb043f1 100644 --- a/libtalloc.spec +++ b/libtalloc.spec @@ -6,7 +6,7 @@ Name: libtalloc Version: 2.0.5 -Release: 3%{?dist} +Release: 4%{?dist} Group: System Environment/Daemons Summary: The talloc library License: LGPLv3+ @@ -64,9 +64,11 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libtalloc.a rm -f $RPM_BUILD_ROOT/usr/share/swig/*/talloc.i # Work around incorrect build-system location -mkdir -p $RPM_BUILD_ROOT/%{python_sitearch} -mv $RPM_BUILD_ROOT/usr/lib/python%{python_version}/site-packages/talloc.so \ - $RPM_BUILD_ROOT/%{python_sitearch} +if [ ! -e $RPM_BUILD_ROOT/%{python_sitearch}/talloc.so ]; then + mkdir -p $RPM_BUILD_ROOT/%{python_sitearch} + mv $RPM_BUILD_ROOT/usr/lib/python%{python_version}/site-packages/talloc.so \ + $RPM_BUILD_ROOT/%{python_sitearch} +fi %clean rm -rf $RPM_BUILD_ROOT @@ -100,6 +102,9 @@ rm -rf $RPM_BUILD_ROOT /sbin/ldconfig %changelog +* Tue Jan 11 2011 Stephen Gallagher - 2.0.5-4 +- Fix build failure on 32-bit platforms + * Tue Jan 11 2011 Stephen Gallagher - 2.0.5-3 - New version from upstream - Add support for pytalloc