commit 04adf48c8b6e18cadb4d517386c5690c81d2091805d932b4eab699dc1708adb5 Author: Adrian Schröter Date: Fri May 3 13:14:56 2024 +0200 Sync from SUSE:SLFO:Main gperf revision 6451c83aac70976ff2b29038b7ab9ecd diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/gperf-3.1.tar.gz b/gperf-3.1.tar.gz new file mode 100644 index 0000000..2a19d7f --- /dev/null +++ b/gperf-3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2 +size 1215925 diff --git a/gperf-3.1.tar.gz.sig b/gperf-3.1.tar.gz.sig new file mode 100644 index 0000000..0a56b27 Binary files /dev/null and b/gperf-3.1.tar.gz.sig differ diff --git a/gperf.changes b/gperf.changes new file mode 100644 index 0000000..f5f8b62 --- /dev/null +++ b/gperf.changes @@ -0,0 +1,164 @@ +------------------------------------------------------------------- +Tue May 24 19:22:01 UTC 2022 - Dirk Müller + +- stop linking dynamic content per full url, this breaks + asset validation +- remove info scripts, this is done via filetriggers for ages +- remove obsolete rm in %%install - these files are no longer installed + +------------------------------------------------------------------- +Tue Nov 24 11:46:21 UTC 2020 - Martin Pluskal + +- Small package cleanup + +------------------------------------------------------------------- +Tue Mar 6 09:15:05 UTC 2018 - schwab@suse.de + +- testsuite-race.patch: fix race condition in testsuite + +------------------------------------------------------------------- +Thu Jan 5 15:07:45 UTC 2017 - mpluskal@suse.com + +- Update to version 3.1: + * The generated C code is now in ANSI-C by default. + * The 'len' parameter of the hash function and of the lookup + function is now of type 'size_t' instead of 'unsigned int'. + * Added option --constants-prefix. + * Added declaration %define constants-prefix. +- Some packaging changes: + * https urls for downloads + * keyring is now fetched from savannah + +------------------------------------------------------------------- +Thu Apr 2 15:38:25 UTC 2015 - mpluskal@suse.com + +- Add gpg signature +- Correct info requirements +- Cleanup spec file with spec-cleaner + +------------------------------------------------------------------- +Sun Dec 7 20:08:17 UTC 2014 - jengelh@inai.de + +- Remove ancient specfile tags, and provide homepage URL. + +------------------------------------------------------------------- +Fri Feb 26 13:43:48 UTC 2010 - puzel@novell.com + +- update to gperf-3.0.4 + * gperf is now licensed under the GPL version 3 or newer. + * The generated C code gives less warnings with gcc-4.2.x + in c99 or gnu99 mode. + * The generated C code is compatible with gcc-4.3.x in c99 or + gnu99 mode. +- clean up specfile using macros +- make check in correct specfile section + +------------------------------------------------------------------- +Mon Dec 14 22:20:31 CET 2009 - jengelh@medozas.de + +- enable parallel building + +------------------------------------------------------------------- +Mon Jul 17 15:38:58 CEST 2006 - ro@suse.de + +- update to 3.0.2 + - documentation fixes + - Fix #line directives for filenames containing backslashes + - add option --length-table-name + +------------------------------------------------------------------- +Wed Jan 25 21:36:18 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Sun May 22 01:38:19 CEST 2005 - schwab@suse.de + +- Fix missing declaration. + +------------------------------------------------------------------- +Mon Oct 20 01:59:56 CEST 2003 - ro@suse.de + +- don't build as root + +------------------------------------------------------------------- +Mon Jun 16 11:14:19 CEST 2003 - ro@suse.de + +- update to 3.0.1 (documentation and testsuite fixes) + +------------------------------------------------------------------- +Mon May 19 12:14:25 CEST 2003 - ro@suse.de + +- remove unpackaged file + +------------------------------------------------------------------- +Thu May 15 12:18:40 CEST 2003 - ro@suse.de + +- update to 3.0 with many additional options + +------------------------------------------------------------------- +Tue May 13 00:39:16 CEST 2003 - ro@suse.de + +- fix file list + +------------------------------------------------------------------- +Thu Apr 24 12:20:23 CEST 2003 - ro@suse.de + +- fix install_info --delete call and move from preun to postun + +------------------------------------------------------------------- +Thu Feb 6 17:16:16 CET 2003 - ro@suse.de + +- added install-info macros + +------------------------------------------------------------------- +Mon Oct 28 12:53:58 CET 2002 - ro@suse.de + +- buildrooted + +------------------------------------------------------------------- +Tue Sep 17 17:34:28 CEST 2002 - ro@suse.de + +- removed bogus self-provides + +------------------------------------------------------------------- +Wed Feb 27 12:30:52 CET 2002 - ro@suse.de + +- bzipped source +- added docu files to filelist (#13968) + +------------------------------------------------------------------- +Wed Jun 13 13:38:37 CEST 2001 - schwab@suse.de + +- Don't link statically any more. + +------------------------------------------------------------------- +Sat Sep 30 00:41:31 CEST 2000 - ro@suse.de + +- update to 2.7.2 + +------------------------------------------------------------------- +Mon Sep 25 15:25:15 CEST 2000 - ro@suse.de + +- sorted + +------------------------------------------------------------------- +Thu Jan 20 18:30:14 CET 2000 - ro@suse.de + +- specfile cleanup, man,info -> usr/share + +------------------------------------------------------------------- +Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de + +- ran old prepare_spec on spec file to switch to new prepare_spec. + +------------------------------------------------------------------- +Fri Jan 15 00:40:36 MET 1999 - ro@suse.de + +- link statically: needed when rebuilding libstdc++ + +------------------------------------------------------------------- +Fri Jan 15 00:05:54 MET 1999 - ro@suse.de + +- created initial package using jurix dif + diff --git a/gperf.keyring b/gperf.keyring new file mode 100644 index 0000000..1ee141b Binary files /dev/null and b/gperf.keyring differ diff --git a/gperf.spec b/gperf.spec new file mode 100644 index 0000000..7dc83ac --- /dev/null +++ b/gperf.spec @@ -0,0 +1,59 @@ +# +# spec file for package gperf +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: gperf +Version: 3.1 +Release: 0 +Summary: A Compiler Tool for Generating Perfect Hash Functions +License: GPL-3.0-or-later +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++ + +%description +A perfect hash function is simply: a hash function and a data structure +that allows recognition of a key word in a set of words using exactly +one probe into the data structure. + +%prep +%autosetup -p1 + +%build +%configure \ + --htmldir=%{_defaultdocdir}/%{name} +%make_build + +%check +%make_build check + +%install +%make_install + +%files +%license COPYING +%doc README NEWS AUTHORS ChangeLog doc/*.html +%{_bindir}/gperf +%{_infodir}/gperf.info%{?ext_info} +%{_mandir}/man1/gperf.1%{?ext_man} + +%changelog diff --git a/testsuite-race.patch b/testsuite-race.patch new file mode 100644 index 0000000..e160e2d --- /dev/null +++ b/testsuite-race.patch @@ -0,0 +1,32 @@ +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