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
This commit is contained in:
Fridrich Strba 2021-02-04 06:15:39 +00:00 committed by Git OBS Bridge
parent 7d8785434b
commit 5b8e5aee13
4 changed files with 36 additions and 28 deletions

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Wed Feb 3 18:57:06 UTC 2021 - Pedro Monreal <pmonreal@suse.com>
- 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 <pmonreal@suse.com>
- Update the spec file
* Simplify the docs installation
* Remove mac and arch specifics
-------------------------------------------------------------------
Tue Jan 7 11:05:45 UTC 2014 - schwab@suse.de

View File

@ -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

View File

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

BIN
byaccj1.15_src.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.