- Disable python runtime (incompatible with current antlr version)
This commit is contained in:
parent
ddd694602e
commit
f8d51ab1e0
55
antlr3.spec
55
antlr3.spec
|
@ -1,15 +1,15 @@
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
#%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||||
|
|
||||||
%global with_bootstrap 0
|
%global with_bootstrap 0
|
||||||
|
|
||||||
%global antlr_version 3.4
|
%global antlr_version 3.4
|
||||||
%global python_runtime_version 3.1.3
|
#%global python_runtime_version 3.1.3
|
||||||
%global javascript_runtime_version 3.1
|
%global javascript_runtime_version 3.1
|
||||||
|
|
||||||
Summary: ANother Tool for Language Recognition
|
Summary: ANother Tool for Language Recognition
|
||||||
Name: antlr3
|
Name: antlr3
|
||||||
Version: %{antlr_version}
|
Version: %{antlr_version}
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
URL: http://www.antlr.org/
|
URL: http://www.antlr.org/
|
||||||
Source0: http://www.antlr.org/download/antlr-%{antlr_version}.tar.gz
|
Source0: http://www.antlr.org/download/antlr-%{antlr_version}.tar.gz
|
||||||
Source1: http://www.antlr.org/download/C/libantlr3c-%{antlr_version}.tar.gz
|
Source1: http://www.antlr.org/download/C/libantlr3c-%{antlr_version}.tar.gz
|
||||||
|
@ -120,16 +120,16 @@ This package contains doxygen documentation with instruction
|
||||||
on how to use the C target in ANTLR and complete API description of the
|
on how to use the C target in ANTLR and complete API description of the
|
||||||
C run-time support for ANTLR-generated parsers.
|
C run-time support for ANTLR-generated parsers.
|
||||||
|
|
||||||
%package python
|
#%package python
|
||||||
Group: Development/Libraries
|
#Group: Development/Libraries
|
||||||
Summary: Python run-time support for ANTLR-generated parsers
|
#Summary: Python run-time support for ANTLR-generated parsers
|
||||||
BuildRequires: python-devel
|
#BuildRequires: python-devel
|
||||||
BuildRequires: python-setuptools-devel
|
#BuildRequires: python-setuptools-devel
|
||||||
BuildArch: noarch
|
#BuildArch: noarch
|
||||||
Version: %{python_runtime_version}
|
#Version: %{python_runtime_version}
|
||||||
|
#
|
||||||
%description python
|
#%description python
|
||||||
Python run-time support for ANTLR-generated parsers
|
#Python run-time support for ANTLR-generated parsers
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n antlr-%{antlr_version} -a 1 -a 2 -a 3
|
%setup -q -n antlr-%{antlr_version} -a 1 -a 2 -a 3
|
||||||
|
@ -189,10 +189,10 @@ mvn-rpmbuild -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
||||||
install javadoc:javadoc
|
install javadoc:javadoc
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Build the python runtime
|
## Build the python runtime
|
||||||
pushd antlr_python_runtime-%{python_runtime_version}
|
#pushd antlr_python_runtime-%{python_runtime_version}
|
||||||
%{__python} setup.py build
|
#%{__python} setup.py build
|
||||||
popd
|
#popd
|
||||||
|
|
||||||
# Build the C runtime
|
# Build the C runtime
|
||||||
pushd libantlr3c-%{antlr_version}-beta4
|
pushd libantlr3c-%{antlr_version}-beta4
|
||||||
|
@ -247,11 +247,11 @@ install -m 644 antlr3-maven-plugin/target/%{name}-maven-plugin-%{antlr_version}.
|
||||||
# install wrapper script
|
# install wrapper script
|
||||||
install -m 755 %{SOURCE5} $RPM_BUILD_ROOT%{_bindir}/antlr3
|
install -m 755 %{SOURCE5} $RPM_BUILD_ROOT%{_bindir}/antlr3
|
||||||
|
|
||||||
# install python runtime
|
## install python runtime
|
||||||
pushd antlr_python_runtime-%{python_runtime_version}
|
#pushd antlr_python_runtime-%{python_runtime_version}
|
||||||
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
#%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||||
chmod a+x $RPM_BUILD_ROOT%{python_sitelib}/antlr_python_runtime-*
|
#chmod a+x $RPM_BUILD_ROOT%{python_sitelib}/antlr_python_runtime-*
|
||||||
popd
|
#popd
|
||||||
|
|
||||||
# install C runtime
|
# install C runtime
|
||||||
pushd libantlr3c-%{antlr_version}-beta4
|
pushd libantlr3c-%{antlr_version}-beta4
|
||||||
|
@ -282,10 +282,10 @@ popd
|
||||||
%{_javadir}/antlr3-maven*.jar
|
%{_javadir}/antlr3-maven*.jar
|
||||||
%{_bindir}/antlr3
|
%{_bindir}/antlr3
|
||||||
|
|
||||||
%files python
|
#%files python
|
||||||
%doc tool/LICENSE.txt
|
#%doc tool/LICENSE.txt
|
||||||
%{python_sitelib}/antlr3/*
|
#%{python_sitelib}/antlr3/*
|
||||||
%{python_sitelib}/antlr_python_runtime-*
|
#%{python_sitelib}/antlr_python_runtime-*
|
||||||
|
|
||||||
%files C
|
%files C
|
||||||
%doc tool/LICENSE.txt
|
%doc tool/LICENSE.txt
|
||||||
|
@ -309,6 +309,9 @@ popd
|
||||||
%{_datadir}/antlr/
|
%{_datadir}/antlr/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 23 2012 Miloš Jakubíček <xjakub@fi.muni.cz> - 3.4-5
|
||||||
|
- Disable python runtime (incompatible with current antlr version)
|
||||||
|
|
||||||
* Wed Feb 22 2012 Miloš Jakubíček <xjakub@fi.muni.cz> - 3.4-4
|
* Wed Feb 22 2012 Miloš Jakubíček <xjakub@fi.muni.cz> - 3.4-4
|
||||||
- Fix permissions for egg-info dir (fixes BZ#790499)
|
- Fix permissions for egg-info dir (fixes BZ#790499)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue