[packages/cwtext] Rel 3

arekm arekm at pld-linux.org
Thu May 21 14:57:08 CEST 2026


commit ca026d977019280909dbeb0caaa19de2fbab5fdb
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 14:56:51 2026 +0200

    Rel 3

 cwtext-modern-c.patch | 21 +++++++++++++++++++++
 cwtext-nostrip.patch  | 15 +++++++++++++++
 cwtext.spec           |  6 +++++-
 3 files changed, 41 insertions(+), 1 deletion(-)
---
diff --git a/cwtext.spec b/cwtext.spec
index 506094b..a2fc785 100644
--- a/cwtext.spec
+++ b/cwtext.spec
@@ -2,11 +2,13 @@ Summary:	ASCII to International Morse Code converter
 Summary(pl.UTF-8):	Konwerter ASCII do Międzynarodowego Kodu Morse'a
 Name:		cwtext
 Version:	0.96
-Release:	2
+Release:	3
 License:	GPL v2
 Group:		Applications
 Source0:	http://dl.sourceforge.net/cwtext/%{name}-%{version}.tar.gz
 # Source0-md5:	d5083cd92d255fba6ff425fbd68aa405
+Patch0:		%{name}-modern-c.patch
+Patch1:		%{name}-nostrip.patch
 URL:		http://cwtext.sourceforge.net/index.php
 BuildRequires:	python
 BuildRequires:	python-modules
@@ -22,6 +24,8 @@ Konwerter ASCII do Międzynarodowego Kodu Morse'a.
 
 %prep
 %setup -q
+%patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %{__make} \
diff --git a/cwtext-modern-c.patch b/cwtext-modern-c.patch
new file mode 100644
index 0000000..a4b2b01
--- /dev/null
+++ b/cwtext-modern-c.patch
@@ -0,0 +1,21 @@
+--- cwtext-0.96.org/morse.c	2026-05-20 23:36:06.855598664 +0200
++++ cwtext-0.96/morse.c	2026-05-20 23:36:10.092884007 +0200
+@@ -18,6 +18,7 @@
+ */
+ 
+ #include <stdio.h>
++#include <ctype.h>
+ 
+ #include "cw.h"
+ #include "morse.h"
+--- cwtext-0.96.org/pcm.c	2026-05-20 23:36:06.857824424 +0200
++++ cwtext-0.96/pcm.c	2026-05-20 23:36:15.089104574 +0200
+@@ -60,7 +60,7 @@
+   float samples;
+   float fsr;
+   
+-  if (!valid(hVox)) return;
++  if (!valid(hVox)) return 0;
+ 
+   timelen = (float) time;
+   fsr = (float) voxref(hVox).samplerate;
diff --git a/cwtext-nostrip.patch b/cwtext-nostrip.patch
new file mode 100644
index 0000000..96ca9cc
--- /dev/null
+++ b/cwtext-nostrip.patch
@@ -0,0 +1,15 @@
+--- cwtext-0.96.org/makefile	2026-05-20 23:36:56.233282508 +0200
++++ cwtext-0.96/makefile	2026-05-20 23:36:59.762884007 +0200
+@@ -3,9 +3,9 @@
+ ALL: cwtext cwpcm cwmm
+ 
+ install: ALL
+-	install -sc cwtext ${PREFIX}/bin
+-	install -sc cwpcm ${PREFIX}/bin
+-	install -sc cwmm ${PREFIX}/bin
++	install -c cwtext ${PREFIX}/bin
++	install -c cwpcm ${PREFIX}/bin
++	install -c cwmm ${PREFIX}/bin
+ 
+ cwmm: cwmm.o morse.o
+ 	${CC} ${CFLAGS} -o cwmm $^
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cwtext.git/commitdiff/ca026d977019280909dbeb0caaa19de2fbab5fdb



More information about the pld-cvs-commit mailing list