avatar
Rosa has added ac0600fc25
Automatic import for version 2.7.7-15_redhat_2.ep6.el6
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "antlr-2.7.7.tar.gz": 802655c343cc7806aaf1ec2177a0e663ff209de1
view file @ ac0600fc25
... ... --- /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 @ ac0600fc25
... ... --- /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 @ ac0600fc25
... ... --- /dev/null
... ... +++ b/antlr-jedit.patch
... ... @@ -0,0 +1,34 @@
1
diff -up antlr-2.7.7/extras/antlr-jedit.xml.sav0 antlr-2.7.7/extras/antlr-jedit.xml
2
--- antlr-2.7.7/extras/antlr-jedit.xml.sav0	2006-11-01 16:37:17.000000000 -0500
3
+++ antlr-2.7.7/extras/antlr-jedit.xml	2012-08-14 17:20:15.684559655 -0400
4
@@ -16,9 +16,6 @@
5
 	</PROPS>
6
    
7
    <RULES DEFAULT="KEYWORD1">
8
-		<!-- whitespace: (space and tab) -->
9
-		<WHITESPACE> </WHITESPACE>
10
-		<WHITESPACE>	</WHITESPACE>
11
 
12
       <!-- antlr specific rules -->
13
       <SPAN DELEGATE="java::MAIN" TYPE="KEYWORD1">
14
@@ -97,9 +94,7 @@
15
    </RULES>
16
    
17
    <RULES DEFAULT="KEYWORD2" SET="PRODUCTION">
18
-		<!-- whitespace: (space and tab) -->
19
-		<WHITESPACE> </WHITESPACE>
20
-		<WHITESPACE>	</WHITESPACE>
21
+
22
 		<!-- Silly comment -->
23
 		<SEQ TYPE="COMMENT1">/**/</SEQ>
24
 
25
@@ -149,9 +144,6 @@
26
    </RULES>
27
 
28
    <RULES SET="KEYVALUE">
29
-		<!-- whitespace: (space and tab) -->
30
-		<WHITESPACE> </WHITESPACE>
31
-		<WHITESPACE>	</WHITESPACE>
32
       
33
       <SEQ TYPE="KEYWORD1">{</SEQ>
34
       
view file @ ac0600fc25
... ... --- /dev/null
... ... +++ b/antlr-newgcc.patch
... ... @@ -0,0 +1,12 @@
1
diff -up antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp.sav1 antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp
2
--- antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp.sav1	2006-11-01 16:37:17.000000000 -0500
3
+++ antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp	2012-08-14 17:20:15.687577201 -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 @ ac0600fc25
... ... --- /dev/null
... ... +++ b/antlr-pom.patch
... ... @@ -0,0 +1,47 @@
1
diff -up antlr-2.7.7/antlr-2.7.7.pom.sav2 antlr-2.7.7/antlr-2.7.7.pom
2
--- antlr-2.7.7/antlr-2.7.7.pom.sav2	2007-01-13 01:28:39.000000000 -0500
3
+++ antlr-2.7.7/antlr-2.7.7.pom	2012-08-14 17:24:00.675589050 -0400
4
@@ -1,16 +1,19 @@
5
-<project>
6
+<?xml version="1.0" encoding="UTF-8"?>
7
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
8
   <modelVersion>4.0.0</modelVersion>
9
   <groupId>antlr</groupId>
10
+  <parent>
11
+        <artifactId>jboss-parent</artifactId>
12
+        <groupId>org.jboss</groupId>
13
+        <version>9-redhat-1</version>
14
+    </parent>
15
   <artifactId>antlr</artifactId>
16
   <packaging>jar</packaging>
17
-  <version>2.7.7</version>
18
+  <version>2.7.7-redhat-2</version>
19
   <name>AntLR Parser Generator</name>
20
-  <description>
21
-    A framework for constructing recognizers, compilers,
22
+  <description>A framework for constructing recognizers, compilers,
23
     and translators from grammatical descriptions containing
24
-    Java, C#, C++, or Python actions.
25
-  </description>
26
-  <url>http://www.antlr.org/</url>
27
+    Java, C#, C++, or Python actions.</description>
28
   <licenses>
29
     <license>
30
       <name>BSD License</name>
31
@@ -18,5 +21,15 @@
32
       <distribution>repo</distribution>
33
     </license>
34
   </licenses>
35
-  <dependencies/>
36
+  <dependencyManagement>
37
+        <dependencies>
38
+            <dependency>
39
+                <groupId>org.jboss.component.management</groupId>
40
+                <artifactId>jboss-dependency-management-all</artifactId>
41
+                <version>6.0.1-redhat-1</version>
42
+                <type>pom</type>
43
+                <scope>import</scope>
44
+            </dependency>
45
+        </dependencies>
46
+    </dependencyManagement>
47
 </project>
... ... --- /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"
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,539 @@
1
# Copyright (c) 2000-2012, 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
%{!?_mavenpomdir: %global _mavenpomdir %{_datadir}/maven2/poms}
31
32
%bcond_with jedit
33
%bcond_with mono
34
%bcond_with native
35
%bcond_without repolib
36
37
%global shortname antlr
38
39
%global debug_package %{nil}
40
41
%define reltag _redhat_2
42
%define namedreltag -redhat-2
43
%global namedversion %{version}%{?namedreltag}
44
45
Name:           antlr-eap6
46
Version:        2.7.7
47
Release:        15%{?reltag}%{?dist}
48
Epoch:          0
49
Summary:        ANother Tool for Language Recognition
50
License:        Public Domain
51
Group:          Development/Java
52
URL:            http://www.antlr.org/
53
Source0:        http://www.antlr2.org/download/antlr-%{version}.tar.gz
54
Source1:        antlr-build.xml
55
Source2:        antlr-script
56
# http://www.antlr.org/share/1069557132934/makefile.gcj
57
Source3:        makefile.gcj
58
Source4:        http://repo2.maven.org/maven2/antlr/antlr/2.7.7/antlr-2.7.7.pom
59
Patch0:         antlr-jedit.patch
60
Patch1:         antlr-newgcc.patch
61
Patch2:         antlr-pom.patch
62
Requires:       jpackage-utils
63
%if %with native
64
BuildRequires:  %{_bindir}/gcj
65
BuildRequires:  %{__make}
66
%else
67
BuildArch:      noarch
68
%endif
69
BuildRequires:  ant
70
BuildRequires:  %{__perl}
71
BuildRequires:  java-javadoc
72
%if %with repolib
73
BuildRequires:  jboss-parent
74
BuildRequires:  maven2-plugin-deploy
75
%endif
76
%ifnarch s390 s390x ppc64 sparc64
77
%if %with mono
78
BuildRequires:  mono-core
79
BuildRequires:  mono-winforms
80
%endif
81
%endif
82
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
83
84
%description
85
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a
86
language tool that provides a framework for constructing recognizers,
87
compilers, and translators from grammatical descriptions containing
88
C++ or Java actions [You can use PCCTS 1.xx to generate C-based
89
parsers].
90
91
%package -n %{shortname}
92
Summary:        Java library for reading and editing user input in console applications
93
Group:          Development/Java
94
Requires(pre): %{_sbindir}/update-alternatives
95
Requires(postun): %{_sbindir}/update-alternatives
96
Requires(post): jpackage-utils
97
Requires(postun): jpackage-utils
98
Requires:       jpackage-utils
99
100
%description -n %{shortname}
101
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a
102
language tool that provides a framework for constructing recognizers,
103
compilers, and translators from grammatical descriptions containing
104
C++ or Java actions [You can use PCCTS 1.xx to generate C-based
105
parsers].
106
107
%if %with repolib
108
%package -n %{shortname}-repolib
109
Summary:        Artifacts to be uploaded to a repository library
110
Group:          Development/Libraries/Java
111
112
%description -n %{shortname}-repolib
113
Artifacts to be uploaded to a repository library.
114
This package is not meant to be installed but so its contents
115
can be extracted through rpm2cpio.
116
%endif
117
118
%if %with native
119
%package -n %{shortname}-native
120
Group:          Development/Java
121
Summary:        ANother Tool for Language Recognition (native version)
122
Requires(pre): %{_sbindir}/update-alternatives
123
Requires(postun): %{_sbindir}/update-alternatives
124
125
%description -n %{shortname}-native
126
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a
127
language tool that provides a framework for constructing recognizers,
128
compilers, and translators from grammatical descriptions containing
129
C++ or Java actions [You can use PCCTS 1.xx to generate C-based
130
parsers].  This package includes the native version of the antlr tool.
131
%endif
132
133
%package -n %{shortname}-manual
134
Group:          Development/Java
135
Summary:        Manual for %{shortname}
136
137
%description -n %{shortname}-manual
138
Documentation for %{shortname}.
139
140
%package -n %{shortname}-javadoc
141
Group:          Development/Documentation
142
Summary:        Javadoc for %{shortname}
143
Requires:       jpackage-utils
144
145
%description -n %{shortname}-javadoc
146
Javadoc for %{shortname}.
147
148
%if %with jedit
149
%package -n %{shortname}-jedit
150
Group:          Text Editors
151
Summary:        ANTLR mode for jEdit
152
Requires:       jedit >= 0:4.1
153
154
%description -n %{shortname}-jedit
155
ANTLR mode for jEdit.  To enable this mode, insert the following into your
156
%{_datadir}/jedit/modes/catalog:
157
158
  <MODE NAME="antlr" FILE="antlr.xml" FILE_NAME_GLOB="*.g"/>
159
%endif
160
161
%prep
162
%setup -q -n %{shortname}-%{version}
163
%{_bindir}/find -type f -name '*.jar' | xargs -t rm
164
%{__perl} -pi -e 's|"doc/|"%{_docdir}/%{name}-manual-%{namedversion}/|g' install.html
165
%{__perl} -pi -e 's/\r$//' LICENSE.txt
166
167
cp -p %{SOURCE1} build.xml
168
cp -p %{SOURCE4} antlr-%{version}.pom
169
170
%if %without native
171
%patch0 -p1 -b .sav0
172
%endif
173
%patch1 -p1 -b .sav1
174
%patch2 -p1 -b .sav2
175
176
%build
177
export CLASSPATH=
178
export OPT_JAR_LIST=:
179
%if %with native
180
%{__make} -f %{SOURCE3} COMPOPTS="%{optflags}"
181
%{ant} -Dj2se.apidoc=%{_javadocdir}/java
182
cp work/lib/antlr.jar .  # make expects to find it here
183
export CLASSPATH=.
184
%configure --without-examples
185
make CXXFLAGS="${CXXFLAGS} -fPIC"
186
#find . -type f > /tmp/antlr.filelist
187
# no longer needed
188
rm antlr.jar
189
%else
190
%{ant} -Dj2se.apidoc=%{_javadocdir}/java
191
%endif
192
193
%install
194
rm -rf %{buildroot}
195
196
mkdir -p %{buildroot}%{_bindir}
197
touch %{buildroot}%{_bindir}/antlr
198
%if %with native
199
cp -p cantlr %{buildroot}%{_bindir}/antlr-native
200
%else
201
# jars
202
mkdir -p %{buildroot}%{_javadir}
203
cp -p work/lib/antlr.jar %{buildroot}%{_javadir}/%{shortname}-%{namedversion}.jar
204
(cd %{buildroot}%{_javadir} && for jar in *-%{namedversion}.jar; do ln -sf ${jar} `/bin/echo ${jar} | %{__sed} "s|-%{namedversion}||g"`; done)
205
206
# Alternative JAR location
207
mkdir -p %{buildroot}%{_javadir}/%{name}
208
cp -p work/lib/%{shortname}.jar %{buildroot}%{_javadir}/%{name}/%{shortname}-%{namedversion}.jar
209
(cd %{buildroot}%{_javadir}/%{name} && for jar in *-%{namedversion}.jar; do ln -sf ${jar} `/bin/echo ${jar} | %{__sed} "s|-%{namedversion}||g"`; done)
210
211
# pom
212
mkdir -p %{buildroot}%{_mavenpomdir}
213
cp -p -p antlr-%{version}.pom %{buildroot}%{_mavenpomdir}/JPP-%{shortname}.pom
214
%add_to_maven_depmap antlr antlr %{namedversion} JPP %{shortname}
215
[ %{name} = %{shortname} ] || mv %{buildroot}%{_mavendepmapfragdir}/%{name} %{buildroot}%{_mavendepmapfragdir}/%{shortname}
216
217
# script
218
cp -p %{SOURCE2} %{buildroot}%{_bindir}/antlr-java
219
220
%if %with native
221
# C++ lib and headers, antlr-config
222
mkdir -p %{buildroot}%{_includedir}/%{shortname}
223
cp -p lib/cpp/antlr/*.hpp %{buildroot}%{_includedir}/%{shortname}/
224
mkdir -p %{buildroot}%{_libdir}
225
cp -p lib/cpp/src/libantlr.a %{buildroot}%{_libdir}/libantlr.a
226
mkdir -p %{buildroot}%{_bindir}
227
cp -p scripts/antlr-config %{buildroot}%{_bindir}/antlr-config
228
%endif
229
230
# javadoc
231
mkdir -p %{buildroot}%{_javadocdir}/%{shortname}-%{namedversion}
232
cp -pr work/api/* %{buildroot}%{_javadocdir}/%{shortname}-%{namedversion}
233
ln -s %{shortname}-%{namedversion} %{buildroot}%{_javadocdir}/%{shortname}
234
235
# jedit mode
236
%if %with jedit
237
mkdir -p %{buildroot}%{_datadir}/jedit/modes
238
cp -p extras/antlr-jedit.xml %{buildroot}%{_datadir}/jedit/modes/antlr.xml
239
%endif
240
%endif
241
242
# manual
243
mkdir -p %{buildroot}%{_docdir}/%{shortname}-%{namedversion}
244
cp -pr doc/* %{buildroot}%{_docdir}/%{shortname}-%{namedversion}
245
rm %{buildroot}%{_docdir}/%{shortname}-%{namedversion}/Makefile*
246
247
# repolib
248
%if %with repolib
249
export MAVEN_REPO_LOCAL=`pwd`/.m2/repository
250
export URL=file://%{buildroot}%{_javadir}/repository.jboss.com/maven2-brew
251
%{_bindir}/mvn-jpp deploy:deploy-file -Dmaven.repo.local=${MAVEN_REPO_LOCAL} \
252
    -DpomFile=%{buildroot}%{_mavenpomdir}/JPP-%{shortname}.pom \
253
    -Dfile=%{buildroot}%{_javadir}/%{shortname}-%{namedversion}.jar \
254
    -Durl=${URL}
255
pushd %{buildroot}%{_javadir}/repository.jboss.com
256
prevversion=`%{_bindir}/find maven2-brew -type d \( -name '[0-9]*' -a -not -name %{namedversion} \) -print -quit`
257
[ -z "${prevversion}" ] || prevversion=`/bin/basename ${prevversion}` && for d in `%{_bindir}/find maven2-brew -type d -name ${prevversion}`; do
258
    %{__mv} ${d}/* `/bin/echo ${d} | %{__sed} -e 's|'${prevversion}'|%{namedversion}|;'`/
259
    %{__rm} -r ${d}/
260
done
261
popd
262
%endif
263
264
%clean
265
rm -rf %{buildroot}
266
267
%pre -n %{shortname}
268
%{_sbindir}/update-alternatives --install %{_bindir}/antlr antlr %{_bindir}/antlr-java 10
269
270
%post -n %{shortname}
271
%update_maven_depmap
272
273
%postun -n %{shortname}
274
%update_maven_depmap
275
if [ $1 -eq 0 ] ; then
276
  %{_sbindir}/update-alternatives --remove antlr %{_bindir}/antlr-java
277
fi
278
279
%if %with native
280
%pre -n %{shortname}-native
281
%{_sbindir}/update-alternatives --install %{_bindir}/antlr antlr %{_bindir}/antlr-native 20
282
283
%postun -n %{shortname}-native
284
if [ $1 -eq 0 ] ; then
285
  %{_sbindir}/update-alternatives --remove %{shortname} %{_bindir}/antlr-native
286
fi
287
%endif
288
289
%if %with native
290
%files -n %{shortname}-native
291
%defattr(0644,root,root,0755)
292
%doc CHANGES.txt INSTALL.txt LICENSE.txt README.txt
293
%defattr(0755,root,root,0755)
294
%ghost %{_bindir}/antlr
295
%attr(0755,root,root) %{_bindir}/antlr-native
296
%{_includedir}/%{shortname}
297
%{_libdir}/libantlr.a
298
%attr(0755,root,root) %{_bindir}/antlr-config
299
%else
300
%files
301
%defattr(0644,root,root,0755)
302
%dir %{_javadir}*/%{name}
303
%{_javadir}*/%{name}/%{shortname}-%{namedversion}.jar
304
%{_javadir}*/%{name}/%{shortname}.jar
305
306
%files -n %{shortname}
307
%defattr(0644,root,root,0755)
308
%doc CHANGES.txt INSTALL.txt LICENSE.txt README.txt
309
%{_javadir}*/%{shortname}-%{namedversion}.jar
310
%{_javadir}*/%{shortname}.jar
311
%{_mavenpomdir}/JPP-%{shortname}.pom
312
%{_mavendepmapfragdir}/%{shortname}
313
%ghost %{_bindir}/antlr
314
%attr(0755,root,root) %{_bindir}/antlr-java
315
316
%files -n %{shortname}-manual
317
%defattr(0644,root,root,0755)
318
%doc %{_docdir}/%{shortname}-%{namedversion}
319
320
%files -n %{shortname}-javadoc
321
%defattr(0644,root,root,0755)
322
%{_javadocdir}/%{shortname}-%{namedversion}
323
%{_javadocdir}/%{shortname}
324
325
%if %with jedit
326
%files -n %{shortname}-jedit
327
%defattr(0644,root,root,0755)
328
%{_datadir}/jedit/modes/*
329
%endif
330
%endif
331
332
%if %with repolib
333
%files -n %{shortname}-repolib
334
%defattr(0644,root,root,0755)
335
%dir %{_javadir}*
336
%exclude %dir %{_javadocdir}
337
%{_javadir}*/repository.jboss.com
338
%endif
339
340
%changelog
341
* Wed Aug 15 2012 Paul Gier <pgier@redhat.com> 0:2.7.7-15
342
- minor change to pom patch
343
344
* Tue Aug 14 2012 David Walluck <dwalluck@redhat.com> 0:2.7.7-14
345
- main pkg doesn't need jpackage-utils for scriptlets
346
- remove Makefile's from manual doc
347
348
* Tue Aug 14 2012 David Walluck <dwalluck@redhat.com> 0:2.7.7-13
349
- update-alternatives should be %%pre, not %%post
350
- fix scriptlet sections for native package
351
- vman should be patch, not standalone pom
352
- fix missing requires in the antlr package
353
- use the correct version on files
354
- remove double BuildRoot definition
355
- remove GCJ support
356
- remove old-style repolib
357
- remove double native option definition
358
- fix packaging of native bits
359
- fix options, especially the native option
360
- fix build which was building native bits regardless of option
361
- fix bad deploy command
362
- add more doc
363
- fix perms on scripts
364
- fix maven frag name
365
366
* Tue Aug 14 2012 Fernando Nasser <fnasser@redhat.com> - 0:2.7.7-12_redhat_2.2
367
- Rebuild unsigned
368
369
* Thu Jul 19 2012 David Walluck <dwalluck@redhat.com> 0:2.7.7-12
370
- fix missing default file perms in main pkg
371
- fix file perms in short name pkg that resulted in many files with 755 perms
372
- fix dir ownership in repolib pkg
373
- don't mark javadoc as doc
374
- fix Release tag
375
376
* Thu Jul 19 2012 Fernando Nasser <fnasser@redhat.com> - 0:2.7.7-10_redhat_1.4.2
377
- Rebuild using cache signing
378
379
* Thu Jul 19 2012 Fernando Nasser <fnasser@redhat.com> - 0:2.7.7-10_redhat_1.4.1
380
- Rebuild using cache signing
381
382
* Thu Mar 29 2012 Permaine Cheung <pcheung@redhat.com> - 0:2.7.7-10_redhat_1.4
383
- Move update_maven_depmap to the post and postun section of antlr subpackage
384
385
* Wed Mar 28 2012 Martha Benitez <mbenitez@redhat.com> - 0:2.7.7-10_redhat_1.3
386
- Rebuild with a -eap6 suffix to avoid conflict with RHEL-6 base
387
388
* Tue Mar 27 2012 Yong Yang <yyang@redhat.com> - 0:2.7.7-10_redhat_1.2
389
- Fix pom location in -repolib
390
391
* Mon Mar 26 2012 Fernando Nasser <fnasser@redhat.com> - 0:2.7.7-10_redhat_1.1
392
- Rebuild using cache signing
393
394
* Mon Feb 06 2012 Yong Yang <yyang@redhat.com> - 0:2.7.7-10_redhat_1
395
- Fix pom location in -repolib
396
397
* Fri Feb 03 2012 Yong Yang <yyang@redhat.com> - 0:2.7.7-9_redhat_1
398
- Latest vman, resign
399
400
* Mon Aug 29 2011 Yong Yang <yyang@redhat.com> - 0:2.7.7-8_redhat_1
401
- Build for werewolf
402
403
* Wed Mar 23 2011 Martha Benitez <mbenitez@redhat.com> - 0:2.7.7-7
404
- Merge from RHEL6
405
406
* Tue Mar 22 2011 Martha Benitez <mbenitez@redhat.com> - 0:2.7.7-1.4
407
- Rebuild
408
409
* Tue Mar 22 2011 Martha Benitez <mbenitez@redhat.com> - 0:2.7.7-1.3
410
- Rebuild
411
412
* Tue Mar 22 2011 Martha Benitez <mbenitez@redhat.com> - 0:2.7.7-1.2
413
- Rebuild
414
415
* Tue Mar 22 2011 Martha Benitez <mbenitez@redhat.com> - 0:2.7.7-1.1
416
- Add maven2-brew contents to repolib
417
418
* Mon Feb 28 2011 David Walluck <dwalluck@redhat.com> 0:2.7.7-1
419
- 2.7.7
420
421
* Sat Jan 09 2010 Will Tatam <will.tatam@red61.com> 0:2.7.6-8
422
- Auto rebuild for JPackage 6 in centos5 mock
423
424
* Mon Nov 02 2009 David Walluck <dwalluck@redhat.com> 0:2.7.6-7
425
- add maven support
426
427
* Mon Apr 13 2009 David Walluck <dwalluck@redhat.com> 0:2.7.6-6
428
- fix repolib
429
- fix location of manual
430
- fix LICENSE.txt eol
431
- fix macro-in-%%changelog
432
433
* Thu Jul 31 2008 David Walluck <dwalluck@redhat.com> 0:2.7.6-5
434
- fix Release
435
- update BuildRoot
436
- remove javadoc scriptlets
437
- GCJ fixes
438
- fix permissions
439
- fix repolib permissions
440
441
* Tue May 27 2008 Permaine Cheung <pcheung@redhat.com> - 0:2.7.6-4jpp
442
- First JPP5 build
443
444
* Tue Mar 13 2007 Vivek Lakshmanan <vivekl@redhat.com> - 0:2.7.6-3jpp.ep1.2
445
- Fix typo in repodir
446
447
* Tue Mar 13 2007 Fernando Nasser <fnasser@redhat.com> - 0:2.7.6-3jpp.ep1.1
448
- New repolib location
449
450
* Mon Feb 19 2007 Vivek Lakshmanan <vivekl@redhat.com> - 0:2.7.6-3jpp.el4ep1.2
451
- Use -brew suffix
452
453
* Thu Feb 15 2007 Vivek Lakshmanan <vivekl@redhat.com> - 0:2.7.6-3jpp.el4ep1.1
454
- Repolib support added
455
456
* Wed Aug 02 2006 Fernando Nasser <fnasser@redhat.com> - 0:2.7.6-3jpp_1rh
457
- Merge with upstream
458
459
* Wed Jul 19 2006 Deepak Bhole <dbhole@redhat.om> = 0:2.7.6-3jpp
460
- Added conditional native compilation.
461
462
* Fri Jan 13 2006 Fernando Nasser <fnasser@redhat.com> - 0:2.7.6-2jpp_1rh
463
- Merge with upstream for upgrade
464
465
* Fri Jan 13 2006 Fernando Nasser <fnasser@redhat.com> - 0:2.7.6-2jpp
466
- First JPP 1.7 build
467
468
* Fri Jan 13 2006 Fernando Nasser <fnasser@redhat.com> - 0:2.7.6-1jpp
469
- Update to 2.7.6.
470
471
* Mon Nov 15 2004 Fernando Nasser <fnasser@redhat.com> - 0:2.7.4-2jpp_1rh
472
- Merge with upstream for upgrade
473
474
* Fri Aug 20 2004 Ralph Apel <r.apel at r-apel.de> - 0:2.7.4-2jpp
475
- Build with ant-1.6.2.
476
- Made native scripts conditional
477
478
* Tue May 18 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:2.7.4-1jpp
479
- Update to 2.7.4.
480
481
* Fri Apr  2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:2.7.3-2jpp
482
- Create alternatives also on upgrades.
483
484
* Wed Mar 31 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:2.7.3-1jpp
485
- Update to 2.7.3.
486
- Include gcj build option and a native subpackage, build using
487
  "--with native" to get that.
488
- Add %%{_bindir}/antlr alternative.
489
490
* Thu Mar  4 2004 Frank Ch. Eigler <fche@redhat.com - 0:2.7.2-3jpp_1rh
491
- RH vacuuming
492
493
* Mon Dec 15 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:2.7.2-3jpp
494
- Add non-versioned javadoc dir symlink.
495
- Crosslink with local J2SE javadocs.
496
- Spec cleanups, change to UTF-8.
497
498
* Sun Mar 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:2.7.2-2jpp
499
- Rebuild for JPackage 1.5.
500
501
* Sat Mar  1 2003 Ville Skyttä <ville.skytta at iki.fi> - 2.7.2-1jpp
502
- Update to 2.7.2.
503
- Include antlr script and jEdit mode (see antlr-jedit RPM description).
504
- Use sed instead of bash 2 extension when symlinking jars during build.
505
506
* Tue May 07 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.7.1-8jpp
507
- really section macro
508
- hardcoded distribution and vendor tag
509
- group tag again
510
511
* Thu May 2 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.7.1-7jpp
512
- distribution tag
513
- group tag
514
- section macro
515
516
* Fri Jan 18 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.7.1-6jpp
517
- versioned dir for javadoc
518
- no dependencies for manual and javadoc packages
519
- additional sources in individual archives
520
521
* Sat Dec 1 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.7.1-5jpp
522
- javadoc in javadoc package
523
524
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 2.7.1-4jpp
525
- removed packager tag
526
- new jpp extension
527
528
* Sat Oct 6 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.7.1-3jpp
529
- used a build file instead of makefile
530
- build classes instead of blindly jared them !
531
- used original tarball
532
- corrected license spelling
533
534
* Sun Sep 30 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.7.1-2jpp
535
- first unified release
536
- s/jPackage/JPackage
537
538
* Tue Aug 28 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.7.1-1mdk
539
- 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