rgrunber / rpms / java_cup

Forked from rpms/java_cup 4 years ago
Clone
Vivek Lakshmanan cac783f
# Copyright (c) 2000-2005, JPackage Project
Vivek Lakshmanan cac783f
# All rights reserved.
Vivek Lakshmanan cac783f
#
Vivek Lakshmanan cac783f
# Redistribution and use in source and binary forms, with or without
Vivek Lakshmanan cac783f
# modification, are permitted provided that the following conditions
Vivek Lakshmanan cac783f
# are met:
Vivek Lakshmanan cac783f
#
Vivek Lakshmanan cac783f
# 1. Redistributions of source code must retain the above copyright
Vivek Lakshmanan cac783f
#    notice, this list of conditions and the following disclaimer.
Vivek Lakshmanan cac783f
# 2. Redistributions in binary form must reproduce the above copyright
Vivek Lakshmanan cac783f
#    notice, this list of conditions and the following disclaimer in the
Vivek Lakshmanan cac783f
#    documentation and/or other materials provided with the
Vivek Lakshmanan cac783f
#    distribution.
Vivek Lakshmanan cac783f
# 3. Neither the name of the JPackage Project nor the names of its
Vivek Lakshmanan cac783f
#    contributors may be used to endorse or promote products derived
Vivek Lakshmanan cac783f
#    from this software without specific prior written permission.
Vivek Lakshmanan cac783f
#
Vivek Lakshmanan cac783f
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Vivek Lakshmanan cac783f
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Vivek Lakshmanan cac783f
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Vivek Lakshmanan cac783f
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Vivek Lakshmanan cac783f
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Vivek Lakshmanan cac783f
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Vivek Lakshmanan cac783f
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Vivek Lakshmanan cac783f
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Vivek Lakshmanan cac783f
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Vivek Lakshmanan cac783f
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Vivek Lakshmanan cac783f
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Vivek Lakshmanan cac783f
#
Vivek Lakshmanan cac783f
8f8cca0
%define pkg_version     11a
504fefb
%define section         free
2197877
%define with_bootstrap  0
504fefb
504fefb
Name:           java_cup
8f8cca0
Version:        0.11a
Stanislav Ochotnicky 999da95
Release:        16%{?dist}
504fefb
Epoch:          1
504fefb
Summary:        Java source interpreter
1839158
License:        MIT
8f8cca0
URL:            http://www.cs.princeton.edu/%7Eappel/modern/java/CUP/
8f8cca0
#svn export -r 21 https://www2.in.tum.de/repos/cup/develop/ java_cup-0.11a 
8f8cca0
#tar cjf java_cup-0.11a.tar.bz2 java_cup-0.11a/
8f8cca0
Source0:        java_cup-0.11a.tar.bz2
49fecca
Source1:        java_cup-pom.xml
Mat Booth 4fcc98e
# Add OSGi manifests
Mat Booth 4fcc98e
Source2:        %{name}-MANIFEST.MF
Mat Booth 4fcc98e
Source4:        %{name}-runtime-MANIFEST.MF
1839158
# Taken from http://www2.cs.tum.edu/projects/cup/
63f05d8
Source3:        LICENSE.txt
8f8cca0
Patch0:         %{name}-build.patch
cc05def
Patch1:         java_cup-0.11a-manifest.patch
00947f2
Mat Booth 54bcb6f
# Patch from eclipe-pdt to get around generated actions methods exceeding the 65535 bytes limit:
Mat Booth 54bcb6f
# http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/tree/plugins/org.eclipse.php.core.parser/javacup10k_split_do_action_method.diff
Mat Booth 54bcb6f
Patch2:         javacup10k_split_do_action_method.diff
Mat Booth 54bcb6f
00947f2
BuildRequires: ant
00947f2
BuildRequires: java-devel
00947f2
BuildRequires: jpackage-utils >= 0:1.5
00947f2
BuildRequires: jflex
2197877
%if ! %{with_bootstrap}
00947f2
BuildRequires: java_cup >= 1:0.11a
2197877
%endif
00947f2
BuildRequires: zip
00947f2
Stanislav Ochotnicky 999da95
Requires:      java-headless
00947f2
BuildArch:     noarch
Vivek Lakshmanan cac783f
ad48968
cvsdist 826b239
%description
cvsdist 826b239
java_cup is a LALR Parser Generator for Java
cvsdist 826b239
cvsdist 826b239
%package javadoc
00947f2
Summary:       Javadoc for java_cup
cvsdist 826b239
cvsdist 826b239
%description javadoc
cvsdist 826b239
Javadoc for java_cup
cvsdist 826b239
cvsdist 826b239
%package manual
504fefb
Summary:        Documentation for java_cup
cvsdist 826b239
cvsdist 826b239
%description manual
cvsdist 826b239
Documentation for java_cup.
cvsdist 826b239
cvsdist 826b239
%prep
8f8cca0
%setup -q 
cc05def
%patch0 -b .build
cc05def
%patch1 -p1 -b .manifest
Mat Booth 54bcb6f
pushd src
Mat Booth 54bcb6f
%patch2 -p1 -b .orig
Mat Booth 54bcb6f
popd
49fecca
cp %{SOURCE1} pom.xml
1839158
cp %{SOURCE3} .
cvsdist 826b239
gbenson c531103
# remove all binary files
be0a7d5
find -name "*.class" -delete
gbenson c531103
c9b8a86
%if ! %{with_bootstrap}
2197877
# remove prebuilt JFlex
2197877
rm -rf java_cup-0.11a/bin/JFlex.jar
2197877
2197877
# remove prebuilt java_cup, if not bootstrapping
2197877
rm -rf java_cup-0.11a/bin/java-cup-11.jar
2197877
%endif
2197877
cvsdist 826b239
%build
2197877
%if ! %{with_bootstrap}
2197877
export CLASSPATH=$(build-classpath java_cup java_cup-runtime jflex)
2197877
%endif
2197877
cvsdist 826b239
ant
be0a7d5
find -name parser.cup -delete
cvsdist 826b239
ant javadoc
cvsdist 826b239
cvsdist 826b239
%install
Mat Booth 4fcc98e
# inject OSGi manifests
41fcc84
mkdir -p META-INF
41fcc84
cp -p %{SOURCE2} META-INF/MANIFEST.MF
41fcc84
touch META-INF/MANIFEST.MF
Mat Booth 4fcc98e
zip -u dist/java-cup-%{pkg_version}.jar META-INF/MANIFEST.MF
Mat Booth 4fcc98e
cp -p %{SOURCE4} META-INF/MANIFEST.MF
Mat Booth 4fcc98e
touch META-INF/MANIFEST.MF
41fcc84
zip -u dist/java-cup-%{pkg_version}-runtime.jar META-INF/MANIFEST.MF
504fefb
cvsdist 826b239
# jar
00947f2
install -d -m 755 %{buildroot}%{_javadir}
00947f2
install -m 644 dist/java-cup-%{pkg_version}.jar %{buildroot}%{_javadir}/%{name}.jar
00947f2
install -m 644 dist/java-cup-%{pkg_version}-runtime.jar %{buildroot}%{_javadir}/%{name}-runtime.jar
49fecca
49fecca
# poms
49fecca
install -d -m 755 %{buildroot}%{_mavenpomdir}
00947f2
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
63f05d8
%add_maven_depmap
49fecca
00947f2
# javadoc
00947f2
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
00947f2
cp -pr dist/javadoc/* %{buildroot}%{_javadocdir}/%{name}
49fecca
cvsdist 826b239
%files
1839158
%doc changelog.txt LICENSE.txt
cvsdist 826b239
%{_javadir}/*
49fecca
%{_mavenpomdir}/*
49fecca
%{_mavendepmapfragdir}/*
Vivek Lakshmanan cac783f
cvsdist 826b239
%files manual
00947f2
%doc manual.html LICENSE.txt
00947f2
cvsdist 826b239
%files javadoc
00947f2
%doc LICENSE.txt
00947f2
%{_javadocdir}/%{name}
cvsdist 826b239
cvsdist 826b239
%changelog
Stanislav Ochotnicky 999da95
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:0.11a-16
Stanislav Ochotnicky 999da95
- Use Requires: java-headless rebuild (#1067528)
Stanislav Ochotnicky 999da95
Mat Booth 4fcc98e
* Sat Aug 31 2013 Mat Booth <fedora@matbooth.co.uk> - 1:0.11a-15
Mat Booth 4fcc98e
- Inject OSGi manifests into both jars.
Mat Booth 4fcc98e
Mat Booth 54bcb6f
* Fri Aug 30 2013 Mat Booth <fedora@matbooth.co.uk> - 1:0.11a-14
Mat Booth 54bcb6f
- Patch so that generated action methods do not exceed the 65535 byte JVM
Mat Booth 54bcb6f
  method size limit. Supplied by eclipse-pdt project.
Mat Booth 54bcb6f
- Drop rpm bug workaround scriptlet.
Mat Booth 54bcb6f
581e653
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.11a-13
581e653
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
581e653
3e299ea
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.11a-12
3e299ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3e299ea
00947f2
* Tue Nov 13 2012 gil cattaneo <puntogil@libero.it> 1:0.11a-11
00947f2
- adapt to current guideline
00947f2
- add %%pre javadoc script
00947f2
1839158
* Tue Nov 13 2012 Tom Callaway <spot@fedoraproject.org> - 1:0.11a-10
1839158
- include copy of LICENSE, correct License tag
1839158
4270435
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.11a-9
4270435
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4270435
41fcc84
* Sun Jun 24 2012 Gerard Ryan <galileo@fedoraproject.org> - 1:0.11a-8
41fcc84
- Inject OSGI Manifest for java-cup-runtime.jar
41fcc84
eb37baa
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.11a-7
eb37baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
eb37baa
95a6a7f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.11a-6
95a6a7f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
95a6a7f
ad48968
* Sat Dec 04 2010 Lubomir Rintel <lkundrak@v3.sk> 1:0.11a-5
ad48968
- Require appropriate packages for depmap maintenance in scriptlets
cc05def
- Remove classpath from jar manifest
ad48968
49fecca
* Mon Feb 15 2010 Alexander Kurtakov <akurtako@redhat.com> 1:0.11a-4
49fecca
- Add maven pom and depmap.
49fecca
c9b8a86
* Wed Jan 20 2010 Alexander Kurtakov <akurtako@redhat.com> 1:0.11a-3
c9b8a86
- Fix bootstrap.
c9b8a86
2197877
* Sun Jan 17 2010 Miloš Jakubíček <xjakub@fi.muni.cz> - 1:0.11a-2
2197877
- Rebuilt in non-bootstrap mode (removed all prebuilt jars).
2197877
- Added BR: jflex and java_cup >= 1:0.11a for non-bootstrap mode
2197877
- Remove unnecessary R(post,postun): coreutils
2197877
8f8cca0
* Fri Jan 8 2010 Alexander Kurtakov <akurtako@redhat.com> 1:0.11a-1
8f8cca0
- Update to 0.11a.
8f8cca0
- Drop gcj_support.
8f8cca0
daeec99
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10k-3
daeec99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
daeec99
24353a7
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10k-2
24353a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
24353a7
910cc46
* Tue Jul 15 2008 Lubomir Rintel <lkundrak@v3.sk> - 1:0.10k-1
910cc46
- Fix the version to match upstream, so that FEver can be used
910cc46
24fdbdf
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:0.10-0.k.6.3
24fdbdf
- drop repotag
24fdbdf
504fefb
* Sun Feb 17 2008 Lubomir Kundrak <lkundrak@redhat.com> - 1:0.10-0.k.6jpp.2
504fefb
- Ant task
504fefb
- Clean up to satisfy QA script and rpmlint
504fefb
Vivek Lakshmanan b3d4d8e
* Fri Aug 04 2006 Vivek Lakshmanan <vivekl@redhat.com> - 1:0.10-0.k.6jpp.1
Vivek Lakshmanan b3d4d8e
- Re-sync with latest version from JPP.
Vivek Lakshmanan b3d4d8e
- Partially adopt new naming convention.
Vivek Lakshmanan b3d4d8e
c2b8d24
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 1:0.10-0.k.5jpp_2fc
c2b8d24
- Rebuilt
c2b8d24
Vivek Lakshmanan 6dd850e
* Thu Jul 20 2006 Vivek Lakshmanan <vivekl@redhat.com> - 1:0.10-0.k.5jpp_1fc
Vivek Lakshmanan 6dd850e
- Re-sync with latest version from JPP.
Vivek Lakshmanan 6dd850e
Vivek Lakshmanan cac783f
* Wed Jul 19 2006 Vivek Lakshmanan <vivekl@redhat.com> - 1:0.10-0.k.4jpp_1fc
Vivek Lakshmanan cac783f
- Conditional native compilation for GCJ.
Vivek Lakshmanan cac783f
530ce4e
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:0.10-0.k.1jpp_10fc
530ce4e
- rebuild
530ce4e
f3058bd
* Mon Mar  6 2006 Jeremy Katz <katzj@redhat.com> - 1:0.10-0.k.1jpp_9fc
f3058bd
- stop scriptlet spew
f3058bd
87cf348
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1:0.10-0.k.1jpp_8fc
87cf348
- bump again for double-long bug on ppc(64)
87cf348
d11c2d5
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1:0.10-0.k.1jpp_7fc
d11c2d5
- rebuilt for new gcc4.1 snapshot and glibc changes
d11c2d5
31f0938
* Tue Jan  3 2006 Jesse Keating <jkeating@redhat.com> 1:0.10-0.k.1jpp_6fc
31f0938
- rebuilt again
31f0938
8dee869
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
8dee869
- rebuilt
8dee869
gbenson a95aada
* Tue Jul 19 2005 Gary Benson <gbenson@redhat.com> 1:0.10-0.k.1jpp_5fc
gbenson a95aada
- Build on ia64, ppc64, s390 and s390x.
gbenson a95aada
- Switch to aot-compile-rpm.
gbenson a95aada
gbenson 10c1acb
* Tue Jun 28 2005 Gary Benson <gbenson@redhat.com> 1:0.10-0.k.1jpp_4fc
gbenson 10c1acb
- BC-compile.
gbenson 10c1acb
gbenson c531103
* Tue Jun 21 2005 Gary Benson <gbenson@redhat.com> 1:0.10-0.k.1jpp_3fc
gbenson c531103
- Remove classes from the tarball.
gbenson c531103
gbenson b2699e9
* Thu Nov  4 2004 Gary Benson <gbenson@redhat.com> 1:0.10-0.k.1jpp_2fc
gbenson 35c80ac
- Build into Fedora.
gbenson 35c80ac
gbenson 35c80ac
* Thu Mar  4 2004 Frank Ch. Eigler <fche@redhat.com> 1:0.10-0.k.1jpp_1rh
cvsdist 826b239
- RH vacuuming
cvsdist 826b239
cvsdist 826b239
* Thu Jan 22 2004 David Walluck <david@anti-microsoft.org> 1:0.10-0.k.1jpp
cvsdist 826b239
- fix version/release (bump epoch)
cvsdist 826b239
- change License tag from Free to BSD-style
cvsdist 826b239
- add Distribution tag
cvsdist 826b239
- really update for JPackage 1.5
cvsdist 826b239
cvsdist 826b239
* Wed Mar 26 2003 Paul Nasrat <pauln@truemesh.com> 0.10k-1jpp
cvsdist 826b239
- for jpackage-utils 1.5
cvsdist 826b239
- New spec reverse engineered from binary rpms