commit 351930cb9e47af1723c91fc9c8673065c579910c9a152c1c675b6d815bad13f0 Author: Adrian Schröter Date: Fri May 3 11:27:22 2024 +0200 Sync from SUSE:SLFO:Main byaccj revision fcbb3c517357a78310deb48777279956 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/byaccj.changes b/byaccj.changes new file mode 100644 index 0000000..7907d1f --- /dev/null +++ b/byaccj.changes @@ -0,0 +1,35 @@ +------------------------------------------------------------------- +Tue Jul 27 13:20:50 UTC 2021 - Fridrich Strba + +- Define %%make_build for systems that don't have it defined in + rpm macros + +------------------------------------------------------------------- +Wed Feb 3 18:57:06 UTC 2021 - Pedro Monreal + +- Update to 1.15 + * Fix: stack corruption when generating a java parser + * Fix: Targets with empty right-hand side problematic in Java mode + +------------------------------------------------------------------- +Wed Feb 3 18:19:13 UTC 2021 - Pedro Monreal + +- Update the spec file + * Simplify the docs installation + * Remove mac and arch specifics + +------------------------------------------------------------------- +Tue Jan 7 11:05:45 UTC 2014 - schwab@suse.de + +- Build with $RPM_OPT_FLAGS + +------------------------------------------------------------------- +Sat Sep 17 21:11:07 UTC 2011 - jengelh@medozas.de + +- Remove redundant tags/sections from specfile + +------------------------------------------------------------------- +Sat Apr 25 16:51:10 CEST 2009 - mvyskocil@suse.cz + +- created package + diff --git a/byaccj.spec b/byaccj.spec new file mode 100644 index 0000000..b7eaf30 --- /dev/null +++ b/byaccj.spec @@ -0,0 +1,64 @@ +# +# spec file for package byaccj +# +# Copyright (c) 2021 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/ +# + + +%{!?make_build:%global make_build make %{?_smp_mflags}} +%define jpp_release 3 +Name: byaccj +Version: 1.15 +Release: 0 +Summary: Parser Generator with Java Extension +License: SUSE-Public-Domain +Group: Development/Libraries/Java +URL: http://byaccj.sourceforge.net/ +Source0: https://downloads.sourceforge.net/%{name}/%{name}%{version}_src.tar.gz +Requires: man-pages + +%description +BYACC/J is an extension of the Berkeley v 1.8 YACC-compatible parser +generator. Standard YACC takes a YACC source file, and generates one or +more C files from it, which if compiled properly, will produce a +LALR-grammar parser. This is useful for expression parsing, interactive +command parsing, and file reading. Many megabytes of YACC code have +been written over the years. This is the standard YACC tool that is in +use every day to produce C/C++ parsers. I have added a "-J" flag which +will cause BYACC to generate Java source code, instead. So there +finally is a YACC for Java now! + +%prep +%setup -q -n %{name}%{version} + +chmod -c -x src/* docs/* +sed -i -e 's|-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4|$(LDFLAGS)|g' src/Makefile + +%build +pushd src +%make_build yacc CFLAGS="%{optflags}" LDFLAGS="$RPM_LD_FLAGS" +popd + +#Fix wrong-file-end-of-line-encoding +sed -i 's/\r//g' docs/tf.y + +%install +install -d -m 755 %{buildroot}%{_bindir} +install -p -m 755 src/yacc %{buildroot}%{_bindir}/%{name} + +%files +%doc docs/* src/README +%{_bindir}/%{name} + +%changelog diff --git a/byaccj1.15_src.tar.gz b/byaccj1.15_src.tar.gz new file mode 100644 index 0000000..b1f53a7 --- /dev/null +++ b/byaccj1.15_src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d6ba21fa5bc4ec4b1be9eb6e6efbb367eb6df2577fd0eaff60be9c6614f6609 +size 53646