[libtalloc] - Fix build failure on 32-bit platforms

Stephen Gallagher sgallagh at fedoraproject.org
Tue Jan 11 21:27:33 UTC 2011


commit 65a0512242d20c28d84b26dc71b302ecb449c36d
Author: Stephen Gallagher <sgallagh at redhat.com>
Date:   Tue Jan 11 16:27:22 2011 -0500

    - Fix build failure on 32-bit platforms

 libtalloc.spec |   13 +++++++++----
 1 files 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 <sgallagh at redhat.com> - 2.0.5-4
+- Fix build failure on 32-bit platforms
+
 * Tue Jan 11 2011 Stephen Gallagher <sgallagh at redhat.com> - 2.0.5-3
 - New version from upstream
 - Add support for pytalloc


More information about the scm-commits mailing list