[packages/libsrs_alt] Rel 6
arekm
arekm at pld-linux.org
Sun Mar 15 17:01:47 CET 2026
commit 1f16ff4d88ca6ebaf6080ae5ba1ab94345575c59
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Mar 15 17:01:37 2026 +0100
Rel 6
libsrs_alt-fix-incompatible-pointer-types.patch | 54 +++++++++++++++++++++++++
libsrs_alt-fix-missing-includes.patch | 17 ++++++++
libsrs_alt.spec | 8 +++-
3 files changed, 77 insertions(+), 2 deletions(-)
---
diff --git a/libsrs_alt.spec b/libsrs_alt.spec
index 8f2e2a2..83799ef 100644
--- a/libsrs_alt.spec
+++ b/libsrs_alt.spec
@@ -2,11 +2,13 @@ Summary: Implementation of the SRS specification
Summary(pl.UTF-8): Implementacja specyfikacji SRS
Name: libsrs_alt
Version: 1.0
-Release: 5
-License: GPL
+Release: 6
+License: GPL v2
Group: Libraries
Source0: http://opsec.eu/src/srs/%{name}-%{version}.tar.bz2
# Source0-md5: 6d1539eeba08dffe83f92ac38e229dda
+Patch0: %{name}-fix-incompatible-pointer-types.patch
+Patch1: %{name}-fix-missing-includes.patch
URL: http://opsec.eu/src/srs/
BuildRequires: autoconf >= 2.59
BuildRequires: automake
@@ -48,6 +50,8 @@ Statyczna biblioteka libsrs_alt.
%prep
%setup -q
+%patch -P0 -p1
+%patch -P1 -p1
%build
%{__libtoolize}
diff --git a/libsrs_alt-fix-incompatible-pointer-types.patch b/libsrs_alt-fix-incompatible-pointer-types.patch
new file mode 100644
index 0000000..38ada4f
--- /dev/null
+++ b/libsrs_alt-fix-incompatible-pointer-types.patch
@@ -0,0 +1,54 @@
+--- libsrs_alt-1.0.orig/lib/sha1.c 2006-11-20 22:47:42.000000000 +0100
++++ libsrs_alt-1.0/lib/sha1.c 2026-03-15 16:12:26.269895230 +0100
+@@ -15,6 +15,11 @@
+
+ #include <string.h>
+
++static int mSHA1_start_void(void *ctx);
++static int mSHA1_block_void(void *ctx, unsigned char *block);
++static int mSHA1_process_void(void *ctx, unsigned char *data, int data_len);
++static int mSHA1_end_void(void *ctx, unsigned char *hash_buffer);
++
+ #include "sha1.h"
+
+
+@@ -24,10 +29,10 @@
+ 64,
+ 20,
+ sizeof(mSHA1),
+- mSHA1_start,
+- mSHA1_block,
+- mSHA1_process,
+- mSHA1_end
++ mSHA1_start_void,
++ mSHA1_block_void,
++ mSHA1_process_void,
++ mSHA1_end_void
+ };
+
+
+@@ -236,3 +241,24 @@
+ }
+
+
++static int mSHA1_start_void(void *ctx)
++{
++ return mSHA1_start((mSHA1 *)ctx);
++}
++
++static int mSHA1_block_void(void *ctx, unsigned char *block)
++{
++ return mSHA1_block((mSHA1 *)ctx, block);
++}
++
++static int mSHA1_process_void(void *ctx, unsigned char *data, int data_len)
++{
++ return mSHA1_process((mSHA1 *)ctx, data, data_len);
++}
++
++static int mSHA1_end_void(void *ctx, unsigned char *hash_buffer)
++{
++ return mSHA1_end((mSHA1 *)ctx, hash_buffer);
++}
++
++
diff --git a/libsrs_alt-fix-missing-includes.patch b/libsrs_alt-fix-missing-includes.patch
new file mode 100644
index 0000000..e8827ab
--- /dev/null
+++ b/libsrs_alt-fix-missing-includes.patch
@@ -0,0 +1,17 @@
+--- libsrs_alt-1.0.orig/test.c 2005-03-31 13:53:29.000000000 +0200
++++ libsrs_alt-1.0/test.c 2026-03-15 16:13:48.731779353 +0100
+@@ -1,3 +1,4 @@
++#include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+ #include <time.h>
+--- libsrs_alt-1.0.orig/srs.c 2005-04-02 01:23:18.000000000 +0200
++++ libsrs_alt-1.0/srs.c 2026-03-15 16:13:52.130305960 +0100
+@@ -22,6 +22,7 @@
+ #include <unistd.h>
+ #include <errno.h>
+ #include <signal.h>
++#include <sys/wait.h>
+
+
+ #include "src/srs_alt.h"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libsrs_alt.git/commitdiff/1f16ff4d88ca6ebaf6080ae5ba1ab94345575c59
More information about the pld-cvs-commit
mailing list