diff --git a/dicts-gcc15.patch b/dicts-gcc15.patch new file mode 100644 index 0000000..0559e4f --- /dev/null +++ b/dicts-gcc15.patch @@ -0,0 +1,19 @@ +--- fix8bit.c.orig 2025-03-07 12:17:09.466931076 +0000 ++++ fix8bit.c 2025-03-07 12:17:58.066416164 +0000 +@@ -77,14 +77,12 @@ static char Rcs_Id[] = + + #include + #include ++#include + +-int main (); /* Convert to/from 8-bit sequences */ + static void usage (); /* Issue a usage message */ + static void to7bit (); /* Convert from 8-bit sequences */ + static void to8bit (); /* Convert to 8-bit sequences */ + +-extern void exit (); /* Terminate program */ +- + int main (argc, argv) /* Convert to/from 8-bit sequences */ + int argc; /* Argument count */ + char * argv[]; /* Argument vector */ + diff --git a/dicts.changes b/dicts.changes index 511df33..3cc1fe5 100644 --- a/dicts.changes +++ b/dicts.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Mar 7 12:35:20 UTC 2025 - pgajdos@suse.com + +- build with gcc15 +- added patches + + dicts-gcc15.patch + ------------------------------------------------------------------- Mon Feb 26 08:08:01 UTC 2024 - Dominique Leuenberger diff --git a/dicts.spec b/dicts.spec index 69ad78a..a3adee8 100644 --- a/dicts.spec +++ b/dicts.spec @@ -1,7 +1,7 @@ # # spec file for package dicts # -# Copyright (c) 2023 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 @@ -53,6 +53,7 @@ Source19: finnish.tar.bz2 Source20: estonian.tar.bz2 Source21: dicts-rpmlintrc Patch0: prepare-dicts.dif +Patch1: dicts-gcc15.patch %global debug_package %{nil} %description @@ -410,6 +411,7 @@ the package dicts. make -f Makefile.Linux extract rm Makefile.Linux %patch -P 0 -p0 -b .pdicts +%patch -P 1 -p0 # unify the permissions of all files, to make fdupes working again (bnc#784670) find . -type f -exec chmod 0644 {} +