[Jpackage-commits] dist/antlr/devel .cvsignore, 1.1, 1.2 antlr-build.xml, NONE, 1.1 antlr-component-info.xml, NONE, 1.1 antlr-jedit.patch, NONE, 1.1 antlr-script, NONE, 1.1 antlr.spec, NONE, 1.1 makefile.gcj, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed May 28 23:09:07 CEST 2008


Update of /home/projects/jpackage/cvs/dist/antlr/devel
In directory ryu.zarb.org:/tmp/cvs-serv2403/devel

Modified Files:
	.cvsignore sources 
Added Files:
	antlr-build.xml antlr-component-info.xml antlr-jedit.patch 
	antlr-script antlr.spec makefile.gcj 
Log Message:
Import merged version from Permaine

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/antlr/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 21:07:51 -0000	1.1
--- .cvsignore	28 May 2008 21:09:04 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ antlr-2.7.6.tar.gz

--- NEW FILE: antlr-script ---
#!/bin/sh
#
# antlr script
# JPackage Project <http://www.jpackage.org/>

# 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 "$@"

--- NEW FILE: makefile.gcj ---
# Use this file to compile the antlr tool in a static executable using the 
# GNU gcj compiler.
# Author:	Luca Di Gaspero (luca.digaspero at 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)

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/antlr/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 21:07:51 -0000	1.1
--- sources	28 May 2008 21:09:05 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 17d8bf2e814f0a26631aadbbda8d7324  antlr-2.7.6.tar.gz

--- NEW FILE: antlr-component-info.xml ---
<project name="antlr-component-info">
   <component id="antlr"
              licenseType="antlr"
              version="2.7.6-brew"
              projectHome="http://www.antlr.org/"
              description="ANother Tool for Language Recognition"
              scm=":ext:cvs.devel.redhat.com:/cvs/dist/antlr"
              tag="@TAG@">
      <!-- Built using JDK 1.4 -->
      <artifact id="antlr.jar"/>
      <export>
         <include input="antlr.jar"/>
      </export>
   </component>

</project>

--- NEW FILE: antlr-build.xml ---
<!-- simple generic build file -->

<project name="antlr" default="all" basedir=".">

  <!-- Properties -->

  <property name="name" value="antlr"/>
  <property name="src" value="src"/>
  <property name="build" value="work"/>
  <property name="build.classes" value="${build}/classes"/>
  <property name="build.doc" value="${build}/api"/>
  <property name="build.lib" value="${build}/lib"/>
  <property name="packagenames" value="antlr.*"/>
  <property name="j2se.apidoc" value="http://java.sun.com/j2se/1.4/docs/api/"/>

  <!-- Targets -->

  <!-- Prepare build directories -->
  <target name="prepare">
    <mkdir dir="${src}"/>
    <mkdir dir="${build}"/>
    <mkdir dir="${build.classes}"/>
    <mkdir dir="${build.lib}"/>
    <mkdir dir="${build.doc}"/>
    <copy todir="${src}/antlr">
      <fileset dir="antlr"/>
    </copy>
  </target>

  <!-- Kill all the created directories -->
  <target name="clean">
    <delete dir="${build}"/>
    <delete dir="${src}"/>
  </target>

  <!-- Build classes -->
  <target name="classes" depends="prepare">
    <javac srcdir="${src}" destdir="${build.classes}"
      debug="off" optimize="on" deprecation="on"/>
  </target>

  <!-- Build jar archives -->
  <target name="jar" depends="classes">
    <jar jarfile="${build.lib}/${name}.jar" basedir="${build.classes}"
      index="true">
      <manifest>
        <attribute name="Main-Class" value="antlr.Tool"/>
      </manifest>
    </jar>
  </target>

  <!-- Build the full JavaDocs -->
  <target name="javadoc" depends="prepare">
    <javadoc sourcepath="${src}"
      destdir="${build.doc}"
      doctitle="${name} Javadoc"
      windowtitle="${name} Javadoc"
      package="true"
      author="true"
      version="true"
      packagenames="${packagenames}"
      splitindex="true"
      use="true">
      <link href="${j2se.apidoc}"/>
    </javadoc>
  </target>

  <!-- Build everything -->
  <target name="all" depends="jar,javadoc"/>

</project>

--- NEW FILE: antlr-jedit.patch ---
--- 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 @@
 	</PROPS>
    
    <RULES DEFAULT="KEYWORD1">
-		<!-- whitespace: (space and tab) -->
-		<WHITESPACE> </WHITESPACE>
-		<WHITESPACE>	</WHITESPACE>
 
       <!-- antlr specific rules -->
       <SPAN DELEGATE="java::MAIN" TYPE="KEYWORD1">
@@ -97,9 +94,7 @@
    </RULES>
    
    <RULES DEFAULT="KEYWORD2" SET="PRODUCTION">
-		<!-- whitespace: (space and tab) -->
-		<WHITESPACE> </WHITESPACE>
-		<WHITESPACE>	</WHITESPACE>
+
 		<!-- Silly comment -->
 		<SEQ TYPE="COMMENT1">/**/</SEQ>
 
@@ -149,9 +144,6 @@
    </RULES>
 
    <RULES SET="KEYVALUE">
-		<!-- whitespace: (space and tab) -->
-		<WHITESPACE> </WHITESPACE>
-		<WHITESPACE>	</WHITESPACE>
       
       <SEQ TYPE="KEYWORD1">{</SEQ>
       

--- NEW FILE: antlr.spec ---
# 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.
#

# If you want repolib package to be built,
# issue the following: 'rpmbuild --with repolib'
%define _with_repolib 1

%define with_repolib %{?_with_repolib:1}%{!?_with_repolib:0}
%define without_repolib %{!?_with_repolib:1}%{?_with_repolib:0}

%define repodir %{_javadir}/repository.jboss.com/antlr/2.7.6-brew
%define repodirlib %{repodir}/lib
%define repodirsrc %{repodir}/src

%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}

%define section free
%define native  %{?_with_native:1}%{!?_without_native:0}

Summary:        ANother Tool for Language Recognition
Name:           antlr
Version:        2.7.6
Release:        4jpp%{?dist}
Epoch:          0
License:        Public Domain
URL:            http://www.antlr.org/
Group:          Development/Code Generators
#http://www.antlr.org/download/antlr-%{version}.tar.gz
Source0:        antlr-%{version}.tar.gz
Source1:        %{name}-build.xml
Source2:        %{name}-script
#http://www.antlr.org/share/1069557132934/makefile.gcj
Source3:        makefile.gcj
Patch0:         %{name}-jedit.patch
Source4:	antlr-component-info.xml
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%if %{native}
BuildRequires:  %{_bindir}/gcj, %{__make}
%else
%if ! %{gcj_support}
BuildArch:      noarch
%endif
BuildRequires:  ant
BuildRequires:  %{__perl}, java-javadoc
Requires:       jpackage-utils
Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives
%endif

%if %{gcj_support}
BuildRequires:		java-gcj-compat-devel
Requires(post):		java-gcj-compat
Requires(postun):	java-gcj-compat
%endif

%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].

%if %{with_repolib}
%package	 repolib
Summary:	 Artifacts to be uploaded to a repository library
Group:	Development/Libraries/Java

%description	 repolib
Artifacts to be uploaded to a repository library.
This package is not meant to be installed but so its contents
can be extracted through rpm2cpio
%endif

%package        native
Group:          Development/Code Generators
Summary:        ANother Tool for Language Recognition (native version)
Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives

%if %{gcj_support}
BuildRequires:		java-gcj-compat-devel
Requires(post):		java-gcj-compat
Requires(postun):	java-gcj-compat
%endif

%description    native
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].  This package includes the native version of the antlr tool.

%package        manual
Group:          Development/Code Generators
Summary:        Manual for %{name}

%description    manual
Documentation for %{name}.

%package        javadoc
Group:          Development/Documentation
Summary:        Javadoc for %{name}
Requires(post):   /bin/rm,/bin/ln
Requires(postun): /bin/rm

%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:

  <MODE NAME="antlr" FILE="antlr.xml" FILE_NAME_GLOB="*.g"/>


%prep
%setup -q
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
%if !%{native}
%patch0 -p0
cp -p %{SOURCE1} build.xml
# fixup paths to manual
%{__perl} -pi -e 's|"doc/|"%{_docdir}/%{name}-manual-%{version}/|g' \
  install.html
%endif



tag=`echo %{name}-%{version}-%{release} | sed 's|\.|_|g'`
sed -i "s/@TAG@/$tag/g" %{SOURCE4}

%build
%if %{native}
%{__make} -f %{SOURCE3} COMPOPTS="$RPM_OPT_FLAGS"

%else
ant -Dj2se.apidoc=%{_javadocdir}/java
%endif


%install
rm -rf $RPM_BUILD_ROOT

install -dm 755 $RPM_BUILD_ROOT%{_bindir}
touch $RPM_BUILD_ROOT%{_bindir}/antlr # for %%ghost

%if %{native}

install -pm 755 cantlr $RPM_BUILD_ROOT%{_bindir}/antlr-native

%else
# 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
cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/antlr-java

# 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
%endif


%if %{gcj_support}
%{_bindir}/aot-compile-rpm
%endif


%if %{with_repolib}
	install -d -m 755 $RPM_BUILD_ROOT%{repodir}
	install -d -m 755 $RPM_BUILD_ROOT%{repodirlib}
	install -m 755 %{SOURCE4} $RPM_BUILD_ROOT%{repodir}/component-info.xml
	install -d -m 755 $RPM_BUILD_ROOT%{repodirsrc}
	install -m 755 %{PATCH0} $RPM_BUILD_ROOT%{repodirsrc}
	install -m 755 %{SOURCE0} $RPM_BUILD_ROOT%{repodirsrc}
	install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{repodirsrc}
	cp $RPM_BUILD_ROOT%{_javadir}/antlr.jar $RPM_BUILD_ROOT%{repodirlib}
%endif

%clean
rm -rf $RPM_BUILD_ROOT


%post
%{_sbindir}/update-alternatives --install %{_bindir}/antlr \
  %{name} %{_bindir}/antlr-java 10

%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%postun
if [ $1 -eq 0 ] ; then
  %{_sbindir}/update-alternatives --remove %{name} %{_bindir}/antlr-java
fi

%if %{native}
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%post native
%{_sbindir}/update-alternatives --install %{_bindir}/antlr \
  %{name} %{_bindir}/antlr-native 20

%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%postun native
if [ $1 -eq 0 ] ; then
  %{_sbindir}/update-alternatives --remove %{name} %{_bindir}/antlr-native
fi
%endif

%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%postun javadoc
if [ $1 -eq 0 ]; then
  %{__rm} -f %{_javadocdir}/%{name}
fi

%if %{native}
%files native
%defattr(0644,root,root,0755)
%doc INSTALL.txt LICENSE.txt
%defattr(0755,root,root,0755)
%ghost %{_bindir}/antlr
%{_bindir}/antlr-native

%else
%files
%defattr(0644,root,root,0755)
%doc INSTALL.txt LICENSE.txt
%{_javadir}/%{name}*.jar
%defattr(0755,root,root,0755)
%ghost %{_bindir}/antlr
%{_bindir}/antlr-java

%if %{gcj_support}
%attr(-,root,root) %{_libdir}/gcj/%{name}
%endif

%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/*
%endif



%if %{with_repolib}
%files repolib
%defattr(0644,root,root,0755)
%{repodir}
%endif

%changelog
* Tue May 27 2008 Permaine Cheung <pcheung at redhat.com> - 0:2.7.6-4jpp
- First JPP5 build

* Tue Mar 13 2007 Vivek Lakshmanan <vivekl at redhat.com> - 0:2.7.6-3jpp.ep1.2
- Fix typo in repodir

* Tue Mar 13 2007 Fernando Nasser <fnasser at redhat.com> - 0:2.7.6-3jpp.ep1.1
- New repolib location

* Mon Feb 19 2007 Vivek Lakshmanan <vivekl at redhat.com> - 0:2.7.6-3jpp.el4ep1.2
- Use -brew suffix

* Thu Feb 15 2007 Vivek Lakshmanan <vivekl at redhat.com> - 0:2.7.6-3jpp.el4ep1.1
- Repolib support added

* Wed Aug 02 2006 Fernando Nasser <fnasser at redhat.com> - 0:2.7.6-3jpp_1rh
- Merge with upstream

* Wed Jul 19 2006 Deepak Bhole <dbhole at redhat.om> = 0:2.7.6-3jpp
- Added conditional native compilation.

* Fri Jan 13 2006 Fernando Nasser <fnasser at redhat.com> - 0:2.7.6-2jpp_1rh
- Merge with upstream for upgrade

* Fri Jan 13 2006 Fernando Nasser <fnasser at redhat.com> - 0:2.7.6-2jpp
- First JPP 1.7 build

* Fri Jan 13 2006 Fernando Nasser <fnasser at redhat.com> - 0:2.7.6-1jpp
- Update to 2.7.6.

* Mon Nov 15 2004 Fernando Nasser <fnasser at redhat.com> - 0:2.7.4-2jpp_1rh
- Merge with upstream for upgrade

* Fri Aug 20 2004 Ralph Apel <r.apel at r-apel.de> - 0:2.7.4-2jpp
- Build with ant-1.6.2.
- Made native scripts conditional

* Tue May 18 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:2.7.4-1jpp
- Update to 2.7.4.

* Fri Apr  2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:2.7.3-2jpp
- Create alternatives also on upgrades.

* Wed Mar 31 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:2.7.3-1jpp
- Update to 2.7.3.
- Include gcj build option and a native subpackage, build using
  "--with native" to get that.
- Add %{_bindir}/antlr alternative.

* Thu Mar  4 2004 Frank Ch. Eigler <fche at redhat.com - 0:2.7.2-3jpp_1rh
- RH vacuuming

* Mon Dec 15 2003 Ville Skyttä <ville.skytta at iki.fi> - 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ä <ville.skytta at iki.fi> - 0:2.7.2-2jpp
- Rebuild for JPackage 1.5.

* Sat Mar  1 2003 Ville Skyttä <ville.skytta at iki.fi> - 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 <guillomovitch at users.sourceforge.net> 2.7.1-8jpp
- really section macro
- hardcoded distribution and vendor tag
- group tag again

* Thu May 2 2002 Guillaume Rousse <guillomovitch at users.sourceforge.net> 2.7.1-7jpp
- distribution tag
- group tag
- section macro

* Fri Jan 18 2002 Guillaume Rousse <guillomovitch at users.sourceforge.net> 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 <guillomovitch at users.sourceforge.net> 2.7.1-5jpp
- javadoc in javadoc package

* Wed Nov 21 2001 Christian Zoffoli <czoffoli at littlepenguin.org> 2.7.1-4jpp
- removed packager tag
- new jpp extension

* Sat Oct 6 2001 Guillaume Rousse <guillomovitch at users.sourceforge.net> 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 <guillomovitch at users.sourceforge.net> 2.7.1-2jpp
- first unified release
- s/jPackage/JPackage

* Tue Aug 28 2001 Guillaume Rousse <guillomovitch at users.sourceforge.net> 2.7.1-1mdk
- first Mandrake release




More information about the JPackage-commits mailing list