]> git.pld-linux.org Git - packages/antlr.git/commitdiff
- Release: 5
authorJacek Konieczny <jajcus@pld-linux.org>
Wed, 24 May 2006 08:11:49 +0000 (08:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- another try with gcc-java

Changed files:
    antlr.spec -> 1.23.2.7

antlr.spec

index 4c409321320c83fa5109715bda4e3af896227c0a..a72422f2f470ab63cfaf9bc75076fd01e752835d 100644 (file)
@@ -1,16 +1,15 @@
-%include /usr/lib/rpm/macros.java
 # TODO: 
 #  *  Add a csharp bindings subpacakge (feel free to do it)
 #  *  Package the Emacs an Jedit modes
 #
 # Conditional build:
-%bcond_with    gcc_java        # use gcj/gij instead of javac/java
+%bcond_without gcc_java        # use javac/java instead of gcj/gij (limits to architectures with Sun JDK)
 #
 Summary:       ANother Tool for Language Recognition
 Summary(pl):   Jeszcze jedno narzêdzie do rozpoznawania jêzyka
 Name:          antlr
 Version:       2.7.5
-Release:       4
+Release:       5
 License:       Public Domain
 Group:         Development/Tools
 Source0:       http://www.antlr.org/download/%{name}-%{version}.tar.gz
@@ -20,6 +19,7 @@ URL:          http://www.antlr.org/
 BuildRequires: automake
 BuildRequires: libstdc++-devel
 BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.300
 %if %{with gcc_java}
 BuildRequires: gcc-java
 BuildRequires: jar
@@ -73,16 +73,21 @@ przez ANTLR.
 
 %build
 unset CLASSPATH || :
-unset JAVA_HOME || :
 
-%{?with_javac:export JAVA_HOME=%{java_home}}
+%if %{with gcc_java}
+unset JAVA_HOME || :
+%else
+JAVA_HOME=%{java_home}
+%endif
 
 cp -f /usr/share/automake/config.sub scripts
 
 %configure \
        %{?!with_gcc_java:CLASSPATH=`pwd` --with-javac=javac} \
-       %{?without_gcc_java:--with-javac=gcj} \
-       %{?without_gcc_java:--with-java=gij} \
+       %{?with_gcc_java:--with-javac=gcj} \
+       %{?without_gcc_java:--with-javac=javac} \
+       %{?with_gcc_java:--with-java=gij} \
+       %{?without_gcc_java:--with-java=java} \
        --disable-csharp
 
 %{__make}
This page took 0.07734 seconds and 4 git commands to generate.