4 Commits

8 changed files with 38 additions and 40 deletions

Binary file not shown.

Binary file not shown.

3
gperf-3.3.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fd87e0aba7e43ae054837afd6cd4db03a3f2693deb3619085e6ed9d8d9604ad8
size 1831294

7
gperf-3.3.tar.gz.sig Normal file
View File

@@ -0,0 +1,7 @@
-----BEGIN PGP SIGNATURE-----
iHUEABYKAB0WIQTg/72XU5f3ejKrduy2MB2eG76sCAUCaATkqwAKCRC2MB2eG76s
CLBcAQDeFCc4xridvf8pjxUzleiWawy8SXtXnzN5YJf+NecQqgEApc3p0WttdThH
zwzdbJyNtPXglCdI79iLbJiWBOcTFw0=
=YThx
-----END PGP SIGNATURE-----

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Sun Apr 20 14:07:57 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- update to 3.3:
* Speedup: gperf is now between 2x and 2.5x faster
- drop testsuite-race.patch, seems no longer needed
-------------------------------------------------------------------
Sun Apr 13 17:28:05 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- update to version 3.2.1:
* The generated code avoids -Wundef warnings in C++ mode
-------------------------------------------------------------------
Sat Apr 12 07:17:06 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- update to version 3.2:
* generated code now avoids several types of compiler warnings
* The input file may now use Windows line terminators (CR/LF)
instead of Unix line terminators (LF)
Note: This is an incompatible change. If you want to use a
keyword that ends in a CR byte, such as xyz<CR>, write it as
"xyz\r".
-------------------------------------------------------------------
Tue May 24 19:22:01 UTC 2022 - Dirk Müller <dmueller@suse.com>

Binary file not shown.

View File

@@ -2,6 +2,7 @@
# spec file for package gperf
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +18,7 @@
Name: gperf
Version: 3.1
Version: 3.3
Release: 0
Summary: A Compiler Tool for Generating Perfect Hash Functions
License: GPL-3.0-or-later
@@ -25,10 +26,8 @@ Group: Development/Languages/C and C++
URL: https://gnu.org/software/gperf/
Source0: https://ftp.gnu.org/pub/gnu/gperf/gperf-%{version}.tar.gz
Source1: https://ftp.gnu.org/pub/gnu/gperf/gperf-%{version}.tar.gz.sig
# From https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=%{name}&download=1#/%{name}.keyring
Source2: %{name}.keyring
Patch0: testsuite-race.patch
BuildRequires: gcc-c++
Source2: https://savannah.gnu.org/people/viewgpg.php?user_id=1871#/%{name}.keyring
BuildRequires: c++_compiler
%description
A perfect hash function is simply: a hash function and a data structure

View File

@@ -1,32 +0,0 @@
Fix race condition in testsuite
Move the Ada test from check-test to check-ada, where the aout binary is
being built.
* tests/Makefile.in (check-test): Don't run aout test.
(check-ada): Run it here.
Index: gperf-3.1/tests/Makefile.in
===================================================================
--- gperf-3.1.orig/tests/Makefile.in
+++ gperf-3.1/tests/Makefile.in
@@ -86,6 +86,9 @@ check-ada: test.$(OBJEXT)
@echo "testing Ada predefined words, all items should be found in the set"
./preout -v < $(srcdir)/adadefs.gperf | LC_ALL=C tr -d '\r' > ada-pred.out
diff $(srcdir)/ada-pred.exp ada-pred.out
+ @echo "only if, do, for, case, goto, else, while, and return should be found "
+ ./aout -v < $(srcdir)/c.gperf | $(POSTPROCESS_FOR_MINGW) > test-7.out
+ diff $(srcdir)/test-7.exp test-7.out
check-modula3: test.$(OBJEXT)
$(GPERF) -k1,2,'$$' -I -o $(srcdir)/modula3.gperf > m3inset.c
@@ -170,9 +173,6 @@ check-test:
# prints out the help message
-$(GPERF) -h | $(POSTPROCESS_FOR_MINGW) > test-6.out
diff $(srcdir)/test-6.exp test-6.out
- @echo "only if, do, for, case, goto, else, while, and return should be found "
- ./aout -v < $(srcdir)/c.gperf | $(POSTPROCESS_FOR_MINGW) > test-7.out
- diff $(srcdir)/test-7.exp test-7.out
# The following validates valid language syntax with different parameters.
# Works only with gcc and g++, and only on platforms where "gcc -ansi" is