[packages/libmimedir-vlm] Rel 3
arekm
arekm at pld-linux.org
Sun Mar 15 10:49:09 CET 2026
commit 83e6366c4df72c275133efc1be8f921f516148dd
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Mar 15 10:49:01 2026 +0100
Rel 3
libmimedir-vlm-c99.patch | 39 +++++++++++++++++++++++++++++++++++++++
libmimedir-vlm.spec | 7 +++++--
2 files changed, 44 insertions(+), 2 deletions(-)
---
diff --git a/libmimedir-vlm.spec b/libmimedir-vlm.spec
index 9b6ca7a..5e98a2d 100644
--- a/libmimedir-vlm.spec
+++ b/libmimedir-vlm.spec
@@ -4,12 +4,13 @@ Summary: RFC 2425 implementation
Summary(pl.UTF-8): Implementacja RFC 2425
Name: libmimedir-vlm
Version: 0.5.1
-Release: 2
+Release: 3
License: BSD
Group: Libraries
Source0: http://downloads.sourceforge.net/libmimedir/libmimedir-%{version}.tar.gz
# Source0-md5: 6e4df3be7f637496ffb1707589b3e4d2
Patch0: %{name}-shared.patch
+Patch1: %{name}-c99.patch
URL: http://libmimedir.sourceforge.net/
BuildRequires: bison
BuildRequires: flex
@@ -50,6 +51,8 @@ Statyczna biblioteka libmimedir.
%prep
%setup -q -n libmimedir-%{version}
%patch -P0 -p1
+%patch -P1 -p1
+touch dirsynt.c dirsynt.h dirlex.c
%build
%configure
@@ -67,7 +70,7 @@ rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%files
+%files
%defattr(644,root,root,755)
%doc COPYING ChangeLog README
%attr(755,root,root) %{_libdir}/libmimedir-vlm.so.*.*.*
diff --git a/libmimedir-vlm-c99.patch b/libmimedir-vlm-c99.patch
new file mode 100644
index 0000000..f0e67b1
--- /dev/null
+++ b/libmimedir-vlm-c99.patch
@@ -0,0 +1,39 @@
+diff -urN libmimedir-0.5.1.orig/dirsynt.c libmimedir-0.5.1/dirsynt.c
+--- libmimedir-0.5.1.orig/dirsynt.c 2003-07-31 17:05:26.000000000 +0200
++++ libmimedir-0.5.1/dirsynt.c 2026-03-15 02:13:49.560427473 +0100
+@@ -123,7 +123,7 @@
+
+ #define _mdir_error(foo) _mdir_mem_forget(arg, 1)
+
+-int yylex();
++int yylex(void *, void *);
+
+ /*
+ * Length of the token.
+diff -urN libmimedir-0.5.1.orig/intern.h libmimedir-0.5.1/intern.h
+--- libmimedir-0.5.1.orig/intern.h 2005-03-03 21:35:26.000000000 +0100
++++ libmimedir-0.5.1/intern.h 2026-03-15 02:13:49.557697891 +0100
+@@ -34,7 +34,7 @@
+ #ifdef HAVE_SYS_TYPES_H
+ #include <sys/types.h>
+ #endif
+-#ifdef STDC_HEADERS
++#if 1 /* always include stdlib.h */
+ #include <stdlib.h>
+ #endif
+ #ifdef HAVE_UNISTD_H
+diff -urN libmimedir-0.5.1.orig/parse.c libmimedir-0.5.1/parse.c
+--- libmimedir-0.5.1.orig/parse.c 2005-03-03 21:35:27.000000000 +0100
++++ libmimedir-0.5.1/parse.c 2026-03-15 02:13:49.569395245 +0100
+@@ -35,9 +35,9 @@
+ void _mdir__delete_buffer(void *);
+ void _mdir_restart(FILE *);
+
+-int _mdir_lex();
++int _mdir_lex(YYSTYPE *yylval_param, void *arg);
+
+-int _mdir_parse(mdir_line ***);
++int _mdir_parse(void *);
+
+ mdir_line **
+ mdir_parse(char *block) {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libmimedir-vlm.git/commitdiff/83e6366c4df72c275133efc1be8f921f516148dd
More information about the pld-cvs-commit
mailing list