SPECS: antlr.spec - added java bcond to allow build without all ja...
wrobell
wrobell at pld-linux.org
Sat Feb 24 13:01:57 CET 2007
Author: wrobell Date: Sat Feb 24 12:01:57 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added java bcond to allow build without all java stuff
---- Files affected:
SPECS:
antlr.spec (1.48 -> 1.49)
---- Diffs:
================================================================
Index: SPECS/antlr.spec
diff -u SPECS/antlr.spec:1.48 SPECS/antlr.spec:1.49
--- SPECS/antlr.spec:1.48 Mon Feb 12 22:23:46 2007
+++ SPECS/antlr.spec Sat Feb 24 13:01:52 2007
@@ -6,6 +6,7 @@
# Conditional build:
%bcond_without gcj # use javac instead of GCJ
%bcond_without dotnet # don't build .NET modules
+%bcond_without java # don't build Java at all
#
%{?with_dotnet:%include /usr/lib/rpm/macros.mono}
#
@@ -26,6 +27,7 @@
%{?with_dotnet:BuildRequires: mono-csharp}
BuildRequires: python
BuildRequires: sed >= 4.0
+%if %{with java}
%if %{with gcj}
BuildRequires: gcc-java >= 5:4.0.0
BuildRequires: gcc-java-tools >= 5:4.0.0
@@ -35,6 +37,7 @@
BuildRequires: jdk
Requires: jre
%endif
+%endif
Conflicts: pccts < 1.33MR33-6
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -105,6 +108,7 @@
%{?with_dotnet:--enable-csharp} \
%{!?with_dotnet:--disable-csharp} \
%{!?with_gcj:CLASSPATH=`pwd` --with-java=java --with-javac=javac --with-jar=jar} \
+ %{!?with_java:--disable-java} \
%{?with_gcj:--with-java=gij --with-javac=gcj --with-jar=jar}
CXXFLAGS="%{rpmcxxflags}" \
@@ -117,8 +121,10 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%if %{with java}
install $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/antlr.jar \
$RPM_BUILD_ROOT%{_javadir}
+%endif
install $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/*.py \
$RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}
cp -Rf examples/{cpp,csharp,java,python} \
@@ -144,7 +150,9 @@
%{_includedir}/%{name}
%{_libdir}/libantlr.a
# Dont separate it, antlr binary wont work without it
+%if %{with java}
%{_javadir}/*.jar
+%endif
%if %{with dotnet}
%files -n dotnet-antlr
@@ -167,6 +175,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.49 2007/02/24 12:01:52 wrobell
+- added java bcond to allow build without all java stuff
+
Revision 1.48 2007/02/12 21:23:46 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/antlr.spec?r1=1.48&r2=1.49&f=u
More information about the pld-cvs-commit
mailing list