Accepting request 653633 from Java:packages
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/653633 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/antlr?expand=0&rev=45
This commit is contained in:
commit
6b3d3c135c
22
antlr-2.7.7.pom
Normal file
22
antlr-2.7.7.pom
Normal file
@ -0,0 +1,22 @@
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>antlr</groupId>
|
||||
<artifactId>antlr</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>2.7.7</version>
|
||||
<name>AntLR Parser Generator</name>
|
||||
<description>
|
||||
A framework for constructing recognizers, compilers,
|
||||
and translators from grammatical descriptions containing
|
||||
Java, C#, C++, or Python actions.
|
||||
</description>
|
||||
<url>http://www.antlr.org/</url>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>BSD License</name>
|
||||
<url>http://www.antlr.org/license.html</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<dependencies/>
|
||||
</project>
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 18 19:43:07 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Install as maven artifact using the pom file from maven central
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 13 08:55:01 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
17
antlr.spec
17
antlr.spec
@ -27,7 +27,7 @@ URL: http://www.antlr.org/
|
||||
Source0: antlr-%{version}.tar.bz2
|
||||
Source1: %{name}-build.xml
|
||||
Source2: %{name}-script
|
||||
Source3: makefile.gcj
|
||||
Source3: http://repo2.maven.org/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom
|
||||
Source1000: antlr-rpmlintrc
|
||||
Patch0: %{name}-jedit.patch
|
||||
Patch1: gcc45fix.diff
|
||||
@ -36,7 +36,7 @@ BuildRequires: ant
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: javapackages-tools
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: xml-commons-apis
|
||||
Requires: %{name}-java
|
||||
Provides: %{name}-bootstrap = %{version}
|
||||
@ -133,7 +133,7 @@ make -j1
|
||||
%endif
|
||||
|
||||
%install
|
||||
#### jars ###
|
||||
### jars ###
|
||||
install -d -m 0755 %{buildroot}%{_javadir}
|
||||
cp -a work/lib/%{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -s -f ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||
@ -141,6 +141,11 @@ cp -a work/lib/%{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||
install -d -m 0755 %{buildroot}%{_datadir}/%{name}-%{version}/
|
||||
ln -s -f %{_javadir}/%{name}-%{version}.jar %{buildroot}%{_datadir}/%{name}-%{version}/%{name}.jar
|
||||
|
||||
### pom ###
|
||||
install -d -m 0755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 0644 %{SOURCE3} %{buildroot}%{_mavenpomdir}/%{name}-%{version}.pom
|
||||
%add_maven_depmap %{name}-%{version}.pom %{name}-%{version}.jar -a %{name}:%{name}all -f java
|
||||
|
||||
### scripts ###
|
||||
install -d -m 0755 %{buildroot}%{_bindir}/
|
||||
install -m 0755 %{SOURCE2} %{buildroot}%{_bindir}/%{name}
|
||||
@ -175,6 +180,12 @@ find doc -type f | xargs chmod 0644
|
||||
%dir %{_datadir}/%{name}-%{version}
|
||||
%{_datadir}/%{name}-%{version}/*jar
|
||||
%{_javadir}/%{name}*.jar
|
||||
%{_mavenpomdir}/*
|
||||
%if %{defined _maven_repository}
|
||||
%config(noreplace) %{_mavendepmapfragdir}/%{name}-java
|
||||
%else
|
||||
%{_datadir}/maven-metadata/%{name}-java.xml
|
||||
%endif
|
||||
|
||||
%files manual
|
||||
%doc doc examples
|
||||
|
203
makefile.gcj
203
makefile.gcj
@ -1,203 +0,0 @@
|
||||
# Use this file to compile the antlr tool in a static executable using the
|
||||
# GNU gcj compiler.
|
||||
# Author: Luca Di Gaspero (luca.digaspero@diegm.uniud.it)
|
||||
# http://www.diegm.uniud.it/digaspero/
|
||||
# Usage: make -f makefile.gcj
|
||||
GCJ = gcj
|
||||
COMPOPTS = -O3
|
||||
SOURCES=antlr/ActionElement.java \
|
||||
antlr/actions/cpp/ActionLexer.java \
|
||||
antlr/actions/cpp/ActionLexerTokenTypes.java \
|
||||
antlr/actions/java/ActionLexer.java \
|
||||
antlr/actions/java/ActionLexerTokenTypes.java \
|
||||
antlr/ActionTransInfo.java \
|
||||
antlr/Alternative.java \
|
||||
antlr/AlternativeBlock.java \
|
||||
antlr/AlternativeElement.java \
|
||||
antlr/ANTLRError.java \
|
||||
antlr/ANTLRException.java \
|
||||
antlr/ANTLRGrammarParseBehavior.java \
|
||||
antlr/ANTLRHashString.java \
|
||||
antlr/ANTLRLexer.java \
|
||||
antlr/ANTLRParser.java \
|
||||
antlr/ANTLRStringBuffer.java \
|
||||
antlr/ANTLRTokdefLexer.java \
|
||||
antlr/ANTLRTokdefParser.java \
|
||||
antlr/ANTLRTokdefParserTokenTypes.java \
|
||||
antlr/ANTLRTokenTypes.java \
|
||||
antlr/ASTFactory.java \
|
||||
antlr/ASTIterator.java \
|
||||
antlr/ASTNULLType.java \
|
||||
antlr/ASTPair.java \
|
||||
antlr/ASTVisitor.java \
|
||||
antlr/BaseAST.java \
|
||||
antlr/BlockContext.java \
|
||||
antlr/BlockEndElement.java \
|
||||
antlr/BlockWithImpliedExitPath.java \
|
||||
antlr/ByteBuffer.java \
|
||||
antlr/CharBuffer.java \
|
||||
antlr/CharFormatter.java \
|
||||
antlr/CharLiteralElement.java \
|
||||
antlr/CharQueue.java \
|
||||
antlr/CharRangeElement.java \
|
||||
antlr/CharScanner.java \
|
||||
antlr/CharStreamException.java \
|
||||
antlr/CharStreamIOException.java \
|
||||
antlr/CodeGenerator.java \
|
||||
antlr/collections/AST.java \
|
||||
antlr/collections/ASTEnumeration.java \
|
||||
antlr/collections/Enumerator.java \
|
||||
antlr/collections/impl/ASTArray.java \
|
||||
antlr/collections/impl/ASTEnumerator.java \
|
||||
antlr/collections/impl/BitSet.java \
|
||||
antlr/collections/impl/IndexedVector.java \
|
||||
antlr/collections/impl/IntRange.java \
|
||||
antlr/collections/impl/LLCell.java \
|
||||
antlr/collections/impl/LLEnumeration.java \
|
||||
antlr/collections/impl/LList.java \
|
||||
antlr/collections/impl/Vector.java \
|
||||
antlr/collections/impl/VectorEnumeration.java \
|
||||
antlr/collections/impl/VectorEnumerator.java \
|
||||
antlr/collections/List.java \
|
||||
antlr/collections/Stack.java \
|
||||
antlr/CommonAST.java \
|
||||
antlr/CommonASTWithHiddenTokens.java \
|
||||
antlr/CommonHiddenStreamToken.java \
|
||||
antlr/CommonToken.java \
|
||||
antlr/CppBlockFinishingInfo.java \
|
||||
antlr/CppCharFormatter.java \
|
||||
antlr/CppCodeGenerator.java \
|
||||
antlr/debug/DebuggingCharScanner.java \
|
||||
antlr/debug/DebuggingInputBuffer.java \
|
||||
antlr/debug/DebuggingParser.java \
|
||||
antlr/debug/Event.java \
|
||||
antlr/debug/GuessingEvent.java \
|
||||
antlr/debug/InputBufferAdapter.java \
|
||||
antlr/debug/InputBufferEvent.java \
|
||||
antlr/debug/InputBufferEventSupport.java \
|
||||
antlr/debug/InputBufferListener.java \
|
||||
antlr/debug/InputBufferReporter.java \
|
||||
antlr/debug/ListenerBase.java \
|
||||
antlr/debug/LLkDebuggingParser.java \
|
||||
antlr/debug/MessageAdapter.java \
|
||||
antlr/debug/MessageEvent.java \
|
||||
antlr/debug/MessageListener.java \
|
||||
antlr/debug/NewLineEvent.java \
|
||||
antlr/debug/NewLineListener.java \
|
||||
antlr/debug/ParserAdapter.java \
|
||||
antlr/debug/ParserController.java \
|
||||
antlr/debug/ParserEventSupport.java \
|
||||
antlr/debug/ParserListener.java \
|
||||
antlr/debug/ParserMatchAdapter.java \
|
||||
antlr/debug/ParserMatchEvent.java \
|
||||
antlr/debug/ParserMatchListener.java \
|
||||
antlr/debug/ParserReporter.java \
|
||||
antlr/debug/ParserTokenAdapter.java \
|
||||
antlr/debug/ParserTokenEvent.java \
|
||||
antlr/debug/ParserTokenListener.java \
|
||||
antlr/debug/SemanticPredicateAdapter.java \
|
||||
antlr/debug/SemanticPredicateEvent.java \
|
||||
antlr/debug/SemanticPredicateListener.java \
|
||||
antlr/debug/SyntacticPredicateAdapter.java \
|
||||
antlr/debug/SyntacticPredicateEvent.java \
|
||||
antlr/debug/SyntacticPredicateListener.java \
|
||||
antlr/debug/TraceAdapter.java \
|
||||
antlr/debug/TraceEvent.java \
|
||||
antlr/debug/TraceListener.java \
|
||||
antlr/debug/Tracer.java \
|
||||
antlr/DefaultFileLineFormatter.java \
|
||||
antlr/DefaultToolErrorHandler.java \
|
||||
antlr/DefineGrammarSymbols.java \
|
||||
antlr/DiagnosticCodeGenerator.java \
|
||||
antlr/DocBookCodeGenerator.java \
|
||||
antlr/DumpASTVisitor.java \
|
||||
antlr/ExceptionHandler.java \
|
||||
antlr/ExceptionSpec.java \
|
||||
antlr/FileCopyException.java \
|
||||
antlr/FileLineFormatter.java \
|
||||
antlr/Grammar.java \
|
||||
antlr/GrammarAnalyzer.java \
|
||||
antlr/GrammarAtom.java \
|
||||
antlr/GrammarElement.java \
|
||||
antlr/GrammarSymbol.java \
|
||||
antlr/HTMLCodeGenerator.java \
|
||||
antlr/ImportVocabTokenManager.java \
|
||||
antlr/InputBuffer.java \
|
||||
antlr/JavaBlockFinishingInfo.java \
|
||||
antlr/JavaCharFormatter.java \
|
||||
antlr/JavaCodeGenerator.java \
|
||||
antlr/LexerGrammar.java \
|
||||
antlr/LexerSharedInputState.java \
|
||||
antlr/LLkAnalyzer.java \
|
||||
antlr/LLkGrammarAnalyzer.java \
|
||||
antlr/LLkParser.java \
|
||||
antlr/Lookahead.java \
|
||||
antlr/MakeGrammar.java \
|
||||
antlr/MismatchedCharException.java \
|
||||
antlr/MismatchedTokenException.java \
|
||||
antlr/NameSpace.java \
|
||||
antlr/NoViableAltException.java \
|
||||
antlr/NoViableAltForCharException.java \
|
||||
antlr/OneOrMoreBlock.java \
|
||||
antlr/Parser.java \
|
||||
antlr/ParserGrammar.java \
|
||||
antlr/ParserSharedInputState.java \
|
||||
antlr/preprocessor/Grammar.java \
|
||||
antlr/preprocessor/GrammarFile.java \
|
||||
antlr/preprocessor/Hierarchy.java \
|
||||
antlr/preprocessor/Option.java \
|
||||
antlr/preprocessor/Preprocessor.java \
|
||||
antlr/preprocessor/PreprocessorLexer.java \
|
||||
antlr/preprocessor/PreprocessorTokenTypes.java \
|
||||
antlr/preprocessor/Rule.java \
|
||||
antlr/preprocessor/Tool.java \
|
||||
antlr/PreservingFileWriter.java \
|
||||
antlr/RecognitionException.java \
|
||||
antlr/RuleBlock.java \
|
||||
antlr/RuleEndElement.java \
|
||||
antlr/RuleRefElement.java \
|
||||
antlr/RuleSymbol.java \
|
||||
antlr/SemanticException.java \
|
||||
antlr/SimpleTokenManager.java \
|
||||
antlr/StringLiteralElement.java \
|
||||
antlr/StringLiteralSymbol.java \
|
||||
antlr/StringUtils.java \
|
||||
antlr/SynPredBlock.java \
|
||||
antlr/Token.java \
|
||||
antlr/TokenBuffer.java \
|
||||
antlr/TokenManager.java \
|
||||
antlr/TokenQueue.java \
|
||||
antlr/TokenRangeElement.java \
|
||||
antlr/TokenRefElement.java \
|
||||
antlr/TokenStream.java \
|
||||
antlr/TokenStreamBasicFilter.java \
|
||||
antlr/TokenStreamException.java \
|
||||
antlr/TokenStreamHiddenTokenFilter.java \
|
||||
antlr/TokenStreamIOException.java \
|
||||
antlr/TokenStreamRecognitionException.java \
|
||||
antlr/TokenStreamRetryException.java \
|
||||
antlr/TokenStreamSelector.java \
|
||||
antlr/TokenSymbol.java \
|
||||
antlr/Tool.java \
|
||||
antlr/ToolErrorHandler.java \
|
||||
antlr/TreeBlockContext.java \
|
||||
antlr/TreeElement.java \
|
||||
antlr/TreeParser.java \
|
||||
antlr/TreeParserSharedInputState.java \
|
||||
antlr/TreeSpecifierNode.java \
|
||||
antlr/TreeWalkerGrammar.java \
|
||||
antlr/Version.java \
|
||||
antlr/WildcardElement.java \
|
||||
antlr/ZeroOrMoreBlock.java
|
||||
OBJFILES = $(SOURCES:%.java=%.o)
|
||||
|
||||
all: cantlr
|
||||
|
||||
cantlr: $(OBJFILES)
|
||||
$(GCJ) --main=antlr.Tool $(OBJFILES) -o $@
|
||||
|
||||
%.o:%.java
|
||||
$(GCJ) $(COMPOPTS) -c -o $@ $<
|
||||
|
||||
clean:
|
||||
rm -f $(OBJFILES)
|
Loading…
Reference in New Issue
Block a user