SPECS: antlr.spec - dotnet module added.
pluto
pluto at pld-linux.org
Sun Nov 27 02:29:39 CET 2005
Author: pluto Date: Sun Nov 27 01:29:39 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- dotnet module added.
---- Files affected:
SPECS:
antlr.spec (1.29 -> 1.30)
---- Diffs:
================================================================
Index: SPECS/antlr.spec
diff -u SPECS/antlr.spec:1.29 SPECS/antlr.spec:1.30
--- SPECS/antlr.spec:1.29 Fri May 13 21:14:32 2005
+++ SPECS/antlr.spec Sun Nov 27 02:29:33 2005
@@ -1,17 +1,17 @@
# $Revision$, $Date$
# TODO:
-# * Add a csharp bindings subpackage (feel free to do it)
# * add python bcond
# * add an axamples subpackage (and python-examples as well)
#
# Conditional build:
%bcond_without gcj # use javac instead of GCJ
+%bcond_without dotnet # don't build .NET modules
#
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: 4.1
License: Public Domain
Group: Development/Tools
Source0: http://www.antlr.org/download/%{name}-%{version}.tar.gz
@@ -29,6 +29,7 @@
BuildRequires: jdk
Requires: jre
%endif
+%{?with_dotnet:BuildRequires: mono-csharp}
Conflicts: pccts < 1.33MR33-6
BuildRequires: sed >= 4.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -52,17 +53,28 @@
ANTLR ma świetne wsparcie dla tworzenia drzew, przechodzenia po
drzewach oraz translacji.
-%package -n python-%{name}
+%package -n dotnet-antlr
+Summary: .NET support for ANTLR
+Summary(pl): Moduły języka .NET dla biblioteki ANTLR
+Group: Libraries
+
+%description -n dotnet-antlr
+.NET support for ANTLR.
+
+%description -n dotnet-antlr -l pl
+Moduły języka .NET dla biblioteki ANTLR.
+
+%package -n python-antlr
Summary: Python support for ANTLR
Summary(pl): Moduły języka Python dla biblioteki ANTLR
Group: Libraries/Python
Requires: %{name} = %{epoch}:%{version}-%{release}
%pyrequires_eq python-libs
-%description -n python-%{name}
+%description -n python-antlr
Python support for ANTLR.
-%description -n python-%{name} -l pl
+%description -n python-antlr -l pl
Moduły języka Python dla biblioteki ANTLR.
%prep
@@ -74,6 +86,8 @@
cp -f /usr/share/automake/config.sub scripts
%configure \
+ --enable-cxx \
+ %{?with_dotnet:--enable-csharp} \
%{!?with_gcj:CLASSPATH=`pwd` --with-javac=javac} \
%{?with_gcj:--with-javac=gcj --with-jar=fastjar}
@@ -81,7 +95,7 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_javadir},%{py_sitescriptdir}/%{name}}
+install -d $RPM_BUILD_ROOT{%{_javadir},%{py_sitescriptdir}/%{name},%{_prefix}/lib/mono/%{name}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
@@ -90,6 +104,7 @@
$RPM_BUILD_ROOT%{_javadir}
install $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/*.py \
$RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}
+install lib/*.dll $RPM_BUILD_ROOT%{_prefix}/lib/mono/%{name}
%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}
%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}
@@ -97,7 +112,6 @@
%{__sed} -i -e "s,ANTLR_JAR=.*,ANTLR_JAR=\"%{_javadir}/antlr.jar\",g" $RPM_BUILD_ROOT%{_bindir}/antlr
-
%clean
rm -rf $RPM_BUILD_ROOT
@@ -111,7 +125,13 @@
# Dont separate it, antlr binary wont work without it
%{_javadir}/*.jar
-%files -n python-%{name}
+%if %{with dotnet}
+%files -n dotnet-antlr
+%defattr(644,root,root,755)
+%{_prefix}/lib/mono/%{name}/*.dll
+%endif
+
+%files -n python-antlr
%defattr(644,root,root,755)
%{py_sitescriptdir}/%{name}
@@ -121,6 +141,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.30 2005/11/27 01:29:33 pluto
+- dotnet module added.
+
Revision 1.29 2005/05/13 19:14:32 jpc
- packaged python files
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/antlr.spec?r1=1.29&r2=1.30&f=u
More information about the pld-cvs-commit
mailing list