From a8926f18e156d5e28489ecdca70119aa7c509509 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 03:00:15 +0000 Subject: [PATCH] =?UTF-8?q?auto-import=20changelog=20data=20from=20antlr-2?= =?UTF-8?q?.7.2-3jpp.src.rpm=202.7.2-3jpp=20-=20Add=20non-versioned=20java?= =?UTF-8?q?doc=20dir=20symlink.=20-=20Crosslink=20with=20local=20J2SE=20ja?= =?UTF-8?q?vadocs.=20-=20Spec=20cleanups,=20change=20to=20UTF-8.=202.7.2-2?= =?UTF-8?q?jpp=20-=20Rebuild=20for=20JPackage=201.5.=20Sat=20Mar=2001=2020?= =?UTF-8?q?03=20Ville=20Skytt=C3=A4=20=20-=202?= =?UTF-8?q?.7.2-1jpp=20-=20Update=20to=202.7.2.=20-=20Include=20antlr=20sc?= =?UTF-8?q?ript=20and=20jEdit=20mode=20(see=20antlr-jedit=20RPM=20descript?= =?UTF-8?q?ion).=20-=20Use=20sed=20instead=20of=20bash=202=20extension=20w?= =?UTF-8?q?hen=20symlinking=20jars=20during=20build.=20Tue=20May=2007=2020?= =?UTF-8?q?02=20Guillaume=20Rousse=20?= =?UTF-8?q?=20=20=20=20=202.7.1-8jpp=20-=20really=20section=20macro=20-=20?= =?UTF-8?q?hardcoded=20distribution=20and=20vendor=20tag=20-=20group=20tag?= =?UTF-8?q?=20again=20Thu=20May=2002=202002=20Guillaume=20Rousse=20=20=20=20=20=202.7.1-7jpp=20-=20d?= =?UTF-8?q?istribution=20tag=20-=20group=20tag=20-=20section=20macro=20Fri?= =?UTF-8?q?=20Jan=2018=202002=20Guillaume=20Rousse=20=20=20=20=20=202.7.1-6jpp=20-=20versioned=20dir?= =?UTF-8?q?=20for=20javadoc=20-=20no=20dependencies=20for=20manual=20and?= =?UTF-8?q?=20javadoc=20packages=20-=20additional=20sources=20in=20individ?= =?UTF-8?q?ual=20archives=20Sat=20Dec=2001=202001=20Guillaume=20Rousse=20=20=20=20=20=202.7.1-5jpp?= =?UTF-8?q?=20-=20javadoc=20in=20javadoc=20package=20Wed=20Nov=2021=202001?= =?UTF-8?q?=20Christian=20Zoffoli=20=202.7.1-4?= =?UTF-8?q?jpp=20-=20removed=20packager=20tag=20-=20new=20jpp=20extension?= =?UTF-8?q?=20Sat=20Oct=2006=202001=20Guillaume=20Rousse=20=20=20=20=20=202.7.1-3jpp=20-=20used=20a?= =?UTF-8?q?=20build=20file=20instead=20of=20makefile=20-=20build=20classes?= =?UTF-8?q?=20instead=20of=20blindly=20jared=20them=20!=20-=20used=20origi?= =?UTF-8?q?nal=20tarball=20-=20corrected=20license=20spelling=20Sun=20Sep?= =?UTF-8?q?=2030=202001=20Guillaume=20Rousse=20=20=20=20=20=202.7.1-2jpp=20-=20first=20unified=20rel?= =?UTF-8?q?ease=20-=20s/jPackage/JPackage=20Tue=20Aug=2028=202001=20Guilla?= =?UTF-8?q?ume=20Rousse=20=20=20=20?= =?UTF-8?q?=20=202.7.1-1mdk=20-=20first=20Mandrake=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cvsignore | 1 + antlr-build.xml | 71 +++++++++++++++++++ antlr-jedit.patch | 33 +++++++++ antlr-script | 25 +++++++ antlr.spec | 169 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 6 files changed, 300 insertions(+) create mode 100644 antlr-build.xml create mode 100644 antlr-jedit.patch create mode 100644 antlr-script create mode 100644 antlr.spec diff --git a/.cvsignore b/.cvsignore index e69de29..06cf0e6 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +antlr-2.7.2.tar.gz diff --git a/antlr-build.xml b/antlr-build.xml new file mode 100644 index 0000000..eadf11b --- /dev/null +++ b/antlr-build.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/antlr-jedit.patch b/antlr-jedit.patch new file mode 100644 index 0000000..9545750 --- /dev/null +++ b/antlr-jedit.patch @@ -0,0 +1,33 @@ +--- extras/antlr-jedit.xml~ 2003-03-01 23:28:04.000000000 +0200 ++++ extras/antlr-jedit.xml 2003-03-01 23:38:17.000000000 +0200 +@@ -16,9 +16,6 @@ + + + +- +- +- + + + +@@ -97,9 +94,7 @@ + + + +- +- +- ++ + + /**/ + +@@ -149,9 +144,6 @@ + + + +- +- +- + + { + diff --git a/antlr-script b/antlr-script new file mode 100644 index 0000000..6389106 --- /dev/null +++ b/antlr-script @@ -0,0 +1,25 @@ +#!/bin/sh +# +# antlr script +# JPackage Project + +# Source functions library +if [ -f /usr/share/java-utils/java-functions ] ; then + . /usr/share/java-utils/java-functions +else + echo "Can't find functions library, aborting" + exit 1 +fi + +# Configuration +MAIN_CLASS="antlr.Tool" +BASE_FLAGS="" +BASE_JARS="antlr.jar" + +# Set parameters +set_jvm +set_classpath $BASE_JARS +set_flags $BASE_FLAGS + +# Let's start +run "$@" diff --git a/antlr.spec b/antlr.spec new file mode 100644 index 0000000..527ba5e --- /dev/null +++ b/antlr.spec @@ -0,0 +1,169 @@ +%define section free + +Summary: ANother Tool for Language Recognition +Name: antlr +Version: 2.7.2 +Release: 3jpp +Epoch: 0 +License: Public Domain +URL: http://www.antlr.org/ +Group: Development/Code Generators +Vendor: JPackage Project +Distribution: JPackage +Source0: http://www.antlr.org/download/antlr-2.7.2.tar.gz +Source1: %{name}-build.xml +Source2: %{name}-script +Patch0: %{name}-jedit.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot + +BuildArch: noarch +BuildRequires: ant, perl, java-javadoc +Requires: jpackage-utils + +%description +ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a +language tool that provides a framework for constructing recognizers, +compilers, and translators from grammatical descriptions containing +C++ or Java actions [You can use PCCTS 1.xx to generate C-based +parsers]. + +%package manual +Group: Development/Code Generators +Summary: Manual for %{name} + +%description manual +Documentation for %{name}. + +%package javadoc +Group: Development/Documentation +Summary: Javadoc for %{name} + +%description javadoc +Javadoc for %{name}. + +%package jedit +Group: Text Editors +Summary: ANTLR mode for jEdit +Requires: jedit >= 0:4.1 + +%description jedit +ANTLR mode for jEdit. To enable this mode, insert the following into your +%{_datadir}/jedit/modes/catalog: + + + + +%prep +%setup -q +%patch0 -p0 +cp -p %{SOURCE1} build.xml +# remove all binary libs +find . -name "*.jar" -exec rm -f {} \; +# fixup paths to manual +perl -pi -e 's|"doc/|"%{_docdir}/%{name}-manual-%{version}/|g' \ + install.html + + +%build +ant -Dj2se.apidoc=%{_javadocdir}/java + + +%install +rm -rf $RPM_BUILD_ROOT + +# jars +mkdir -p $RPM_BUILD_ROOT%{_javadir} +cp -p work/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar +(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) + +# script (use the same name as in scripts/) +mkdir -p $RPM_BUILD_ROOT%{_bindir} +cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/run-antlr + +# javadoc +mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +cp -pr work/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} + +# jedit mode +mkdir -p $RPM_BUILD_ROOT%{_datadir}/jedit/modes +cp -p extras/antlr-jedit.xml $RPM_BUILD_ROOT%{_datadir}/jedit/modes/antlr.xml + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post javadoc +rm -f %{_javadocdir}/%{name} +ln -s %{name}-%{version} %{_javadocdir}/%{name} + + +%files +%defattr(0644,root,root,0755) +%doc install.html RIGHTS +%attr(0755,root,root) %{_bindir}/* +%{_javadir}/* + +%files manual +%defattr(0644,root,root,0755) +%doc doc/* + +%files javadoc +%defattr(0644,root,root,0755) +%doc %{_javadocdir}/%{name}-%{version} +%ghost %doc %{_javadocdir}/%{name} + +%files jedit +%defattr(0644,root,root,0755) +%{_datadir}/jedit/modes/* + + +%changelog +* Mon Dec 15 2003 Ville Skyttä - 0:2.7.2-3jpp +- Add non-versioned javadoc dir symlink. +- Crosslink with local J2SE javadocs. +- Spec cleanups, change to UTF-8. + +* Sun Mar 30 2003 Ville Skyttä - 0:2.7.2-2jpp +- Rebuild for JPackage 1.5. + +* Sat Mar 1 2003 Ville Skyttä - 2.7.2-1jpp +- Update to 2.7.2. +- Include antlr script and jEdit mode (see antlr-jedit RPM description). +- Use sed instead of bash 2 extension when symlinking jars during build. + +* Tue May 07 2002 Guillaume Rousse 2.7.1-8jpp +- really section macro +- hardcoded distribution and vendor tag +- group tag again + +* Thu May 2 2002 Guillaume Rousse 2.7.1-7jpp +- distribution tag +- group tag +- section macro + +* Fri Jan 18 2002 Guillaume Rousse 2.7.1-6jpp +- versioned dir for javadoc +- no dependencies for manual and javadoc packages +- additional sources in individual archives + +* Sat Dec 1 2001 Guillaume Rousse 2.7.1-5jpp +- javadoc in javadoc package + +* Wed Nov 21 2001 Christian Zoffoli 2.7.1-4jpp +- removed packager tag +- new jpp extension + +* Sat Oct 6 2001 Guillaume Rousse 2.7.1-3jpp +- used a build file instead of makefile +- build classes instead of blindly jared them ! +- used original tarball +- corrected license spelling + +* Sun Sep 30 2001 Guillaume Rousse 2.7.1-2jpp +- first unified release +- s/jPackage/JPackage + +* Tue Aug 28 2001 Guillaume Rousse 2.7.1-1mdk +- first Mandrake release diff --git a/sources b/sources index e69de29..7958122 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d67ffcaba6b2cedd99601b9052f63957 antlr-2.7.2.tar.gz