From 5b8e5aee13daf958f53f44066f3cd8d4bb4010bed1bc5b56c05382f8b12e753b Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 4 Feb 2021 06:15:39 +0000 Subject: [PATCH] Accepting request 869003 from home:pmonrealgonzalez:branches:Java:packages - Update to 1.15 * Fix: stack corruption when generating a java parser * Fix: Targets with empty right-hand side problematic in Java mode - Update the spec file * Simplify the docs installation * Remove mac and arch specifics OBS-URL: https://build.opensuse.org/request/show/869003 OBS-URL: https://build.opensuse.org/package/show/Java:packages/byaccj?expand=0&rev=9 --- byaccj.changes | 14 ++++++++++++++ byaccj.spec | 44 +++++++++++++++++++------------------------ byaccj1.14_src.tar.gz | 3 --- byaccj1.15_src.tar.gz | 3 +++ 4 files changed, 36 insertions(+), 28 deletions(-) delete mode 100644 byaccj1.14_src.tar.gz create mode 100644 byaccj1.15_src.tar.gz diff --git a/byaccj.changes b/byaccj.changes index 85da165..e9679cd 100644 --- a/byaccj.changes +++ b/byaccj.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +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 diff --git a/byaccj.spec b/byaccj.spec index 7abe309..75f2b93 100644 --- a/byaccj.spec +++ b/byaccj.spec @@ -1,7 +1,7 @@ # # spec file for package byaccj # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 @@ -12,21 +12,19 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%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 - -Name: byaccj -Version: 1.14 -Release: 0 -%define jpp_release 3 -Url: http://byaccj.sourceforge.net/ -Source0: http://downloads.sourceforge.net/%{name}/%{name}%{version}_src.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build +URL: http://byaccj.sourceforge.net/ +Source0: https://downloads.sourceforge.net/%{name}/%{name}%{version}_src.tar.gz Requires: man-pages %description @@ -40,30 +38,26 @@ 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}_src +%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 linux CFLAGS="$RPM_OPT_FLAGS" +%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 -# manual -install -d -m 755 %{buildroot}%{_mandir}/man1 -mv docs/yacc.cat %{buildroot}%{_mandir}/man1 -# jars -mkdir -p %{buildroot}%{_bindir} -cp -p src/yacc.linux \ - %{buildroot}%{_bindir}/%{name} +install -d -m 755 %{buildroot}%{_bindir} +install -p -m 755 src/yacc %{buildroot}%{_bindir}/%{name} %files -%defattr(0644,root,root,0755) -%doc docs/* src/readme src/README -%{_mandir}/man1/yacc.cat* -%attr(755, root, root) %{_bindir}/%{name} +%doc docs/* src/README +%{_bindir}/%{name} %changelog diff --git a/byaccj1.14_src.tar.gz b/byaccj1.14_src.tar.gz deleted file mode 100644 index 60acf47..0000000 --- a/byaccj1.14_src.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2d257c2a4afb01aac1c08ba22c27f36bc4b39819d8b38e31cb7f44c25bdc23ba -size 55123 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