[packages/ispell] - disable binaries stripping

qboosh qboosh at pld-linux.org
Sat Dec 16 21:22:40 CET 2023


commit e2acde2a77f55ccef0baabebc2f2583869d63672
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 16 21:11:29 2023 +0100

    - disable binaries stripping

 ispell-nostrip.patch | 18 ++++++++++++++++++
 ispell.spec          | 12 ++++++------
 2 files changed, 24 insertions(+), 6 deletions(-)
---
diff --git a/ispell.spec b/ispell.spec
index 26a2b87..642e6e6 100644
--- a/ispell.spec
+++ b/ispell.spec
@@ -14,7 +14,8 @@ Source0:	http://fmg-www.cs.ucla.edu/geoff/tars/%{name}-%{version}.tar.gz
 # Source0-md5:	12087d7555fc2b746425cd167af480fe
 Source1:	spell
 Source2:	%{name}-local.h
-Patch0:		ispell-3.3.02-glibc-2.10.patch
+Patch0:		%{name}-3.3.02-glibc-2.10.patch
+Patch1:		%{name}-nostrip.patch
 URL:		http://ficus-www.cs.ucla.edu/geoff/ispell.html
 BuildRequires:	bison
 BuildRequires:	ncurses-devel
@@ -22,8 +23,6 @@ Conflicts:	vim-ispell <= 4:6.1.212-4
 Conflicts:	ispell-pl < 20021127-2
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_debugsource_packages	0
-
 %description
 This is the interactive spelling checker. You can run it on text files
 and it will interactively spell check. This means it will tell you
@@ -88,6 +87,7 @@ Angielski słownik (lista słów) dla ispella.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 install %{SOURCE2} local.h
 sed -i -e 's#define[ \t]CC[ \t].*#define CC "%{__cc}"#g' local.h
@@ -116,7 +116,7 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_mandir},%{_infodir},%{_libdir}/{%{name},emacs/site-lisp}}
 
 # Roll in the build-root'ed version (with time-stamp!)
-mv -f config.sh.INSTALL config.sh
+%{__mv} config.sh.INSTALL config.sh
 PATH=.:$PATH %{__make} -j1 install
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
@@ -124,10 +124,10 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post	-p	/sbin/postshell
+%post	-p /sbin/postshell
 -/usr/sbin/fix-info-dir -c %{_infodir}
 
-%postun	-p	/sbin/postshell
+%postun	-p /sbin/postshell
 -/usr/sbin/fix-info-dir -c %{_infodir}
 
 %files
diff --git a/ispell-nostrip.patch b/ispell-nostrip.patch
new file mode 100644
index 0000000..8c15c03
--- /dev/null
+++ b/ispell-nostrip.patch
@@ -0,0 +1,18 @@
+--- ispell-3.3.02/Makefile.orig	2005-05-25 15:57:02.000000000 +0200
++++ ispell-3.3.02/Makefile	2023-12-16 21:06:36.230691971 +0100
+@@ -307,7 +307,6 @@ install-basic:
+ 	@. ./config.sh; \
+ 	  set -x; \
+ 	  cd $$BINDIR; \
+-	  strip ispell$$EXEEXT; \
+ 	  chmod 755 ispell$$EXEEXT
+ 	@. ./config.sh; \
+ 	  set -x; \
+@@ -362,7 +361,6 @@ install-dictbuild:
+ 	@. ./config.sh; \
+ 	  set -x; \
+ 	  cd $$BINDIR; \
+-	  strip buildhash$$EXEEXT icombine$$EXEEXT ijoin$$EXEEXT; \
+ 	  chmod 755 buildhash$$EXEEXT icombine$$EXEEXT ijoin$$EXEEXT \
+ 	    munchlist findaffix tryaffix
+ 	@. ./config.sh; \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ispell.git/commitdiff/e2acde2a77f55ccef0baabebc2f2583869d63672



More information about the pld-cvs-commit mailing list