2021-12-14 02:40:12 +08:00
|
|
|
#
|
|
|
|
# spec file for package java-cup
|
|
|
|
#
|
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2022-04-02 06:38:45 +08:00
|
|
|
%define cvs_version 11a
|
2022-03-31 08:37:26 +08:00
|
|
|
%define real_name java-cup
|
2021-12-14 02:40:12 +08:00
|
|
|
|
|
|
|
Summary: LALR Parser Generator in Java
|
2022-03-31 08:37:26 +08:00
|
|
|
Name: java-cup-bootstrap
|
|
|
|
Version: 0.11
|
2022-05-03 04:29:11 +08:00
|
|
|
Release: 32%{?dist}
|
2021-12-14 02:40:12 +08:00
|
|
|
License: HPND
|
|
|
|
Group: Development/Libraries/Java
|
2022-03-31 08:37:26 +08:00
|
|
|
Vendor: Microsoft Corporation
|
|
|
|
Distribution: Mariner
|
2021-12-14 02:40:12 +08:00
|
|
|
Url: http://www2.cs.tum.edu/projects/cup/
|
2022-04-02 06:38:45 +08:00
|
|
|
# TODO the version of our 11a source is no longer published
|
2022-05-03 04:29:11 +08:00
|
|
|
Source0: %{_mariner_sources_url}/develop.tar.bz2
|
2022-04-02 06:38:45 +08:00
|
|
|
Source1: java-cup-generated-files.tar.bz2
|
2022-03-31 08:37:26 +08:00
|
|
|
Source2: java-cup.license
|
2021-12-14 02:40:12 +08:00
|
|
|
# From http://www2.cs.tum.edu/projects/cup/
|
|
|
|
Patch1: java-cup-no-classpath-in-manifest.patch
|
|
|
|
Patch2: java-cup-no-cup-no-jflex.patch
|
|
|
|
Patch3: java-cup-classpath.patch
|
2022-04-02 06:38:45 +08:00
|
|
|
# Missing symbolFactory initialization in lr_parser, causes sinjdoc to crash
|
|
|
|
Patch4: java-cup-lr_parser-constructor.patch
|
2021-12-14 02:40:12 +08:00
|
|
|
BuildRequires: ant
|
2022-03-31 08:37:26 +08:00
|
|
|
BuildRequires: git
|
2021-12-14 02:40:12 +08:00
|
|
|
BuildRequires: java-devel
|
2022-03-31 08:37:26 +08:00
|
|
|
BuildRequires: javapackages-local-bootstrap
|
2021-12-14 02:40:12 +08:00
|
|
|
BuildRequires: xml-commons-apis-bootstrap
|
|
|
|
BuildRequires: xml-commons-resolver-bootstrap
|
2022-03-31 08:37:26 +08:00
|
|
|
#!BuildIgnore: xalan-j2
|
|
|
|
#!BuildIgnore: xerces-j2
|
|
|
|
#!BuildIgnore: xml-commons-apis
|
|
|
|
#!BuildIgnore: xml-commons-resolver
|
|
|
|
Conflicts: java-cup
|
2021-12-14 02:40:12 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
2022-03-31 08:37:26 +08:00
|
|
|
java-cup is a LALR Parser Generator in Java. With v0.11, you can:
|
|
|
|
* use CUP in an Ant-Target
|
2021-12-14 02:40:12 +08:00
|
|
|
* start CUP by a simple command like java -jar java-cup-11a.jar
|
|
|
|
myGrammar.cup
|
|
|
|
* use generic parametrized classes (since Java 1.5) as datatypes for
|
|
|
|
non terminals and terminals
|
|
|
|
* have Your own symbol classes
|
|
|
|
|
|
|
|
%prep
|
2022-04-02 06:38:45 +08:00
|
|
|
%setup -q -n develop
|
2021-12-14 02:40:12 +08:00
|
|
|
%patch1 -p1
|
2022-04-02 06:38:45 +08:00
|
|
|
%setup -q -T -D -a 1 -n develop
|
2021-12-14 02:40:12 +08:00
|
|
|
%patch2 -p1
|
2022-04-02 06:38:45 +08:00
|
|
|
%patch4 -p1
|
|
|
|
perl -pi -e 's/1\.2/1.6/g' build.xml
|
|
|
|
mkdir -p classes dist
|
|
|
|
cp %{SOURCE2} license.txt
|
2021-12-14 02:40:12 +08:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CLASSPATH=
|
|
|
|
export OPT_JAR_LIST=:
|
|
|
|
ant
|
|
|
|
|
2022-03-31 08:37:26 +08:00
|
|
|
cp %{SOURCE2} license.txt
|
|
|
|
|
2021-12-14 02:40:12 +08:00
|
|
|
%install
|
|
|
|
# jar
|
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
2022-04-02 06:38:45 +08:00
|
|
|
cp -a dist/%{real_name}-%{cvs_version}.jar %{buildroot}%{_javadir}/%{real_name}-%{version}.jar
|
|
|
|
cp -a dist/%{real_name}-%{cvs_version}-runtime.jar %{buildroot}%{_javadir}/%{real_name}-runtime-%{version}.jar
|
2022-03-31 08:37:26 +08:00
|
|
|
|
|
|
|
pushd %{buildroot}%{_javadir}
|
|
|
|
for jar in *-%{version}*; do
|
|
|
|
ln -s ${jar} ${jar/-%{version}/};
|
|
|
|
done
|
2021-12-14 02:40:12 +08:00
|
|
|
# compatibility symlinks
|
2022-03-31 08:37:26 +08:00
|
|
|
ln -s %{real_name}.jar java_cup.jar
|
|
|
|
ln -s %{real_name}-runtime.jar java_cup-runtime.jar
|
|
|
|
popd
|
|
|
|
|
2021-12-14 02:40:12 +08:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
install -p -m 755 %{SOURCE1} %{buildroot}%{_bindir}/%{real_name}
|
|
|
|
|
|
|
|
%files
|
2022-04-02 06:38:45 +08:00
|
|
|
%license license.txt
|
|
|
|
%doc changelog.txt
|
2021-12-14 02:40:12 +08:00
|
|
|
%attr(0755,root,root) %{_bindir}/%{real_name}
|
|
|
|
%{_javadir}/*
|
|
|
|
|
|
|
|
%changelog
|
2022-05-03 04:29:11 +08:00
|
|
|
* Fri Apr 29 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.11-32
|
|
|
|
- Fixing source URL.
|
|
|
|
|
2022-03-31 08:37:26 +08:00
|
|
|
* Thu Mar 24 2022 Cameron Baird <cameronbaird@microsoft.com> - 0.11-31
|
|
|
|
- separate into bootstrap and non-bootstrap specs
|
|
|
|
- License verified
|
|
|
|
|
2021-12-14 02:40:12 +08:00
|
|
|
* Thu Oct 14 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.11-30
|
|
|
|
- Converting the 'Release' tag to the '[number].[distribution]' format.
|
|
|
|
|
|
|
|
* Thu Nov 19 2020 Joe Schmitt <joschmit@microsoft.com> - 0.11-29.7
|
|
|
|
- Provide bootstrap version of this package.
|
|
|
|
|
|
|
|
* Thu Nov 12 2020 Joe Schmitt <joschmit@microsoft.com> - 0.11-29.6
|
|
|
|
- Initial CBL-Mariner import from openSUSE Tumbleweed (license: same as "License" tag).
|
|
|
|
- Turn on bootstrap mode.
|
|
|
|
|
|
|
|
* Fri Feb 1 2019 Fridrich Strba <fstrba@suse.com>
|
|
|
|
- BuildIgnore xml-commons-apis xml-commons-resolver xalan-j2
|
|
|
|
and xerces-j2 in order to solve build cycle
|
|
|
|
* Fri Sep 15 2017 fstrba@suse.com
|
|
|
|
- Do not depend on java-gcj-compat
|
|
|
|
- Fix build with jdk9: specify source and target 1.6
|
|
|
|
* Thu Aug 29 2013 mvyskocil@suse.com
|
|
|
|
- Add conflicts for each variant
|
|
|
|
- Sync .changes
|
|
|
|
- Drop weird jpackage-prepare script and use standard pre_checkin.sh
|
|
|
|
* Fri Aug 23 2013 mvyskocil@suse.com
|
|
|
|
- Disable build of javadoc
|
|
|
|
* drop java-cup-javadoc.patch
|
|
|
|
* Fri Jan 25 2013 coolo@suse.com
|
|
|
|
- sync licenses
|
|
|
|
* Mon Jun 4 2012 cfarrell@suse.com
|
|
|
|
- license update: HPND
|
|
|
|
SPDX syntax
|
|
|
|
* Mon Nov 8 2010 mvyskocil@suse.cz
|
|
|
|
- Build ignore xml-comons-jax-1.3-apis
|
|
|
|
* Mon May 11 2009 mvyskocil@suse.cz
|
|
|
|
- Fixed bnc#501635: Added a lincense file
|
|
|
|
* Tue May 5 2009 mvyskocil@suse.cz
|
|
|
|
- Build using gcj (for proper bootstrap of openjdk)
|
|
|
|
* Wed Apr 29 2009 mvyskocil@suse.cz
|
|
|
|
- Initial packaging of java-cup-bootstrap 0.11 in SUSE (from jpp5)
|