[mspdebug] - Do not strip binary in install (RH 625501) - simplify %setup - use %{version} in Source0

Till Maas till at fedoraproject.org
Thu Aug 19 18:21:31 UTC 2010


commit 0784a658a7bbce74e9813218eed39f1773259563
Author: Till Maas <opensource at till.name>
Date:   Thu Aug 19 20:21:24 2010 +0200

    - Do not strip binary in install (RH 625501)
    - simplify %setup
    - use %{version} in Source0

 0001-Move-stripping-from-install-to-LDFLAGS.patch |   36 +++++++++++++++++++++
 mspdebug.spec                                     |   14 ++++++--
 2 files changed, 47 insertions(+), 3 deletions(-)
---
diff --git a/0001-Move-stripping-from-install-to-LDFLAGS.patch b/0001-Move-stripping-from-install-to-LDFLAGS.patch
new file mode 100644
index 0000000..c78f26b
--- /dev/null
+++ b/0001-Move-stripping-from-install-to-LDFLAGS.patch
@@ -0,0 +1,36 @@
+From ea0eb3d7042772b2014635edbafaa503df33b59a Mon Sep 17 00:00:00 2001
+From: Till Maas <opensource at till.name>
+Date: Thu, 19 Aug 2010 20:12:24 +0200
+Subject: [PATCH] Move stripping from install to LDFLAGS
+
+This allows to easily build and install an unstripped binary, e.g. for Fedora
+where stripping is performed by the build system to store the removed
+information in a debuginfo subpackage.
+---
+ Makefile |    3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index bfd18fd..7145c26 100644
+--- a/Makefile
++++ b/Makefile
+@@ -18,6 +18,7 @@
+ CC = gcc
+ INSTALL = /usr/bin/install
+ PREFIX ?= /usr/local
++LDFLAGS ?= -s
+ 
+ ifdef WITHOUT_READLINE
+ 	READLINE_CFLAGS =
+@@ -48,7 +49,7 @@ clean:
+ install: mspdebug mspdebug.man
+ 	mkdir -p $(DESTDIR)$(PREFIX)/bin
+ 	mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
+-	$(INSTALL) -m 0755 -s mspdebug $(DESTDIR)$(PREFIX)/bin/mspdebug
++	$(INSTALL) -m 0755 mspdebug $(DESTDIR)$(PREFIX)/bin/mspdebug
+ 	$(INSTALL) -m 0644 mspdebug.man $(DESTDIR)$(PREFIX)/share/man/man1/mspdebug.1
+ 
+ .SUFFIXES: .c .o
+-- 
+1.7.2.1
+
diff --git a/mspdebug.spec b/mspdebug.spec
index 8eb60ec..372430a 100644
--- a/mspdebug.spec
+++ b/mspdebug.spec
@@ -1,11 +1,13 @@
 Name:		mspdebug
 Version:	0.10
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Debugger and gdb proxy for MSP430 MCUs
 Group:		Development/Tools
 License:	GPLv2+
 URL:		http://mspdebug.sourceforge.net/
-Source0:	https://downloads.sourceforge.net/project/mspdebug/mspdebug-0.10.tar.gz
+Source0:	https://downloads.sourceforge.net/project/mspdebug/mspdebug-%{version}.tar.gz
+# 2010-08-19: sent upstream via private e-mail by till
+Patch0:		0001-Move-stripping-from-install-to-LDFLAGS.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:	libusb-devel
 BuildRequires:	readline-devel
@@ -17,7 +19,8 @@ gdb or as an independent debugger with support for programming,
 disassembly and reverse engineering.
 
 %prep
-%setup -q -n mspdebug-0.10
+%setup -q
+%patch0 -p1 -b .Move-stripping-from-install-to-LDFLAGS
 
 %build
 # add -DDEBUG_GDB to CFLAGS for gdb debugging output
@@ -37,6 +40,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/mspdebug.1*
 
 %changelog
+* Thu Aug 19 2010 Till Maas <opensource at till.name> - 0.10-2
+- Do not strip binary in install (RH 625501)
+- simplify %%setup
+- use %%{version} in Source0
+
 * Tue Aug 17 2010 Rob Spanton <rspanton at zepler.net> - 0.10-1
 - Bump up to 0.10
 


More information about the scm-commits mailing list