commit 7b12839be8908e3263e13ce2f2f0ce18dc9fd031
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Tue Feb 6 22:18:26 2024 +0000
fix
buildfix.patch | 29 +++++++++++++++++++++++++++++
streamripper.spec | 5 +++--
2 files changed, 32 insertions(+), 2 deletions(-)
---
diff --git a/buildfix.patch b/buildfix.patch
new file mode 100644
index 0000000..5f6a7aa
--- /dev/null
+++ b/buildfix.patch
@@ -0,0 +1,29 @@
+--- a/lib/argv.c
++++ b/lib/argv.c
+@@ -52,25 +52,9 @@
+
+ /* Routines imported from standard C runtime libraries. */
+
+-#ifdef ANSI_PROTOTYPES
+-
+ #include <stddef.h>
+ #include <string.h>
+ #include <stdlib.h>
+-
+-#else /* !ANSI_PROTOTYPES */
+-
+-#if !defined _WIN32 || defined __GNUC__
+-extern char *memcpy (); /* Copy memory region */
+-extern int strlen (); /* Count length of string */
+-extern char *malloc (); /* Standard memory allocater */
+-extern char *realloc (); /* Standard memory reallocator */
+-extern void free (); /* Free malloc'd memory */
+-extern char *strdup (); /* Duplicate a string */
+-#endif
+-
+-#endif /* ANSI_PROTOTYPES */
+-
+
+ #ifndef NULL
+ #define NULL 0
+
diff --git a/streamripper.spec b/streamripper.spec
index af0d0fe..e39b4ad 100644
--- a/streamripper.spec
+++ b/streamripper.spec
@@ -7,7 +7,8 @@ Version: 1.64.6
Release: 22%{?dist}
URL:
http://streamripper.sourceforge.net/
License: GPLv2
-Source0:
http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Source0:
http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Patch0: buildfix.patch
BuildRequires: gcc
BuildRequires: libogg-devel
@@ -28,7 +29,7 @@ as individual files. In addition, streamripper includes a relay server
for listening to the station while you are recording.
%prep
-%setup -q
+%autosetup -p1
chmod 0644 ./lib/charset.h
%build