[libtalloc] - Let rpmbuild strip binaries, make build more verbose. - Resolves rhbz#669477 - libtalloc 2.0.5-6 b

Stephen Gallagher sgallagh at fedoraproject.org
Fri Jan 14 12:52:28 UTC 2011


commit 464d55ba8c783597d915ebdff4d2de671c66dc6e
Author: Stephen Gallagher <sgallagh at redhat.com>
Date:   Fri Jan 14 07:52:18 2011 -0500

    - Let rpmbuild strip binaries, make build more verbose.
    - Resolves rhbz#669477 - libtalloc 2.0.5-6 binaries not stripped,
    -                        empty -debuginfo
    - Original patch by Ville Skyttä <ville.skytta at iki.fi>

 libtalloc.spec |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/libtalloc.spec b/libtalloc.spec
index 91d6728..ddd5acf 100644
--- a/libtalloc.spec
+++ b/libtalloc.spec
@@ -6,7 +6,7 @@
 
 Name: libtalloc
 Version: 2.0.5
-Release: 6%{?dist}
+Release: 7%{?dist}
 Group: System Environment/Daemons
 Summary: The talloc library
 License: LGPLv3+
@@ -57,13 +57,17 @@ Development libraries for pytalloc
 %build
 ./autogen.sh
 %configure --disable-rpath --bundled-libraries=NONE
-make %{?_smp_mflags}
+make %{?_smp_mflags} V=1
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 make install DESTDIR=$RPM_BUILD_ROOT
 
+# Shared libraries need to be marked executable for
+# rpmbuild to strip them and include them in debuginfo
+find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \;
+
 rm -f $RPM_BUILD_ROOT%{_libdir}/libtalloc.a
 rm -f $RPM_BUILD_ROOT/usr/share/swig/*/talloc.i
 
@@ -100,6 +104,12 @@ rm -rf $RPM_BUILD_ROOT
 %postun -n pytalloc -p /sbin/ldconfig
 
 %changelog
+* Thu Jan 14 2011 Stephen Gallagher <sgallagh at redhat.com> - 2.0.5-7
+- Let rpmbuild strip binaries, make build more verbose.
+- Resolves rhbz#669477 - libtalloc 2.0.5-6 binaries not stripped,
+-                        empty -debuginfo
+- Original patch by Ville Skyttä <ville.skytta at iki.fi>
+
 * Wed Jan 12 2011 Stephen Gallagher <sgallagh at redhat.com> - 2.0.5-6
 - Install python bindings in the correct location
 


More information about the scm-commits mailing list