[packages/clit] Rel 5

arekm arekm at pld-linux.org
Wed May 20 21:04:43 CEST 2026


commit 56f34650a4570164bd28fdf9ff6306f9db6fdc76
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed May 20 21:04:27 2026 +0200

    Rel 5

 clit-implicit-decl.patch | 85 ++++++++++++++++++++++++++++++++++++++++++++++++
 clit.spec                | 12 ++++---
 2 files changed, 92 insertions(+), 5 deletions(-)
---
diff --git a/clit.spec b/clit.spec
index c51a402..dd8f51f 100644
--- a/clit.spec
+++ b/clit.spec
@@ -3,13 +3,14 @@ Summary:	Open Convert-.LIT tool
 Summary(pl.UTF-8):	Otwarte narzędzie do rozpakowywania plików .LIT
 Name:		clit
 Version:	1.8
-Release:	4
+Release:	5
 License:	GPL v2+
 Group:		Applications/Archiving
-Source0:	http://www.kyz.uklinux.net/downloads/open_c-lit-%{version}.tar.gz
+Source0:	https://www.kyzer.me.uk/pack/convlit/open_c-lit-%{version}.tar.gz
 # Source0-md5:	d8c599cf0e3cd8bab08e455e51ef852d
 Patch0:		%{name}-format.patch
-URL:		http://www.kyz.uklinux.net/convlit.php
+Patch1:		%{name}-implicit-decl.patch
+URL:		https://www.kyzer.me.uk/pack/convlit/
 BuildRequires:	libtommath-devel
 BuildRequires:	sed >= 4.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -27,16 +28,17 @@ być pogwałceniem DMCA.
 %prep
 %setup -q -c
 %patch -P0 -p1
+%patch -P1 -p1
 
 sed -i -e 's/gcc -o clit.*/$(CC) -o clit $^ -ltommath/' %{name}%{xver}/Makefile
 
 %build
 %{__make} -C lib \
 	CC="%{__cc}" \
-	CFLAGS="%{rpmcflags} -Wall -Ides -Isha -Inewlzx -I."
+	CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -Ides -Isha -Inewlzx -I."
 %{__make} -C %{name}%{xver} \
 	CC="%{__cc}" \
-	CFLAGS="%{rpmcflags} -funsigned-char -Wall -I../lib -I../lib/des -I."
+	CFLAGS="%{rpmcflags} %{rpmcppflags} -funsigned-char -Wall -I../lib -I../lib/des -I."
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/clit-implicit-decl.patch b/clit-implicit-decl.patch
new file mode 100644
index 0000000..d9f8f8d
--- /dev/null
+++ b/clit-implicit-decl.patch
@@ -0,0 +1,85 @@
+--- clit-1.8/lib/newlzx/lzxglue.c.orig
++++ clit-1.8/lib/newlzx/lzxglue.c
+@@ -28,6 +28,7 @@
+  */
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include "litlib.h"
+ #include "mspack.h"
+ #include "lzx.h"
+--- clit-1.8/lib/newlzx/lzx.h.orig
++++ clit-1.8/lib/newlzx/lzx.h
+@@ -166,4 +166,10 @@
+  */
+ void lzxd_free(struct lzxd_stream *lzx);
+ 
++/* glue wrappers implemented in lzxglue.c */
++extern int LZXinit(int window);
++extern void LZXreset(void);
++extern int LZXdecompress(unsigned char *inbuf, unsigned char *outbuf,
++    unsigned int inlen, unsigned int outlen);
++
+ #endif
+--- clit-1.8/clit18/display.c.orig
++++ clit-1.8/clit18/display.c
+@@ -22,6 +22,7 @@
+ */
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include "litlib.h"
+ 
+ extern void hexdump( unsigned char * ptr, int size );
+--- clit-1.8/clit18/transmute.c.orig
++++ clit-1.8/clit18/transmute.c
+@@ -22,6 +22,7 @@
+ */
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include "litlib.h"
+ 
+ extern char * writingFilename;
+--- clit-1.8/clit18/hexdump.c.orig
++++ clit-1.8/clit18/hexdump.c
+@@ -16,6 +16,7 @@
+ #include <ctype.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ 
+ typedef unsigned char byte;
+ 
+--- clit-1.8/clit18/manifest.c.orig
++++ clit-1.8/clit18/manifest.c
+@@ -23,6 +23,7 @@
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include "litlib.h"
+ #include "manifest.h"
+ #include "utils.h"
+--- clit-1.8/clit18/explode.c.orig
++++ clit-1.8/clit18/explode.c
+@@ -33,6 +33,9 @@
+ #include <direct.h>
+ #define mkdir(x,y) _mkdir(x)
+ #define strncasecmp _strnicmp
++#else
++#include <sys/stat.h>
++#include <sys/types.h>
+ #endif
+ 
+ /*
+--- clit-1.8/clit18/drm5.c.orig
++++ clit-1.8/clit18/drm5.c
+@@ -31,6 +31,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <assert.h>
++#include <ctype.h>
+ #include "litlib.h"
+ #include "utils.h"
+ #include "d3des.h"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/clit.git/commitdiff/56f34650a4570164bd28fdf9ff6306f9db6fdc76



More information about the pld-cvs-commit mailing list