|
|
@ -1,71 +1,35 @@
|
|
|
|
# Copyright (c) 2000-2005, JPackage Project
|
|
|
|
%define pkg_version 11b
|
|
|
|
# All rights reserved.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
|
|
|
|
# are met:
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
|
|
|
|
# notice, this list of conditions and the following disclaimer in the
|
|
|
|
|
|
|
|
# documentation and/or other materials provided with the
|
|
|
|
|
|
|
|
# distribution.
|
|
|
|
|
|
|
|
# 3. Neither the name of the JPackage Project nor the names of its
|
|
|
|
|
|
|
|
# contributors may be used to endorse or promote products derived
|
|
|
|
|
|
|
|
# from this software without specific prior written permission.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
|
|
|
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
|
|
|
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
|
|
|
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
|
|
|
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
|
|
|
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
|
|
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
|
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define pkg_version 11a
|
|
|
|
|
|
|
|
%define section free
|
|
|
|
|
|
|
|
%define with_bootstrap 0
|
|
|
|
%define with_bootstrap 0
|
|
|
|
|
|
|
|
|
|
|
|
Name: java_cup
|
|
|
|
Name: java_cup
|
|
|
|
Version: 0.11a
|
|
|
|
Version: 0.11b
|
|
|
|
Release: 20%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Epoch: 1
|
|
|
|
Epoch: 1
|
|
|
|
Summary: Java source interpreter
|
|
|
|
Summary: LALR parser generator for Java
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: http://www.cs.princeton.edu/%7Eappel/modern/java/CUP/
|
|
|
|
URL: http://www2.cs.tum.edu/projects/cup/
|
|
|
|
#svn export -r 21 https://www2.in.tum.de/repos/cup/develop/ java_cup-0.11a
|
|
|
|
BuildArch: noarch
|
|
|
|
#tar cjf java_cup-0.11a.tar.bz2 java_cup-0.11a/
|
|
|
|
|
|
|
|
Source0: java_cup-0.11a.tar.bz2
|
|
|
|
# svn export -r 65 https://www2.in.tum.de/repos/cup/develop/ java_cup-0.11b
|
|
|
|
|
|
|
|
# tar cjf java_cup-0.11b.tar.bz2 java_cup-0.11b/
|
|
|
|
|
|
|
|
Source0: java_cup-%{version}.tar.bz2
|
|
|
|
Source1: java_cup-pom.xml
|
|
|
|
Source1: java_cup-pom.xml
|
|
|
|
# Add OSGi manifests
|
|
|
|
# Add OSGi manifests
|
|
|
|
Source2: %{name}-MANIFEST.MF
|
|
|
|
Source2: %{name}-MANIFEST.MF
|
|
|
|
Source4: %{name}-runtime-MANIFEST.MF
|
|
|
|
Source4: %{name}-runtime-MANIFEST.MF
|
|
|
|
# Taken from http://www2.cs.tum.edu/projects/cup/
|
|
|
|
|
|
|
|
Source3: LICENSE.txt
|
|
|
|
|
|
|
|
Patch0: %{name}-build.patch
|
|
|
|
|
|
|
|
Patch1: java_cup-0.11a-manifest.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Patch from eclipe-pdt to get around generated actions methods exceeding the 65535 bytes limit:
|
|
|
|
Patch0: %{name}-build.patch
|
|
|
|
# http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/tree/plugins/org.eclipse.php.core.parser/javacup10k_split_do_action_method.diff
|
|
|
|
|
|
|
|
Patch2: javacup10k_split_do_action_method.diff
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: java-devel
|
|
|
|
BuildRequires: java-devel
|
|
|
|
BuildRequires: jpackage-utils >= 0:1.5
|
|
|
|
BuildRequires: jpackage-utils >= 0:1.5
|
|
|
|
BuildRequires: jflex
|
|
|
|
BuildRequires: jflex
|
|
|
|
%if ! %{with_bootstrap}
|
|
|
|
%if ! %{with_bootstrap}
|
|
|
|
BuildRequires: java_cup >= 1:0.11a
|
|
|
|
BuildRequires: java_cup >= 1:0.11a
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: zip
|
|
|
|
BuildRequires: zip
|
|
|
|
|
|
|
|
|
|
|
|
Requires: java-headless
|
|
|
|
Requires: java-headless
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
@ -86,22 +50,17 @@ Documentation for java_cup.
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch0 -b .build
|
|
|
|
%patch0 -b .build
|
|
|
|
%patch1 -p1 -b .manifest
|
|
|
|
|
|
|
|
pushd src
|
|
|
|
|
|
|
|
%patch2 -p1 -b .orig
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
cp %{SOURCE1} pom.xml
|
|
|
|
cp %{SOURCE1} pom.xml
|
|
|
|
cp %{SOURCE3} .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# remove all binary files
|
|
|
|
# remove all binary files
|
|
|
|
find -name "*.class" -delete
|
|
|
|
find -name "*.class" -delete
|
|
|
|
|
|
|
|
|
|
|
|
%if ! %{with_bootstrap}
|
|
|
|
%if ! %{with_bootstrap}
|
|
|
|
# remove prebuilt JFlex
|
|
|
|
# remove prebuilt JFlex
|
|
|
|
rm -rf java_cup-0.11a/bin/JFlex.jar
|
|
|
|
rm -rf java_cup-%{version}/bin/JFlex.jar
|
|
|
|
|
|
|
|
|
|
|
|
# remove prebuilt java_cup, if not bootstrapping
|
|
|
|
# remove prebuilt java_cup, if not bootstrapping
|
|
|
|
rm -rf java_cup-0.11a/bin/java-cup-11.jar
|
|
|
|
rm -rf java_cup-%{version}/bin/java-cup-11.jar
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
@ -109,7 +68,7 @@ rm -rf java_cup-0.11a/bin/java-cup-11.jar
|
|
|
|
export CLASSPATH=$(build-classpath java_cup java_cup-runtime jflex)
|
|
|
|
export CLASSPATH=$(build-classpath java_cup java_cup-runtime jflex)
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
ant
|
|
|
|
ant -Dcupversion=20150326 -Dsvnversion=65
|
|
|
|
find -name parser.cup -delete
|
|
|
|
find -name parser.cup -delete
|
|
|
|
ant javadoc
|
|
|
|
ant javadoc
|
|
|
|
|
|
|
|
|
|
|
@ -140,17 +99,20 @@ cp -pr dist/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%files -f .mfiles
|
|
|
|
%files -f .mfiles
|
|
|
|
%doc changelog.txt
|
|
|
|
%doc changelog.txt
|
|
|
|
%{_javadir}/*
|
|
|
|
%{_javadir}/*
|
|
|
|
%license LICENSE.txt
|
|
|
|
%license licence.txt
|
|
|
|
|
|
|
|
|
|
|
|
%files manual
|
|
|
|
%files manual
|
|
|
|
%doc manual.html
|
|
|
|
%doc manual.html
|
|
|
|
%license LICENSE.txt
|
|
|
|
%license licence.txt
|
|
|
|
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%files javadoc
|
|
|
|
%license LICENSE.txt
|
|
|
|
%license licence.txt
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Jun 23 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.11b-1
|
|
|
|
|
|
|
|
- Update to upstream version 0.11b
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.11a-20
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.11a-20
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|