diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..31b3590 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/java_cup-0.11a.tar.bz2 diff --git a/.rh-java-common-java_cup.metadata b/.rh-java-common-java_cup.metadata new file mode 100644 index 0000000..90a7857 --- /dev/null +++ b/.rh-java-common-java_cup.metadata @@ -0,0 +1 @@ +3b1c23d29cb082f0e5b901cef39e93f08927878e SOURCES/java_cup-0.11a.tar.bz2 diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/LICENSE.txt b/SOURCES/LICENSE.txt new file mode 100644 index 0000000..ba43a7d --- /dev/null +++ b/SOURCES/LICENSE.txt @@ -0,0 +1,19 @@ +CUP Parser Generator Copyright Notice, License, and Disclaimer +Copyright 1996-1999 by Scott Hudson, Frank Flannery, C. Scott Ananian + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both the copyright notice and this permission notice and warranty +disclaimer appear in supporting documentation, and that the names of the +authors or their employers not be used in advertising or publicity +pertaining to distribution of the software without specific, written +prior permission. + +The authors and their employers disclaim all warranties with regard to +this software, including all implied warranties of merchantability and +fitness. In no event shall the authors or their employers be liable for +any special, indirect or consequential damages or any damages whatsoever +resulting from loss of use, data or profits, whether in an action of +contract, negligence or other tortious action, arising out of or in +connection with the use or performance of this software. diff --git a/SOURCES/java_cup-0.11a-manifest.patch b/SOURCES/java_cup-0.11a-manifest.patch new file mode 100644 index 0000000..bf0dbcd --- /dev/null +++ b/SOURCES/java_cup-0.11a-manifest.patch @@ -0,0 +1,24 @@ +From 447c8beb89190adc2c51c533e93ad26f8eaf34d9 Mon Sep 17 00:00:00 2001 +From: Lubomir Rintel +Date: Sat, 4 Dec 2010 10:27:15 -0500 +Subject: [PATCH] Remove class path from jar manifest + +--- + build.xml | 1 - + 1 files changed, 0 insertions(+), 1 deletions(-) + +diff --git a/build.xml b/build.xml +index 06170de..06e2a7d 100644 +--- a/build.xml ++++ b/build.xml +@@ -62,7 +62,6 @@ + + + +- + + + +-- +1.7.3.1 + diff --git a/SOURCES/java_cup-build.patch b/SOURCES/java_cup-build.patch new file mode 100644 index 0000000..bd1435d --- /dev/null +++ b/SOURCES/java_cup-build.patch @@ -0,0 +1,22 @@ +--- build.xml.sav 2006-03-28 14:34:52.000000000 +0300 ++++ build.xml 2010-01-08 12:50:20.346608627 +0200 +@@ -76,4 +76,19 @@ + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + diff --git a/SOURCES/java_cup-pom.xml b/SOURCES/java_cup-pom.xml new file mode 100644 index 0000000..66b1d9a --- /dev/null +++ b/SOURCES/java_cup-pom.xml @@ -0,0 +1,10 @@ + + 4.0.0 + java_cup + java_cup + jar + Java CUP + 0.11a + diff --git a/SOURCES/java_cup-runtime-MANIFEST.MF b/SOURCES/java_cup-runtime-MANIFEST.MF new file mode 100644 index 0000000..6d79887 --- /dev/null +++ b/SOURCES/java_cup-runtime-MANIFEST.MF @@ -0,0 +1,9 @@ +Manifest-Version: 1.0 +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: J2SE-1.4 +Bundle-Name: %pluginName +Bundle-SymbolicName: java_cup.runtime +Export-Package: java_cup.runtime +Bundle-Version: 0.11.0 +Bundle-ManifestVersion: 2 diff --git a/SPECS/java_cup.spec b/SPECS/java_cup.spec new file mode 100644 index 0000000..3a27d00 --- /dev/null +++ b/SPECS/java_cup.spec @@ -0,0 +1,320 @@ +%global pkg_name java_cup +%{?scl:%scl_package %{pkg_name}} +%{?java_common_find_provides_and_requires} + +# Copyright (c) 2000-2005, JPackage Project +# 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 + +Name: %{?scl_prefix}%{pkg_name} +Version: 0.11a +Release: 16.14%{?dist} +Epoch: 1 +Summary: Java source interpreter +License: MIT +URL: http://www.cs.princeton.edu/%7Eappel/modern/java/CUP/ +#svn export -r 21 https://www2.in.tum.de/repos/cup/develop/ java_cup-0.11a +#tar cjf java_cup-0.11a.tar.bz2 java_cup-0.11a/ +Source0: java_cup-0.11a.tar.bz2 +Source1: java_cup-pom.xml +Source2: %{pkg_name}-runtime-MANIFEST.MF +# Taken from http://www2.cs.tum.edu/projects/cup/ +Source3: LICENSE.txt +Patch0: %{pkg_name}-build.patch +Patch1: java_cup-0.11a-manifest.patch + +BuildRequires: %{?scl_prefix}ant +BuildRequires: %{?scl_prefix}javapackages-tools +BuildRequires: %{?scl_prefix_maven}jflex +%if ! %{with_bootstrap} +BuildRequires: %{?scl_prefix}java_cup >= 1:0.11a +%endif +BuildRequires: zip + +BuildArch: noarch + + +%description +java_cup is a LALR Parser Generator for Java + +%package javadoc +Summary: Javadoc for java_cup + +%description javadoc +Javadoc for java_cup + +%package manual +Summary: Documentation for java_cup +Requires: %{?scl_prefix}runtime + +%description manual +Documentation for java_cup. + +%prep +%setup -q -n %{pkg_name}-%{version} +%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} +set -e -x +%patch0 -b .build +%patch1 -p1 -b .manifest +cp %{SOURCE1} pom.xml +cp %{SOURCE3} . + +# remove all binary files +find -name "*.class" -delete + +%if ! %{with_bootstrap} +# remove prebuilt JFlex +rm -rf java_cup-0.11a/bin/JFlex.jar + +# remove prebuilt java_cup, if not bootstrapping +rm -rf java_cup-0.11a/bin/java-cup-11.jar +%endif +%{?scl:EOF} + +%build +%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} +set -e -x +%if ! %{with_bootstrap} +export CLASSPATH=$(build-classpath java_cup java_cup-runtime jflex) +%endif + +ant +find -name parser.cup -delete +ant javadoc +%{?scl:EOF} + +%install +%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} +set -e -x +# inject OSGi manifest +mkdir -p META-INF +cp -p %{SOURCE2} META-INF/MANIFEST.MF +touch META-INF/MANIFEST.MF +zip -u dist/java-cup-%{pkg_version}-runtime.jar META-INF/MANIFEST.MF + +# jar +install -d -m 755 %{buildroot}%{_javadir} +install -m 644 dist/java-cup-%{pkg_version}.jar %{buildroot}%{_javadir}/%{pkg_name}.jar +install -m 644 dist/java-cup-%{pkg_version}-runtime.jar %{buildroot}%{_javadir}/%{pkg_name}-runtime.jar + +# poms +install -d -m 755 %{buildroot}%{_mavenpomdir} +install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{pkg_name}.pom +%add_maven_depmap + +# javadoc +install -d -m 755 %{buildroot}%{_javadocdir}/%{name} +cp -pr dist/javadoc/* %{buildroot}%{_javadocdir}/%{name} +%{?scl:EOF} + +%files -f .mfiles +%doc changelog.txt LICENSE.txt +%{_javadir}/* + +%files manual +%doc manual.html LICENSE.txt + +%files javadoc +%doc LICENSE.txt +%{_javadocdir}/%{name} + +%changelog +* Wed Jan 14 2015 Mikolaj Izdebski - 1:0.11a-16.14 +- Add requires on SCL filesystem package + +* Tue Jan 13 2015 Michael Simacek - 1:0.11a-16.13 +- Mass rebuild 2015-01-13 + +* Fri Jan 09 2015 Michal Srb - 1:0.11a-16.12 +- Mass rebuild 2015-01-09 + +* Wed Jan 07 2015 Michal Srb - 0.11a-16.11 +- Migrate to .mfiles + +* Tue Dec 16 2014 Mikolaj Izdebski - 1:0.11a-16.10 +- Migrate requires and build-requires to rh-java-common + +* Mon Dec 15 2014 Mikolaj Izdebski - 1:0.11a-16.9 +- Mass rebuild 2014-12-15 + +* Mon Dec 15 2014 Mikolaj Izdebski - 1:0.11a-16.8 +- Rebuild for rh-java-common collection + +* Mon May 26 2014 Mikolaj Izdebski - 1:0.11a-16.7 +- Mass rebuild 2014-05-26 + +* Wed Feb 19 2014 Mikolaj Izdebski - 1:0.11a-16.6 +- Mass rebuild 2014-02-19 + +* Tue Feb 18 2014 Mikolaj Izdebski - 1:0.11a-16.5 +- Mass rebuild 2014-02-18 + +* Tue Feb 18 2014 Mikolaj Izdebski - 1:0.11a-16.4 +- Remove requires on java + +* Mon Feb 17 2014 Michal Srb - 1:0.11a-16.3 +- SCL-ize BR/R + +* Thu Feb 13 2014 Mikolaj Izdebski - 1:0.11a-16.2 +- Rebuild to regenerate auto-requires + +* Tue Feb 11 2014 Mikolaj Izdebski - 1:0.11a-16.1 +- First maven30 software collection build + +* Fri Dec 27 2013 Daniel Mach - 1:0.11a-16 +- Mass rebuild 2013-12-27 + +* Thu Nov 07 2013 Stanislav Ochotnicky - 1:0.11a-15 +- Use add_maven_depmap instead of deprecated +- Resolves: rhbz#1027719 + +* Fri Jul 12 2013 Mikolaj Izdebski - 1:0.11a-14 +- Remove workaround for rpm bug #646523 + +* Fri Jun 28 2013 Mikolaj Izdebski - 1:0.11a-13 +- Rebuild to regenerate API documentation +- Resolves: CVE-2013-1571 + +* Thu Feb 14 2013 Fedora Release Engineering - 1:0.11a-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Nov 13 2012 gil cattaneo 1:0.11a-11 +- adapt to current guideline +- add %%pre javadoc script + +* Tue Nov 13 2012 Tom Callaway - 1:0.11a-10 +- include copy of LICENSE, correct License tag + +* Thu Jul 19 2012 Fedora Release Engineering - 1:0.11a-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sun Jun 24 2012 Gerard Ryan - 1:0.11a-8 +- Inject OSGI Manifest for java-cup-runtime.jar + +* Fri Jan 13 2012 Fedora Release Engineering - 1:0.11a-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 1:0.11a-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Dec 04 2010 Lubomir Rintel 1:0.11a-5 +- Require appropriate packages for depmap maintenance in scriptlets +- Remove classpath from jar manifest + +* Mon Feb 15 2010 Alexander Kurtakov 1:0.11a-4 +- Add maven pom and depmap. + +* Wed Jan 20 2010 Alexander Kurtakov 1:0.11a-3 +- Fix bootstrap. + +* Sun Jan 17 2010 Miloš Jakubíček - 1:0.11a-2 +- Rebuilt in non-bootstrap mode (removed all prebuilt jars). +- Added BR: jflex and java_cup >= 1:0.11a for non-bootstrap mode +- Remove unnecessary R(post,postun): coreutils + +* Fri Jan 8 2010 Alexander Kurtakov 1:0.11a-1 +- Update to 0.11a. +- Drop gcj_support. + +* Fri Jul 24 2009 Fedora Release Engineering - 1:0.10k-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 1:0.10k-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Jul 15 2008 Lubomir Rintel - 1:0.10k-1 +- Fix the version to match upstream, so that FEver can be used + +* Wed Jul 9 2008 Tom "spot" Callaway - 1:0.10-0.k.6.3 +- drop repotag + +* Sun Feb 17 2008 Lubomir Kundrak - 1:0.10-0.k.6jpp.2 +- Ant task +- Clean up to satisfy QA script and rpmlint + +* Fri Aug 04 2006 Vivek Lakshmanan - 1:0.10-0.k.6jpp.1 +- Re-sync with latest version from JPP. +- Partially adopt new naming convention. + +* Sat Jul 22 2006 Jakub Jelinek - 1:0.10-0.k.5jpp_2fc +- Rebuilt + +* Thu Jul 20 2006 Vivek Lakshmanan - 1:0.10-0.k.5jpp_1fc +- Re-sync with latest version from JPP. + +* Wed Jul 19 2006 Vivek Lakshmanan - 1:0.10-0.k.4jpp_1fc +- Conditional native compilation for GCJ. + +* Wed Jul 12 2006 Jesse Keating - 1:0.10-0.k.1jpp_10fc +- rebuild + +* Mon Mar 6 2006 Jeremy Katz - 1:0.10-0.k.1jpp_9fc +- stop scriptlet spew + +* Fri Feb 10 2006 Jesse Keating - 1:0.10-0.k.1jpp_8fc +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating - 1:0.10-0.k.1jpp_7fc +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Tue Jan 3 2006 Jesse Keating 1:0.10-0.k.1jpp_6fc +- rebuilt again + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Tue Jul 19 2005 Gary Benson 1:0.10-0.k.1jpp_5fc +- Build on ia64, ppc64, s390 and s390x. +- Switch to aot-compile-rpm. + +* Tue Jun 28 2005 Gary Benson 1:0.10-0.k.1jpp_4fc +- BC-compile. + +* Tue Jun 21 2005 Gary Benson 1:0.10-0.k.1jpp_3fc +- Remove classes from the tarball. + +* Thu Nov 4 2004 Gary Benson 1:0.10-0.k.1jpp_2fc +- Build into Fedora. + +* Thu Mar 4 2004 Frank Ch. Eigler 1:0.10-0.k.1jpp_1rh +- RH vacuuming + +* Thu Jan 22 2004 David Walluck 1:0.10-0.k.1jpp +- fix version/release (bump epoch) +- change License tag from Free to BSD-style +- add Distribution tag +- really update for JPackage 1.5 + +* Wed Mar 26 2003 Paul Nasrat 0.10k-1jpp +- for jpackage-utils 1.5 +- New spec reverse engineered from binary rpms