2 Commits

3 changed files with 24 additions and 3 deletions

11
wdiff-gcc15.patch Normal file
View File

@@ -0,0 +1,11 @@
--- wdiff-1.2.2/src/mdiff.c 2014-04-14 22:05:53.000000000 +0200
+++ wdiff-1.2.2/src/mdiff.c 2025-02-19 15:54:26.678366353 +0100
@@ -53,8 +53,6 @@
#include <ctype.h>
#include <string.h>
-char *strstr ();
-
#if HAVE_TPUTS
# if HAVE_TERMCAP_H
# include <termcap.h>

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Feb 19 15:01:43 UTC 2025 - pgajdos@suse.com
- added patches
fix build with gcc15
+ wdiff-gcc15.patch
-------------------------------------------------------------------
Thu Jan 13 09:36:35 UTC 2022 - Ludwig Nussel <lnussel@suse.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package wdiff
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,10 +26,13 @@ URL: https://www.gnu.org/software/wdiff/
Source0: https://ftp.gnu.org/gnu/wdiff/wdiff-%{version}.tar.gz
Source1: https://ftp.gnu.org/gnu/wdiff/wdiff-%{version}.tar.gz.sig
Source2: %{name}.keyring
# build with gcc15
Patch0: wdiff-gcc15.patch
BuildRequires: help2man
BuildRequires: makeinfo
BuildRequires: ncurses-devel
Requires(post): %{install_info_prereq}
Requires(preun):%{install_info_prereq}
Requires(preun): %{install_info_prereq}
%description
wdiff compares two files and finds which words have been deleted or
@@ -41,7 +44,7 @@ Xwdiff is a handy X Window System front-end, based on Tcl/Tk.
%lang_package
%prep
%setup -q
%autosetup -p1
%build
%configure \