avatar
Rosa has added 2330d2e444
Automatic import for version 2.7.7-7.ep5.el6
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "antlr-2.7.7.tar.gz": 802655c343cc7806aaf1ec2177a0e663ff209de1
view file @ 2330d2e444
... ... --- /dev/null
... ... +++ b/antlr-2.7.7-newgcc.patch
... ... @@ -0,0 +1,12 @@
1
diff -up ./lib/cpp/antlr/CharScanner.hpp.sav ./lib/cpp/antlr/CharScanner.hpp
2
--- ./lib/cpp/antlr/CharScanner.hpp.sav	2009-03-20 14:42:43.000000000 -0400
3
+++ ./lib/cpp/antlr/CharScanner.hpp	2009-03-20 14:43:29.000000000 -0400
4
@@ -11,6 +11,8 @@
5
 #include <antlr/config.hpp>
6
 
7
 #include <map>
8
+#include <strings.h>
9
+#include <cstdio>
10
 
11
 #ifdef HAS_NOT_CCTYPE_H
12
 #include <ctype.h>
view file @ 2330d2e444
... ... --- /dev/null
... ... +++ b/antlr-2.7.7.pom
... ... @@ -0,0 +1,22 @@
1
<project>
2
  <modelVersion>4.0.0</modelVersion>
3
  <groupId>antlr</groupId>
4
  <artifactId>antlr</artifactId>
5
  <packaging>jar</packaging>
6
  <version>2.7.7</version>
7
  <name>AntLR Parser Generator</name>
8
  <description>
9
    A framework for constructing recognizers, compilers,
10
    and translators from grammatical descriptions containing
11
    Java, C#, C++, or Python actions.
12
  </description>
13
  <url>http://www.antlr.org/</url>
14
  <licenses>
15
    <license>
16
      <name>BSD License</name>
17
      <url>http://www.antlr.org/license.html</url>
18
      <distribution>repo</distribution>
19
    </license>
20
  </licenses>
21
  <dependencies/>
22
</project>
view file @ 2330d2e444
... ... --- /dev/null
... ... +++ b/antlr-build.xml
... ... @@ -0,0 +1,71 @@
1
<!-- simple generic build file -->
2
3
<project name="antlr" default="all" basedir=".">
4
5
  <!-- Properties -->
6
7
  <property name="name" value="antlr"/>
8
  <property name="src" value="src"/>
9
  <property name="build" value="work"/>
10
  <property name="build.classes" value="${build}/classes"/>
11
  <property name="build.doc" value="${build}/api"/>
12
  <property name="build.lib" value="${build}/lib"/>
13
  <property name="packagenames" value="antlr.*"/>
14
  <property name="j2se.apidoc" value="http://java.sun.com/j2se/1.4/docs/api/"/>
15
16
  <!-- Targets -->
17
18
  <!-- Prepare build directories -->
19
  <target name="prepare">
20
    <mkdir dir="${src}"/>
21
    <mkdir dir="${build}"/>
22
    <mkdir dir="${build.classes}"/>
23
    <mkdir dir="${build.lib}"/>
24
    <mkdir dir="${build.doc}"/>
25
    <copy todir="${src}/antlr">
26
      <fileset dir="antlr"/>
27
    </copy>
28
  </target>
29
30
  <!-- Kill all the created directories -->
31
  <target name="clean">
32
    <delete dir="${build}"/>
33
    <delete dir="${src}"/>
34
  </target>
35
36
  <!-- Build classes -->
37
  <target name="classes" depends="prepare">
38
    <javac srcdir="${src}" destdir="${build.classes}"
39
      debug="off" optimize="on" deprecation="on"/>
40
  </target>
41
42
  <!-- Build jar archives -->
43
  <target name="jar" depends="classes">
44
    <jar jarfile="${build.lib}/${name}.jar" basedir="${build.classes}"
45
      index="true">
46
      <manifest>
47
        <attribute name="Main-Class" value="antlr.Tool"/>
48
      </manifest>
49
    </jar>
50
  </target>
51
52
  <!-- Build the full JavaDocs -->
53
  <target name="javadoc" depends="prepare">
54
    <javadoc sourcepath="${src}"
55
      destdir="${build.doc}"
56
      doctitle="${name} Javadoc"
57
      windowtitle="${name} Javadoc"
58
      package="true"
59
      author="true"
60
      version="true"
61
      packagenames="${packagenames}"
62
      splitindex="true"
63
      use="true">
64
      <link href="${j2se.apidoc}"/>
65
    </javadoc>
66
  </target>
67
68
  <!-- Build everything -->
69
  <target name="all" depends="jar,javadoc"/>
70
71
</project>
view file @ 2330d2e444
... ... --- /dev/null
... ... +++ b/antlr-component-info.xml
... ... @@ -0,0 +1,15 @@
1
<project name="antlr-component-info">
2
   <component id="antlr"
3
              licenseType="antlr"
4
              version="@VERSION@"
5
              projectHome="http://www.antlr.org/"
6
              description="ANother Tool for Language Recognition"
7
              scm=":ext:cvs.devel.redhat.com:/cvs/dist/antlr"
8
              tag="@TAG@">
9
      <artifact id="antlr.jar"/>
10
      <export>
11
         <include input="antlr.jar"/>
12
      </export>
13
   </component>
14
15
</project>
view file @ 2330d2e444
... ... --- /dev/null
... ... +++ b/antlr-jedit.patch
... ... @@ -0,0 +1,33 @@
1
--- extras/antlr-jedit.xml~	2003-03-01 23:28:04.000000000 +0200
2
+++ extras/antlr-jedit.xml	2003-03-01 23:38:17.000000000 +0200
3
@@ -16,9 +16,6 @@
4
 	</PROPS>
5
    
6
    <RULES DEFAULT="KEYWORD1">
7
-		<!-- whitespace: (space and tab) -->
8
-		<WHITESPACE> </WHITESPACE>
9
-		<WHITESPACE>	</WHITESPACE>
10
 
11
       <!-- antlr specific rules -->
12
       <SPAN DELEGATE="java::MAIN" TYPE="KEYWORD1">
13
@@ -97,9 +94,7 @@
14
    </RULES>
15
    
16
    <RULES DEFAULT="KEYWORD2" SET="PRODUCTION">
17
-		<!-- whitespace: (space and tab) -->
18
-		<WHITESPACE> </WHITESPACE>
19
-		<WHITESPACE>	</WHITESPACE>
20
+
21
 		<!-- Silly comment -->
22
 		<SEQ TYPE="COMMENT1">/**/</SEQ>
23
 
24
@@ -149,9 +144,6 @@
25
    </RULES>
26
 
27
    <RULES SET="KEYVALUE">
28
-		<!-- whitespace: (space and tab) -->
29
-		<WHITESPACE> </WHITESPACE>
30
-		<WHITESPACE>	</WHITESPACE>
31
       
32
       <SEQ TYPE="KEYWORD1">{</SEQ>
33
       
... ... --- /dev/null
... ... +++ b/antlr-script
... ... @@ -0,0 +1,25 @@
1
#!/bin/sh
2
#
3
# antlr script
4
# JPackage Project <http://www.jpackage.org/>
5
6
# Source functions library
7
if [ -f /usr/share/java-utils/java-functions ] ; then
8
  . /usr/share/java-utils/java-functions
9
else
10
  echo "Can't find functions library, aborting"
11
  exit 1
12
fi
13
14
# Configuration
15
MAIN_CLASS="antlr.Tool"
16
BASE_FLAGS=""
17
BASE_JARS="antlr.jar"
18
19
# Set parameters
20
set_jvm
21
set_classpath $BASE_JARS
22
set_flags $BASE_FLAGS
23
24
# Let's start
25
run "$@"
... ... --- /dev/null
... ... +++ b/antlr.spec
... ... @@ -0,0 +1,513 @@
1
# Copyright (c) 2000-2011, JPackage Project
2
# All rights reserved.
3
#
4
# Redistribution and use in source and binary forms, with or without
5
# modification, are permitted provided that the following conditions
6
# are met:
7
#
8
# 1. Redistributions of source code must retain the above copyright
9
#    notice, this list of conditions and the following disclaimer.
10
# 2. Redistributions in binary form must reproduce the above copyright
11
#    notice, this list of conditions and the following disclaimer in the
12
#    documentation and/or other materials provided with the
13
#    distribution.
14
# 3. Neither the name of the JPackage Project nor the names of its
15
#    contributors may be used to endorse or promote products derived
16
#    from this software without specific prior written permission.
17
#
18
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
#
30
31
%define with()          %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
32
%define without()       %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
33
%define bcond_with()    %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
34
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
35
36
%bcond_with gcj_support
37
%bcond_with native
38
%bcond_without repolib
39
40
%define repodir %{_javadir}/repository.jboss.com/antlr/%{version}-brew
41
%define repodirlib %{repodir}/lib
42
%define repodirsrc %{repodir}/src
43
44
%if %with gcj_support
45
%define gcj_support 1
46
%else
47
%define gcj_support 0
48
%endif
49
50
%define with_mono %{?_with_mono:1}%{!?_with_mono:%{?rhel:0}%{!?rhel:1}}
51
52
%define build_jedit  %{?_with_jedit:1}%{!?_with_jedit:0}
53
54
%define section free
55
%define native  %{?_with_native:1}%{!?_with_native:0}
56
57
%global debug_package %{nil}
58
59
Summary:        ANother Tool for Language Recognition
60
Name:           antlr
61
Version:        2.7.7
62
Release:        7%{?dist}
63
Epoch:          0
64
License:        Public Domain
65
URL:            http://www.antlr.org/
66
Group:          Development/Code Generators
67
Source0:        http://www.antlr2.org/download/antlr-%{version}.tar.gz
68
Source1:        %{name}-build.xml
69
Source2:        %{name}-script
70
#http://www.antlr.org/share/1069557132934/makefile.gcj
71
Source3:        makefile.gcj
72
Source4:        antlr-component-info.xml
73
Source5:        http://repo2.maven.org/maven2/antlr/antlr/2.7.7/antlr-2.7.7.pom
74
Patch0:         %{name}-jedit.patch
75
Patch1:         %{name}-%{version}-newgcc.patch
76
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
77
78
%if %with native
79
BuildRequires:  %{_bindir}/gcj, %{__make}
80
%else
81
%if %{gcj_support}
82
BuildRequires:  java-gcj-compat-devel
83
%else
84
BuildArch:      noarch
85
%endif
86
BuildRequires:  ant
87
88
%if 0%{?with_mono}
89
%ifnarch s390 s390x ppc64 sparc64
90
BuildRequires:  mono-core
91
BuildRequires:  mono-winforms
92
%endif
93
%endif
94
95
BuildRequires:  %{__perl}, java-javadoc
96
BuildRequires:  jboss-parent
97
BuildRequires:  maven-buildmagic-thirdparty-plugin
98
Requires:       jpackage-utils
99
Requires(post): %{_sbindir}/update-alternatives
100
Requires(postun): %{_sbindir}/update-alternatives
101
%endif
102
Requires(post): jpackage-utils
103
Requires(postun): jpackage-utils
104
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
105
106
%description
107
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a
108
language tool that provides a framework for constructing recognizers,
109
compilers, and translators from grammatical descriptions containing
110
C++ or Java actions [You can use PCCTS 1.xx to generate C-based
111
parsers].
112
113
%if %with repolib
114
%package repolib
115
Summary:        Artifacts to be uploaded to a repository library
116
Group:          Development/Libraries/Java
117
118
%description repolib
119
Artifacts to be uploaded to a repository library.
120
This package is not meant to be installed but so its contents
121
can be extracted through rpm2cpio.
122
%endif
123
124
%package        native
125
Group:          Development/Code Generators
126
Summary:        ANother Tool for Language Recognition (native version)
127
Requires(post): %{_sbindir}/update-alternatives
128
Requires(postun): %{_sbindir}/update-alternatives
129
130
%description    native
131
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a
132
language tool that provides a framework for constructing recognizers,
133
compilers, and translators from grammatical descriptions containing
134
C++ or Java actions [You can use PCCTS 1.xx to generate C-based
135
parsers].  This package includes the native version of the antlr tool.
136
137
%package        manual
138
Group:          Development/Code Generators
139
Summary:        Manual for %{name}
140
141
%description    manual
142
Documentation for %{name}.
143
144
%package        javadoc
145
Group:          Development/Documentation
146
Summary:        Javadoc for %{name}
147
Requires:       jpackage-utils
148
149
%description    javadoc
150
Javadoc for %{name}.
151
152
%if %{build_jedit}
153
%package        jedit
154
Group:          Text Editors
155
Summary:        ANTLR mode for jEdit
156
Requires:       jedit >= 0:4.1
157
158
%description    jedit
159
ANTLR mode for jEdit.  To enable this mode, insert the following into your
160
%{_datadir}/jedit/modes/catalog:
161
162
  <MODE NAME="antlr" FILE="antlr.xml" FILE_NAME_GLOB="*.g"/>
163
%endif
164
165
%prep
166
%setup -q
167
# remove all binary libs
168
find . -name "*.jar" -exec rm -f {} \;
169
%if %without native
170
%patch0 -p0
171
cp -p %{SOURCE1} build.xml
172
# fixup paths to manual
173
%{__perl} -pi -e 's|"doc/|"%{_docdir}/%{name}-manual-%{version}/|g' \
174
  install.html
175
%endif
176
%{__perl} -pi -e 's/\r$//' LICENSE.txt
177
%patch1
178
179
%build
180
%if %with native
181
%{__make} -f %{SOURCE3} COMPOPTS="%{optflags}"
182
183
%else
184
ant -Dj2se.apidoc=%{_javadocdir}/java
185
cp work/lib/antlr.jar .  # make expects to find it here
186
export CLASSPATH=.
187
%configure --without-examples
188
make CXXFLAGS="${CXXFLAGS} -fPIC"
189
190
find . -type f > /tmp/antlr.filelist
191
rm antlr.jar             # no longer needed
192
%endif
193
194
%install
195
rm -rf %{buildroot}
196
197
install -dm 755 %{buildroot}%{_bindir}
198
touch %{buildroot}%{_bindir}/antlr # for %%ghost
199
200
%if %with native
201
202
install -pm 755 cantlr %{buildroot}%{_bindir}/antlr-native
203
204
%else
205
# jars
206
mkdir -p %{buildroot}%{_javadir}
207
cp -p work/lib/%{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
208
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `/bin/echo ${jar} | %{__sed} "s|-%{version}||g"`; done)
209
210
# pom
211
%{__mkdir_p} %{buildroot}%{_datadir}/maven2/poms
212
%{__cp} -p %{SOURCE5} %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom
213
%add_to_maven_depmap antlr antlr %{version} JPP %{name}
214
215
# script
216
cp -p %{SOURCE2} %{buildroot}%{_bindir}/antlr-java
217
218
# C++ lib and headers, antlr-config
219
%define headers %{_includedir}/%{name}
220
221
mkdir -p $RPM_BUILD_ROOT{%{headers},%{_libdir}}
222
install -m 644 lib/cpp/antlr/*.hpp $RPM_BUILD_ROOT%{headers}
223
install -m 644 lib/cpp/src/libantlr.a $RPM_BUILD_ROOT%{_libdir}
224
install -m 755 scripts/antlr-config $RPM_BUILD_ROOT%{_bindir}
225
226
# javadoc
227
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
228
cp -pr work/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}
229
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
230
231
# jedit mode
232
%if %{build_jedit}
233
mkdir -p %{buildroot}%{_datadir}/jedit/modes
234
cp -p extras/antlr-jedit.xml %{buildroot}%{_datadir}/jedit/modes/antlr.xml
235
%endif
236
%endif
237
238
# manual
239
mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}/
240
cp -pr doc/* %{buildroot}%{_docdir}/%{name}-%{version}/
241
242
%if %with repolib
243
install -d -m 755 %{buildroot}%{repodir}
244
install -d -m 755 %{buildroot}%{repodirlib}
245
install -p -m 644 %{SOURCE4} %{buildroot}%{repodir}/component-info.xml
246
tag=`echo %{name}-%{version}-%{release} | sed 's|\.|_|g'`
247
sed -i "s/@TAG@/$tag/g" %{buildroot}%{repodir}/component-info.xml
248
sed -i "s/@VERSION@/%{version}-brew/g" %{buildroot}%{repodir}/component-info.xml
249
install -d -m 755 %{buildroot}%{repodirsrc}
250
install -p -m 644 %{PATCH0} %{buildroot}%{repodirsrc}
251
install -p -m 644 %{PATCH1} %{buildroot}%{repodirsrc}
252
install -p -m 644 %{SOURCE0} %{buildroot}%{repodirsrc}
253
install -p -m 644 %{SOURCE1} %{buildroot}%{repodirsrc}
254
cp -p %{buildroot}%{_javadir}/%{name}-%{version}.jar %{buildroot}%{repodirlib}/antlr.jar
255
cp -p %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom %{buildroot}%{repodirlib}/antlr.pom
256
# maven2-brew
257
install -d -m 755 %{buildroot}%{_javadir}/repository.jboss.com/maven2-brew
258
pushd $RPM_BUILD_ROOT%{repodir}
259
%{_bindir}/mvn-jpp -e \
260
        org.jboss.maven.plugins:maven-buildmagic-thirdparty-plugin:maven-deploy\
261
        -Durl=file://%{buildroot}%{_javadir}/repository.jboss.com/maven2-brew
262
popd
263
# FIXME for some reason any deploy operation puts the pom inside a 2.7.4 dir
264
pushd %{buildroot}%{_javadir}/repository.jboss.com/maven2-brew/antlr/antlr
265
mv 2.7.4/* 2.7.7/
266
rm -Rf 2.7.4
267
popd
268
%endif
269
270
%if %{gcj_support}
271
%{_bindir}/aot-compile-rpm
272
%endif
273
274
%clean
275
rm -rf %{buildroot}
276
277
%post
278
%{_sbindir}/update-alternatives --install %{_bindir}/antlr \
279
  %{name} %{_bindir}/antlr-java 10
280
%if %{gcj_support}
281
if [ -x %{_bindir}/rebuild-gcj-db ]
282
then
283
  %{_bindir}/rebuild-gcj-db
284
fi
285
%endif
286
%update_maven_depmap
287
288
%postun
289
if [ $1 -eq 0 ] ; then
290
  %{_sbindir}/update-alternatives --remove %{name} %{_bindir}/antlr-java
291
fi
292
293
%update_maven_depmap
294
%if %with native
295
%if %{gcj_support}
296
if [ -x %{_bindir}/rebuild-gcj-db ]
297
then
298
  %{_bindir}/rebuild-gcj-db
299
fi
300
%endif
301
302
%post native
303
%{_sbindir}/update-alternatives --install %{_bindir}/antlr \
304
  %{name} %{_bindir}/antlr-native 20
305
306
%if %{gcj_support}
307
if [ -x %{_bindir}/rebuild-gcj-db ]
308
then
309
  %{_bindir}/rebuild-gcj-db
310
fi
311
%endif
312
313
%postun native
314
if [ $1 -eq 0 ] ; then
315
  %{_sbindir}/update-alternatives --remove %{name} %{_bindir}/antlr-native
316
fi
317
%endif
318
319
%if %{gcj_support}
320
if [ -x %{_bindir}/rebuild-gcj-db ]
321
then
322
  %{_bindir}/rebuild-gcj-db
323
fi
324
%endif
325
326
%if %with native
327
%files native
328
%defattr(0644,root,root,0755)
329
%doc INSTALL.txt LICENSE.txt
330
%defattr(0755,root,root,0755)
331
%ghost %{_bindir}/antlr
332
%{_bindir}/antlr-native
333
334
%else
335
%files
336
%defattr(0644,root,root,0755)
337
%doc INSTALL.txt LICENSE.txt
338
%{_javadir}*/%{name}-%{version}.jar
339
%{_javadir}*/%{name}.jar
340
%{headers}
341
%{_libdir}/libantlr.a
342
%defattr(0755,root,root,0755)
343
%ghost %{_bindir}/antlr
344
%{_bindir}/antlr-config
345
%{_bindir}/antlr-java
346
%{_datadir}/maven2/poms/JPP-%{name}.pom
347
%{_mavendepmapfragdir}/%{name}
348
%if %{gcj_support}
349
%dir %{_libdir}/gcj/%{name}
350
%attr(-,root,root) %{_libdir}/gcj/%{name}/*
351
%endif
352
353
%files manual
354
%defattr(0644,root,root,0755)
355
%doc %{_docdir}/%{name}-%{version}/
356
357
%files javadoc
358
%defattr(0644,root,root,0755)
359
%doc %{_javadocdir}/%{name}-%{version}
360
%doc %{_javadocdir}/%{name}
361
362
%if %{build_jedit}
363
%files jedit
364
%defattr(0644,root,root,0755)
365
%{_datadir}/jedit/modes/*
366
%endif
367
%endif
368
369
%if %with repolib
370
%files repolib
371
%defattr(0644,root,root,0755)
372
%dir %{_javadir}
373
%{_javadir}*/repository.jboss.com
374
%endif
375
376
%changelog
377
* Wed Mar 23 2011 Martha Benitez <mbenitez@redhat.com> - 0:2.7.7-7
378
- Merge from RHEL6
379
380
* Tue Mar 22 2011 Martha Benitez <mbenitez@redhat.com> - 0:2.7.7-1.4
381
- Rebuild
382
383
* Tue Mar 22 2011 Martha Benitez <mbenitez@redhat.com> - 0:2.7.7-1.3
384
- Rebuild
385
386
* Tue Mar 22 2011 Martha Benitez <mbenitez@redhat.com> - 0:2.7.7-1.2
387
- Rebuild
388
389
* Tue Mar 22 2011 Martha Benitez <mbenitez@redhat.com> - 0:2.7.7-1.1
390
- Add maven2-brew contents to repolib
391
392
* Mon Feb 28 2011 David Walluck <dwalluck@redhat.com> 0:2.7.7-1
393
- 2.7.7
394
395
* Sat Jan 09 2010 Will Tatam <will.tatam@red61.com> 0:2.7.6-8
396
- Auto rebuild for JPackage 6 in centos5 mock
397
398
* Mon Nov 02 2009 David Walluck <dwalluck@redhat.com> 0:2.7.6-7
399
- add maven support
400
401
* Mon Apr 13 2009 David Walluck <dwalluck@redhat.com> 0:2.7.6-6
402
- fix repolib
403
- fix location of manual
404
- fix LICENSE.txt eol
405
- fix macro-in-%%changelog
406
407
* Thu Jul 31 2008 David Walluck <dwalluck@redhat.com> 0:2.7.6-5
408
- fix Release
409
- update BuildRoot
410
- remove javadoc scriptlets
411
- GCJ fixes
412
- fix permissions
413
- fix repolib permissions
414
415
* Tue May 27 2008 Permaine Cheung <pcheung@redhat.com> - 0:2.7.6-4jpp
416
- First JPP5 build
417
418
* Tue Mar 13 2007 Vivek Lakshmanan <vivekl@redhat.com> - 0:2.7.6-3jpp.ep1.2
419
- Fix typo in repodir
420
421
* Tue Mar 13 2007 Fernando Nasser <fnasser@redhat.com> - 0:2.7.6-3jpp.ep1.1
422
- New repolib location
423
424
* Mon Feb 19 2007 Vivek Lakshmanan <vivekl@redhat.com> - 0:2.7.6-3jpp.el4ep1.2
425
- Use -brew suffix
426
427
* Thu Feb 15 2007 Vivek Lakshmanan <vivekl@redhat.com> - 0:2.7.6-3jpp.el4ep1.1
428
- Repolib support added
429
430
* Wed Aug 02 2006 Fernando Nasser <fnasser@redhat.com> - 0:2.7.6-3jpp_1rh
431
- Merge with upstream
432
433
* Wed Jul 19 2006 Deepak Bhole <dbhole@redhat.om> = 0:2.7.6-3jpp
434
- Added conditional native compilation.
435
436
* Fri Jan 13 2006 Fernando Nasser <fnasser@redhat.com> - 0:2.7.6-2jpp_1rh
437
- Merge with upstream for upgrade
438
439
* Fri Jan 13 2006 Fernando Nasser <fnasser@redhat.com> - 0:2.7.6-2jpp
440
- First JPP 1.7 build
441
442
* Fri Jan 13 2006 Fernando Nasser <fnasser@redhat.com> - 0:2.7.6-1jpp
443
- Update to 2.7.6.
444
445
* Mon Nov 15 2004 Fernando Nasser <fnasser@redhat.com> - 0:2.7.4-2jpp_1rh
446
- Merge with upstream for upgrade
447
448
* Fri Aug 20 2004 Ralph Apel <r.apel at r-apel.de> - 0:2.7.4-2jpp
449
- Build with ant-1.6.2.
450
- Made native scripts conditional
451
452
* Tue May 18 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:2.7.4-1jpp
453
- Update to 2.7.4.
454
455
* Fri Apr  2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:2.7.3-2jpp
456
- Create alternatives also on upgrades.
457
458
* Wed Mar 31 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:2.7.3-1jpp
459
- Update to 2.7.3.
460
- Include gcj build option and a native subpackage, build using
461
  "--with native" to get that.
462
- Add %%{_bindir}/antlr alternative.
463
464
* Thu Mar  4 2004 Frank Ch. Eigler <fche@redhat.com - 0:2.7.2-3jpp_1rh
465
- RH vacuuming
466
467
* Mon Dec 15 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:2.7.2-3jpp
468
- Add non-versioned javadoc dir symlink.
469
- Crosslink with local J2SE javadocs.
470
- Spec cleanups, change to UTF-8.
471
472
* Sun Mar 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:2.7.2-2jpp
473
- Rebuild for JPackage 1.5.
474
475
* Sat Mar  1 2003 Ville Skyttä <ville.skytta at iki.fi> - 2.7.2-1jpp
476
- Update to 2.7.2.
477
- Include antlr script and jEdit mode (see antlr-jedit RPM description).
478
- Use sed instead of bash 2 extension when symlinking jars during build.
479
480
* Tue May 07 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.7.1-8jpp
481
- really section macro
482
- hardcoded distribution and vendor tag
483
- group tag again
484
485
* Thu May 2 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.7.1-7jpp
486
- distribution tag
487
- group tag
488
- section macro
489
490
* Fri Jan 18 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.7.1-6jpp
491
- versioned dir for javadoc
492
- no dependencies for manual and javadoc packages
493
- additional sources in individual archives
494
495
* Sat Dec 1 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.7.1-5jpp
496
- javadoc in javadoc package
497
498
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 2.7.1-4jpp
499
- removed packager tag
500
- new jpp extension
501
502
* Sat Oct 6 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.7.1-3jpp
503
- used a build file instead of makefile
504
- build classes instead of blindly jared them !
505
- used original tarball
506
- corrected license spelling
507
508
* Sun Sep 30 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.7.1-2jpp
509
- first unified release
510
- s/jPackage/JPackage
511
512
* Tue Aug 28 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.7.1-1mdk
513
- first Mandrake release
... ... --- /dev/null
... ... +++ b/makefile.gcj
... ... @@ -0,0 +1,203 @@
1
# Use this file to compile the antlr tool in a static executable using the 
2
# GNU gcj compiler.
3
# Author:	Luca Di Gaspero (luca.digaspero@diegm.uniud.it)
4
#		http://www.diegm.uniud.it/digaspero/
5
# Usage:	make -f makefile.gcj
6
GCJ = gcj
7
COMPOPTS = -O3
8
SOURCES=antlr/ActionElement.java \
9
	antlr/actions/cpp/ActionLexer.java \
10
	antlr/actions/cpp/ActionLexerTokenTypes.java \
11
	antlr/actions/java/ActionLexer.java \
12
	antlr/actions/java/ActionLexerTokenTypes.java \
13
	antlr/ActionTransInfo.java \
14
	antlr/Alternative.java \
15
	antlr/AlternativeBlock.java \
16
	antlr/AlternativeElement.java \
17
	antlr/ANTLRError.java \
18
	antlr/ANTLRException.java \
19
	antlr/ANTLRGrammarParseBehavior.java \
20
	antlr/ANTLRHashString.java \
21
	antlr/ANTLRLexer.java \
22
	antlr/ANTLRParser.java \
23
	antlr/ANTLRStringBuffer.java \
24
	antlr/ANTLRTokdefLexer.java \
25
	antlr/ANTLRTokdefParser.java \
26
	antlr/ANTLRTokdefParserTokenTypes.java \
27
	antlr/ANTLRTokenTypes.java \
28
	antlr/ASTFactory.java \
29
	antlr/ASTIterator.java \
30
	antlr/ASTNULLType.java \
31
	antlr/ASTPair.java \
32
	antlr/ASTVisitor.java \
33
	antlr/BaseAST.java \
34
	antlr/BlockContext.java \
35
	antlr/BlockEndElement.java \
36
	antlr/BlockWithImpliedExitPath.java \
37
	antlr/ByteBuffer.java \
38
	antlr/CharBuffer.java \
39
	antlr/CharFormatter.java \
40
	antlr/CharLiteralElement.java \
41
	antlr/CharQueue.java \
42
	antlr/CharRangeElement.java \
43
	antlr/CharScanner.java \
44
	antlr/CharStreamException.java \
45
	antlr/CharStreamIOException.java \
46
	antlr/CodeGenerator.java \
47
	antlr/collections/AST.java \
48
	antlr/collections/ASTEnumeration.java \
49
	antlr/collections/Enumerator.java \
50
	antlr/collections/impl/ASTArray.java \
51
	antlr/collections/impl/ASTEnumerator.java \
52
	antlr/collections/impl/BitSet.java \
53
	antlr/collections/impl/IndexedVector.java \
54
	antlr/collections/impl/IntRange.java \
55
	antlr/collections/impl/LLCell.java \
56
	antlr/collections/impl/LLEnumeration.java \
57
	antlr/collections/impl/LList.java \
58
	antlr/collections/impl/Vector.java \
59
	antlr/collections/impl/VectorEnumeration.java \
60
	antlr/collections/impl/VectorEnumerator.java \
61
	antlr/collections/List.java \
62
	antlr/collections/Stack.java \
63
	antlr/CommonAST.java \
64
	antlr/CommonASTWithHiddenTokens.java \
65
	antlr/CommonHiddenStreamToken.java \
66
	antlr/CommonToken.java \
67
	antlr/CppBlockFinishingInfo.java \
68
	antlr/CppCharFormatter.java \
69
	antlr/CppCodeGenerator.java \
70
	antlr/debug/DebuggingCharScanner.java \
71
	antlr/debug/DebuggingInputBuffer.java \
72
	antlr/debug/DebuggingParser.java \
73
	antlr/debug/Event.java \
74
	antlr/debug/GuessingEvent.java \
75
	antlr/debug/InputBufferAdapter.java \
76
	antlr/debug/InputBufferEvent.java \
77
	antlr/debug/InputBufferEventSupport.java \
78
	antlr/debug/InputBufferListener.java \
79
	antlr/debug/InputBufferReporter.java \
80
	antlr/debug/ListenerBase.java \
81
	antlr/debug/LLkDebuggingParser.java \
82
	antlr/debug/MessageAdapter.java \
83
	antlr/debug/MessageEvent.java \
84
	antlr/debug/MessageListener.java \
85
	antlr/debug/NewLineEvent.java \
86
	antlr/debug/NewLineListener.java \
87
	antlr/debug/ParserAdapter.java \
88
	antlr/debug/ParserController.java \
89
	antlr/debug/ParserEventSupport.java \
90
	antlr/debug/ParserListener.java \
91
	antlr/debug/ParserMatchAdapter.java \
92
	antlr/debug/ParserMatchEvent.java \
93
	antlr/debug/ParserMatchListener.java \
94
	antlr/debug/ParserReporter.java \
95
	antlr/debug/ParserTokenAdapter.java \
96
	antlr/debug/ParserTokenEvent.java \
97
	antlr/debug/ParserTokenListener.java \
98
	antlr/debug/SemanticPredicateAdapter.java \
99
	antlr/debug/SemanticPredicateEvent.java \
100
	antlr/debug/SemanticPredicateListener.java \
101
	antlr/debug/SyntacticPredicateAdapter.java \
102
	antlr/debug/SyntacticPredicateEvent.java \
103
	antlr/debug/SyntacticPredicateListener.java \
104
	antlr/debug/TraceAdapter.java \
105
	antlr/debug/TraceEvent.java \
106
	antlr/debug/TraceListener.java \
107
	antlr/debug/Tracer.java \
108
	antlr/DefaultFileLineFormatter.java \
109
	antlr/DefaultToolErrorHandler.java \
110
	antlr/DefineGrammarSymbols.java \
111
	antlr/DiagnosticCodeGenerator.java \
112
	antlr/DocBookCodeGenerator.java \
113
	antlr/DumpASTVisitor.java \
114
	antlr/ExceptionHandler.java \
115
	antlr/ExceptionSpec.java \
116
	antlr/FileCopyException.java \
117
	antlr/FileLineFormatter.java \
118
	antlr/Grammar.java \
119
	antlr/GrammarAnalyzer.java \
120
	antlr/GrammarAtom.java \
121
	antlr/GrammarElement.java \
122
	antlr/GrammarSymbol.java \
123
	antlr/HTMLCodeGenerator.java \
124
	antlr/ImportVocabTokenManager.java \
125
	antlr/InputBuffer.java \
126
	antlr/JavaBlockFinishingInfo.java \
127
	antlr/JavaCharFormatter.java \
128
	antlr/JavaCodeGenerator.java \
129
	antlr/LexerGrammar.java \
130
	antlr/LexerSharedInputState.java \
131
	antlr/LLkAnalyzer.java \
132
	antlr/LLkGrammarAnalyzer.java \
133
	antlr/LLkParser.java \
134
	antlr/Lookahead.java \
135
	antlr/MakeGrammar.java \
136
	antlr/MismatchedCharException.java \
137
	antlr/MismatchedTokenException.java \
138
	antlr/NameSpace.java \
139
	antlr/NoViableAltException.java \
140
	antlr/NoViableAltForCharException.java \
141
	antlr/OneOrMoreBlock.java \
142
	antlr/Parser.java \
143
	antlr/ParserGrammar.java \
144
	antlr/ParserSharedInputState.java \
145
	antlr/preprocessor/Grammar.java \
146
	antlr/preprocessor/GrammarFile.java \
147
	antlr/preprocessor/Hierarchy.java \
148
	antlr/preprocessor/Option.java \
149
	antlr/preprocessor/Preprocessor.java \
150
	antlr/preprocessor/PreprocessorLexer.java \
151
	antlr/preprocessor/PreprocessorTokenTypes.java \
152
	antlr/preprocessor/Rule.java \
153
	antlr/preprocessor/Tool.java \
154
	antlr/PreservingFileWriter.java \
155
	antlr/RecognitionException.java \
156
	antlr/RuleBlock.java \
157
	antlr/RuleEndElement.java \
158
	antlr/RuleRefElement.java \
159
	antlr/RuleSymbol.java \
160
	antlr/SemanticException.java \
161
	antlr/SimpleTokenManager.java \
162
	antlr/StringLiteralElement.java \
163
	antlr/StringLiteralSymbol.java \
164
	antlr/StringUtils.java \
165
	antlr/SynPredBlock.java \
166
	antlr/Token.java \
167
	antlr/TokenBuffer.java \
168
	antlr/TokenManager.java \
169
	antlr/TokenQueue.java \
170
	antlr/TokenRangeElement.java \
171
	antlr/TokenRefElement.java \
172
	antlr/TokenStream.java \
173
	antlr/TokenStreamBasicFilter.java \
174
	antlr/TokenStreamException.java \
175
	antlr/TokenStreamHiddenTokenFilter.java \
176
	antlr/TokenStreamIOException.java \
177
	antlr/TokenStreamRecognitionException.java \
178
	antlr/TokenStreamRetryException.java \
179
	antlr/TokenStreamSelector.java \
180
	antlr/TokenSymbol.java \
181
	antlr/Tool.java \
182
	antlr/ToolErrorHandler.java \
183
	antlr/TreeBlockContext.java \
184
	antlr/TreeElement.java \
185
	antlr/TreeParser.java \
186
	antlr/TreeParserSharedInputState.java \
187
	antlr/TreeSpecifierNode.java \
188
	antlr/TreeWalkerGrammar.java \
189
	antlr/Version.java \
190
	antlr/WildcardElement.java \
191
	antlr/ZeroOrMoreBlock.java 
192
OBJFILES = $(SOURCES:%.java=%.o)
193
194
all: cantlr
195
196
cantlr: $(OBJFILES)
197
	$(GCJ) --main=antlr.Tool $(OBJFILES) -o $@ 
198
199
%.o:%.java
200
	$(GCJ) $(COMPOPTS) -c -o $@ $< 
201
202
clean:
203
	rm -f $(OBJFILES)

Comments