[packages/chmlib] Rel 5

arekm arekm at pld-linux.org
Wed May 20 21:03:25 CEST 2026


commit 02a387cbb9555e9980e0bcd155f58cc53dcd26f6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed May 20 21:03:09 2026 +0200

    Rel 5

 chmlib-includes.patch  | 43 +++++++++++++++++++++++++++++++++++++++++++
 chmlib-morearchs.patch |  6 +++---
 chmlib.spec            |  4 +++-
 3 files changed, 49 insertions(+), 4 deletions(-)
---
diff --git a/chmlib.spec b/chmlib.spec
index 0b19043..ef2b2f4 100644
--- a/chmlib.spec
+++ b/chmlib.spec
@@ -2,12 +2,13 @@ Summary:	chmlib - library designed for accessing MS ITSS files
 Summary(pl.UTF-8):	chmlib - biblioteka pozwalająca na dostęp do plików MS ITSS
 Name:		chmlib
 Version:	0.40
-Release:	4
+Release:	5
 License:	LGPL v2.1+
 Group:		Libraries
 Source0:	http://www.jedrea.com/chmlib/%{name}-%{version}.tar.gz
 # Source0-md5:	96b8e9ac52015902941862171f5daa4c
 Patch0:		%{name}-morearchs.patch
+Patch1:		%{name}-includes.patch
 URL:		http://www.jedrea.com/chmlib/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -54,6 +55,7 @@ Statyczna wersja chmlib.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 cp -f /usr/share/automake/config.* .
diff --git a/chmlib-includes.patch b/chmlib-includes.patch
new file mode 100644
index 0000000..0a2d098
--- /dev/null
+++ b/chmlib-includes.patch
@@ -0,0 +1,43 @@
+--- chmlib-0.40/src/chm_http.c.orig
++++ chmlib-0.40/src/chm_http.c
+@@ -43,6 +43,8 @@
+ #include <sys/socket.h>
+ #include <sys/types.h>
+ #include <netinet/in.h>
++#include <arpa/inet.h>
++#include <unistd.h>
+ 
+ /* threading includes */
+ #include <pthread.h>
+--- chmlib-0.40/src/chm_lib.c.orig
++++ chmlib-0.40/src/chm_lib.c
+@@ -48,6 +48,12 @@
+  *                                                                         *
+  ***************************************************************************/
+ 
++/* feature test macros must be defined before any system header is pulled in */
++#ifndef WIN32
++#define _XOPEN_SOURCE 500
++#define _LARGEFILE64_SOURCE
++#endif
++
+ #include "chm_lib.h"
+ 
+ #ifdef CHM_MT
+@@ -62,7 +68,7 @@
+ #include <stdio.h>
+ #endif
+ 
+-#if __sun || __sgi
++#ifndef WIN32
+ #include <strings.h>
+ #endif
+ 
+@@ -78,7 +84,6 @@
+ #endif
+ #else
+ /* basic Linux system includes */
+-#define _XOPEN_SOURCE 500
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
diff --git a/chmlib-morearchs.patch b/chmlib-morearchs.patch
index 59a7bbd..a5fcc74 100644
--- a/chmlib-morearchs.patch
+++ b/chmlib-morearchs.patch
@@ -1,6 +1,6 @@
---- chmlib-0.36/src/chm_lib.c.orig	2005-09-09 14:42:27.000000000 +0200
-+++ chmlib-0.36/src/chm_lib.c	2005-09-19 14:26:33.000000000 +0200
-@@ -160,14 +160,15 @@
+--- chmlib-0.40/src/chm_lib.c.orig
++++ chmlib-0.40/src/chm_lib.c
+@@ -153,14 +153,15 @@
  /* Sparc        */
  /* MIPS         */
  /* PPC          */
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/chmlib.git/commitdiff/02a387cbb9555e9980e0bcd155f58cc53dcd26f6



More information about the pld-cvs-commit mailing list