|
Milos Jakubicek |
f8d51ab |
#%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
6398229 |
|
|
|
96e3464 |
%global with_bootstrap 0
|
|
|
6398229 |
|
|
Stanislav Ochotnicky |
cd1a14c |
%global antlr_version 3.4
|
|
Milos Jakubicek |
f8d51ab |
#%global python_runtime_version 3.1.3
|
|
|
6398229 |
%global javascript_runtime_version 3.1
|
|
|
6398229 |
|
|
Stanislav Ochotnicky |
b099f74 |
Summary: ANother Tool for Language Recognition
|
|
Stanislav Ochotnicky |
b099f74 |
Name: antlr3
|
|
Stanislav Ochotnicky |
b099f74 |
Version: %{antlr_version}
|
|
Milos Jakubicek |
cf7f97c |
Release: 12%{?dist}
|
|
Stanislav Ochotnicky |
b099f74 |
URL: http://www.antlr.org/
|
|
Stanislav Ochotnicky |
b099f74 |
Source0: http://www.antlr.org/download/antlr-%{antlr_version}.tar.gz
|
|
Stanislav Ochotnicky |
b099f74 |
Source1: http://www.antlr.org/download/C/libantlr3c-%{antlr_version}.tar.gz
|
|
Stanislav Ochotnicky |
b099f74 |
Source2: http://www.antlr.org/download/Python/antlr_python_runtime-%{python_runtime_version}.tar.gz
|
|
Stanislav Ochotnicky |
b099f74 |
Source3: http://www.antlr.org/download/antlr-javascript-runtime-%{javascript_runtime_version}.zip
|
|
Stanislav Ochotnicky |
b099f74 |
Source5: antlr3
|
|
|
6398229 |
%if %{with_bootstrap}
|
|
Stanislav Ochotnicky |
b099f74 |
Source6: settings.xml
|
|
Stanislav Ochotnicky |
b099f74 |
Source7: http://www.antlr.org/download/antlr-%{antlr_version}.jar
|
|
Stanislav Ochotnicky |
b099f74 |
Source8: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/antlr/antlr3-maven-plugin/%{antlr_version}/antlr3-maven-plugin-%{antlr_version}.jar
|
|
|
6398229 |
%endif
|
|
|
c71126d |
Source9: antlr-runtime-MANIFEST.MF
|
|
Stanislav Ochotnicky |
b099f74 |
License: BSD
|
|
Stanislav Ochotnicky |
b099f74 |
Group: Development/Libraries
|
|
Stanislav Ochotnicky |
b099f74 |
BuildRequires: java-devel >= 1:1.6.0
|
|
Stanislav Ochotnicky |
b099f74 |
BuildRequires: jpackage-utils
|
|
Stanislav Ochotnicky |
cd1a14c |
BuildRequires: maven
|
|
Stanislav Ochotnicky |
cd1a14c |
BuildRequires: maven-enforcer-plugin
|
|
Stanislav Ochotnicky |
b099f74 |
BuildRequires: maven-plugin-bundle
|
|
Stanislav Ochotnicky |
b099f74 |
BuildRequires: maven-assembly-plugin
|
|
Stanislav Ochotnicky |
b099f74 |
BuildRequires: maven-shared-reporting-impl
|
|
Stanislav Ochotnicky |
b099f74 |
BuildRequires: maven-surefire-provider-junit4
|
|
Stanislav Ochotnicky |
b099f74 |
BuildRequires: buildnumber-maven-plugin
|
|
|
c71126d |
BuildRequires: junit
|
|
|
c71126d |
BuildRequires: tomcat-servlet-3.0-api
|
|
Stanislav Ochotnicky |
b099f74 |
BuildRequires: stringtemplate4
|
|
Stanislav Ochotnicky |
d36f212 |
BuildRequires: stringtemplate
|
|
Stanislav Ochotnicky |
b099f74 |
BuildRequires: felix-parent
|
|
|
fe77f22 |
BuildRequires: zip
|
|
|
6398229 |
%if ! %{with_bootstrap}
|
|
Stanislav Ochotnicky |
b099f74 |
BuildRequires: antlr3-tool >= 3.2
|
|
|
6398229 |
%endif
|
|
|
01ce193 |
|
|
Stanislav Ochotnicky |
cd1a14c |
# we don't build it now
|
|
Stanislav Ochotnicky |
cd1a14c |
Obsoletes: antlr3-gunit < 3.2-15
|
|
Stanislav Ochotnicky |
cd1a14c |
|
|
|
01ce193 |
%description
|
|
|
01ce193 |
ANother Tool for Language Recognition, is a language tool
|
|
|
01ce193 |
that provides a framework for constructing recognizers,
|
|
Stanislav Ochotnicky |
1daa565 |
interpreters, compilers, and translators from grammatical
|
|
|
01ce193 |
descriptions containing actions in a variety of target languages.
|
|
|
01ce193 |
|
|
Stanislav Ochotnicky |
b099f74 |
%package tool
|
|
Stanislav Ochotnicky |
b099f74 |
Group: Development/Libraries
|
|
Stanislav Ochotnicky |
b099f74 |
Summary: ANother Tool for Language Recognition
|
|
Stanislav Ochotnicky |
b099f74 |
BuildArch: noarch
|
|
Stanislav Ochotnicky |
b099f74 |
Requires: jpackage-utils
|
|
Stanislav Ochotnicky |
b099f74 |
Requires: java >= 1:1.6.0
|
|
Stanislav Ochotnicky |
b099f74 |
Provides: %{name} = %{antlr_version}-%{release}
|
|
Stanislav Ochotnicky |
b099f74 |
Obsoletes: %{name} < %{antlr_version}-%{release}
|
|
Stanislav Ochotnicky |
b099f74 |
Requires: %{name}-java = %{antlr_version}-%{release}
|
|
Stanislav Ochotnicky |
b099f74 |
Requires: stringtemplate4
|
|
Stanislav Ochotnicky |
b099f74 |
|
|
Stanislav Ochotnicky |
b099f74 |
%description tool
|
|
|
6398229 |
ANother Tool for Language Recognition, is a language tool
|
|
|
6398229 |
that provides a framework for constructing recognizers,
|
|
Stanislav Ochotnicky |
1daa565 |
interpreters, compilers, and translators from grammatical
|
|
|
6398229 |
descriptions containing actions in a variety of target languages.
|
|
|
6398229 |
|
|
Stanislav Ochotnicky |
b099f74 |
%package java
|
|
Stanislav Ochotnicky |
b099f74 |
Group: Development/Libraries
|
|
Stanislav Ochotnicky |
b099f74 |
Summary: Java run-time support for ANTLR-generated parsers
|
|
Stanislav Ochotnicky |
b099f74 |
BuildArch: noarch
|
|
Stanislav Ochotnicky |
b099f74 |
Requires: stringtemplate4
|
|
Stanislav Ochotnicky |
d36f212 |
Requires: stringtemplate
|
|
Stanislav Ochotnicky |
b099f74 |
Requires: jpackage-utils
|
|
Stanislav Ochotnicky |
b099f74 |
Requires: java >= 1:1.6.0
|
|
Bart Vanbrabant |
4eb01e7 |
|
|
Stanislav Ochotnicky |
b099f74 |
%description java
|
|
|
6398229 |
Java run-time support for ANTLR-generated parsers
|
|
|
6398229 |
|
|
Stanislav Ochotnicky |
b099f74 |
%package javascript
|
|
Stanislav Ochotnicky |
b099f74 |
Group: Development/Libraries
|
|
Stanislav Ochotnicky |
b099f74 |
Summary: Javascript run-time support for ANTLR-generated parsers
|
|
Stanislav Ochotnicky |
b099f74 |
Version: %{javascript_runtime_version}
|
|
Stanislav Ochotnicky |
b099f74 |
BuildArch: noarch
|
|
|
6398229 |
|
|
Stanislav Ochotnicky |
b099f74 |
%description javascript
|
|
|
6398229 |
Javascript run-time support for ANTLR-generated parsers
|
|
|
6398229 |
|
|
Stanislav Ochotnicky |
b099f74 |
%package C
|
|
Stanislav Ochotnicky |
b099f74 |
Group: Development/Libraries
|
|
Stanislav Ochotnicky |
b099f74 |
Summary: C run-time support for ANTLR-generated parsers
|
|
|
6398229 |
|
|
Stanislav Ochotnicky |
b099f74 |
%description C
|
|
|
6398229 |
C run-time support for ANTLR-generated parsers
|
|
|
6398229 |
|
|
Stanislav Ochotnicky |
b099f74 |
%package C-devel
|
|
Stanislav Ochotnicky |
b099f74 |
Group: Development/Libraries
|
|
Stanislav Ochotnicky |
b099f74 |
Summary: Header files for the C bindings for ANTLR-generated parsers
|
|
Stanislav Ochotnicky |
b099f74 |
Requires: %{name}-C = %{antlr_version}-%{release}
|
|
|
741cae4 |
|
|
Stanislav Ochotnicky |
b099f74 |
%description C-devel
|
|
|
741cae4 |
Header files for the C bindings for ANTLR-generated parsers
|
|
|
741cae4 |
|
|
Stanislav Ochotnicky |
b099f74 |
%package C-docs
|
|
Stanislav Ochotnicky |
b099f74 |
Group: Documentation
|
|
Stanislav Ochotnicky |
b099f74 |
Summary: API documentation for the C run-time support for ANTLR-generated parsers
|
|
Stanislav Ochotnicky |
b099f74 |
BuildArch: noarch
|
|
Stanislav Ochotnicky |
b099f74 |
BuildRequires: graphviz
|
|
Stanislav Ochotnicky |
b099f74 |
BuildRequires: doxygen
|
|
Stanislav Ochotnicky |
b099f74 |
Requires: %{name}-C = %{antlr_version}-%{release}
|
|
|
6398229 |
|
|
Stanislav Ochotnicky |
b099f74 |
%description C-docs
|
|
|
6398229 |
This package contains doxygen documentation with instruction
|
|
|
6398229 |
on how to use the C target in ANTLR and complete API description of the
|
|
|
6398229 |
C run-time support for ANTLR-generated parsers.
|
|
|
6398229 |
|
|
Milos Jakubicek |
f8d51ab |
#%package python
|
|
Milos Jakubicek |
f8d51ab |
#Group: Development/Libraries
|
|
Milos Jakubicek |
f8d51ab |
#Summary: Python run-time support for ANTLR-generated parsers
|
|
Milos Jakubicek |
f8d51ab |
#BuildRequires: python-devel
|
|
Milos Jakubicek |
f8d51ab |
#BuildRequires: python-setuptools-devel
|
|
Milos Jakubicek |
f8d51ab |
#BuildArch: noarch
|
|
Milos Jakubicek |
f8d51ab |
#Version: %{python_runtime_version}
|
|
Milos Jakubicek |
f8d51ab |
#
|
|
Milos Jakubicek |
f8d51ab |
#%description python
|
|
Milos Jakubicek |
f8d51ab |
#Python run-time support for ANTLR-generated parsers
|
|
Bart Vanbrabant |
4eb01e7 |
|
|
|
01ce193 |
%prep
|
|
Stanislav Ochotnicky |
1daa565 |
%setup -q -n antlr-%{antlr_version} -a 1 -a 2 -a 3
|
|
|
6398229 |
%if %{with_bootstrap}
|
|
Stanislav Ochotnicky |
1daa565 |
cp %{SOURCE6} settings.xml
|
|
|
6398229 |
%endif
|
|
|
6398229 |
sed -i "s,\${buildNumber},`cat %{_sysconfdir}/fedora-release` `date`," tool/src/main/resources/org/antlr/antlr.properties
|
|
|
6398229 |
|
|
Stanislav Ochotnicky |
cd1a14c |
sed -i 's:<module>antlr3-maven-archetype</module>::' pom.xml
|
|
Stanislav Ochotnicky |
cd1a14c |
sed -i 's:<module>gunit</module>::' pom.xml
|
|
Stanislav Ochotnicky |
cd1a14c |
sed -i 's:<module>gunit-maven-plugin</module>::' pom.xml
|
|
Stanislav Ochotnicky |
cd1a14c |
|
|
Milos Jakubicek |
16513c4 |
# compile for target 1.6, see BZ#842572
|
|
Milos Jakubicek |
16513c4 |
sed -i 's/jsr14/1.6/' antlr3-maven-archetype/src/main/resources/archetype-resources/pom.xml \
|
|
Milos Jakubicek |
16513c4 |
antlr3-maven-plugin/pom.xml \
|
|
Milos Jakubicek |
16513c4 |
gunit/pom.xml \
|
|
Milos Jakubicek |
16513c4 |
gunit-maven-plugin/pom.xml \
|
|
Milos Jakubicek |
16513c4 |
pom.xml \
|
|
Milos Jakubicek |
16513c4 |
runtime/Java/pom.xml \
|
|
Milos Jakubicek |
16513c4 |
tool/pom.xml
|
|
Milos Jakubicek |
16513c4 |
|
|
|
6398229 |
# remove corrupted files:
|
|
|
6398229 |
rm antlr3-maven-plugin/src/main/java/org/antlr/mojo/antlr3/._*
|
|
|
6398229 |
rm gunit-maven-plugin/src/main/java/org/antlr/mojo/antlr3/._GUnitExecuteMojo.java
|
|
|
6398229 |
|
|
Stanislav Ochotnicky |
cd1a14c |
|
|
Stanislav Ochotnicky |
cd1a14c |
%build
|
|
Stanislav Ochotnicky |
cd1a14c |
|
|
|
315bbe7 |
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
|
|
315bbe7 |
mkdir -p $MAVEN_REPO_LOCAL
|
|
|
315bbe7 |
|
|
|
6398229 |
%if %{with_bootstrap}
|
|
|
6398229 |
# we need antlr3-maven-plugin in place
|
|
|
6398229 |
sed -i -e \
|
|
|
6398229 |
"s|<url>__JPP_URL_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" \
|
|
|
6398229 |
settings.xml
|
|
|
6398229 |
sed -i -e \
|
|
|
6398229 |
"s|<url>__JAVADIR_PLACEHOLDER__</url>|<url>file://`pwd`/external_repo</url>|g" \
|
|
|
6398229 |
settings.xml
|
|
|
6398229 |
sed -i -e \
|
|
|
6398229 |
"s|<url>__MAVENREPO_DIR_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" \
|
|
|
6398229 |
settings.xml
|
|
|
6398229 |
sed -i -e \
|
|
|
6398229 |
"s|<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/maven2/plugins</url>|g" \
|
|
|
6398229 |
settings.xml
|
|
|
6398229 |
|
|
|
6398229 |
mkdir -p $MAVEN_REPO_LOCAL/JPP/maven2/default_poms/
|
|
|
6398229 |
mkdir -p $MAVEN_REPO_LOCAL/org.antlr/
|
|
|
315bbe7 |
cp antlr3-maven-plugin/pom.xml $MAVEN_REPO_LOCAL/JPP/maven2/default_poms/JPP-antlr3-maven-plugin.pom
|
|
|
6398229 |
# install prebuilt antlr and antlr3-maven-plugin into repository
|
|
|
315bbe7 |
# Man, this is hackish. Hold your nose.
|
|
|
6398229 |
cp %{SOURCE7} $MAVEN_REPO_LOCAL/org.antlr/antlr.jar
|
|
|
4dac910 |
cp %{SOURCE8} $MAVEN_REPO_LOCAL/org.antlr/antlr3-maven-plugin.jar
|
|
|
6398229 |
%endif
|
|
|
6398229 |
|
|
|
6398229 |
# Build antlr
|
|
|
6398229 |
%if %{with_bootstrap}
|
|
Milos Jakubicek |
16513c4 |
mvn-rpmbuild -s $(pwd)/settings.xml -Dmaven.repo.local=$MAVEN_REPO_LOCAL -Dmaven.test.skip=true -Dmaven.compile.target=1.6 install
|
|
|
6398229 |
%else
|
|
Milos Jakubicek |
16513c4 |
mvn-rpmbuild -Dmaven.repo.local=$MAVEN_REPO_LOCAL -Dmaven.test.skip=true -Dmaven.compile.target=1.6 install
|
|
|
6398229 |
%endif
|
|
|
01ce193 |
|
|
|
315bbe7 |
# Build the plugin
|
|
|
315bbe7 |
pushd antlr3-maven-plugin
|
|
Milos Jakubicek |
16513c4 |
mvn-rpmbuild -Dmaven.repo.local=$MAVEN_REPO_LOCAL -Dmaven.compile.target=1.6 install javadoc:javadoc
|
|
|
315bbe7 |
popd
|
|
|
315bbe7 |
|
|
Milos Jakubicek |
f8d51ab |
## Build the python runtime
|
|
Milos Jakubicek |
f8d51ab |
#pushd antlr_python_runtime-%{python_runtime_version}
|
|
Milos Jakubicek |
f8d51ab |
#%{__python} setup.py build
|
|
Milos Jakubicek |
f8d51ab |
#popd
|
|
|
6398229 |
|
|
|
6398229 |
# Build the C runtime
|
|
Stanislav Ochotnicky |
cd1a14c |
pushd libantlr3c-%{antlr_version}-beta4
|
|
|
88942ce |
|
|
|
ee88cf1 |
%configure --disable-abiflags --enable-debuginfo \
|
|
|
ee88cf1 |
%ifarch x86_64 ppc64 s390x sparc64
|
|
|
ee88cf1 |
--enable-64bit
|
|
|
ee88cf1 |
%else
|
|
|
ee88cf1 |
%{nil}
|
|
|
88942ce |
%endif
|
|
|
88942ce |
|
|
|
6398229 |
sed -i "s/CFLAGS = .*/CFLAGS = $RPM_OPT_FLAGS/" Makefile
|
|
|
6398229 |
make %{?_smp_mflags}
|
|
|
6398229 |
doxygen -u # update doxygen configuration file
|
|
|
6398229 |
doxygen # build doxygen documentation
|
|
|
6398229 |
popd
|
|
Bart Vanbrabant |
4eb01e7 |
|
|
|
c71126d |
# inject OSGi manifests
|
|
|
c71126d |
mkdir -p META-INF
|
|
|
c71126d |
cp -p %{SOURCE9} META-INF/MANIFEST.MF
|
|
|
c71126d |
touch META-INF/MANIFEST.MF
|
|
|
c71126d |
zip -u runtime/Java/target/antlr-runtime-%{antlr_version}.jar META-INF/MANIFEST.MF
|
|
|
c71126d |
|
|
|
01ce193 |
%install
|
|
|
6398229 |
mkdir -p $RPM_BUILD_ROOT{%{_javadir},%{_mavenpomdir},%{_bindir},%{_datadir}/antlr,%{_mandir}}
|
|
|
6398229 |
|
|
|
6398229 |
# install maven POMs
|
|
|
8bf6501 |
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-antlr3-master.pom
|
|
Stanislav Ochotnicky |
cd1a14c |
%add_maven_depmap JPP-antlr3-master.pom
|
|
Stanislav Ochotnicky |
cd1a14c |
|
|
|
8bf6501 |
install -pm 644 runtime/Java/pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-antlr3-runtime.pom
|
|
Stanislav Ochotnicky |
e07c110 |
install -pm 644 tool/pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-antlr3.pom
|
|
|
6398229 |
install -pm 644 antlr3-maven-plugin/pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-antlr3-maven-plugin.pom
|
|
|
6398229 |
install -pm 644 gunit-maven-plugin/pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-maven-gunit-plugin.pom
|
|
|
6398229 |
|
|
|
6398229 |
# install jars
|
|
Stanislav Ochotnicky |
f46b4ae |
install -m 644 runtime/Java/target/antlr-runtime-*.jar \
|
|
Stanislav Ochotnicky |
cd1a14c |
$RPM_BUILD_ROOT%{_datadir}/java/antlr3-runtime.jar
|
|
Stanislav Ochotnicky |
cd1a14c |
%add_maven_depmap JPP-antlr3-runtime.pom antlr3-runtime.jar
|
|
Stanislav Ochotnicky |
cd1a14c |
|
|
Stanislav Ochotnicky |
f46b4ae |
install -m 644 tool/target/antlr-*.jar \
|
|
Stanislav Ochotnicky |
cd1a14c |
$RPM_BUILD_ROOT%{_datadir}/java/antlr3.jar
|
|
Stanislav Ochotnicky |
cd1a14c |
%add_maven_depmap JPP-antlr3.pom antlr3.jar
|
|
Stanislav Ochotnicky |
cd1a14c |
|
|
Stanislav Ochotnicky |
cd1a14c |
install -m 644 antlr3-maven-plugin/target/%{name}-maven-plugin-%{antlr_version}.jar \
|
|
Stanislav Ochotnicky |
cd1a14c |
$RPM_BUILD_ROOT%{_datadir}/java/%{name}-maven-plugin.jar
|
|
Stanislav Ochotnicky |
cd1a14c |
%add_maven_depmap JPP-%{name}-maven-plugin.pom %{name}-maven-plugin.jar
|
|
Stanislav Ochotnicky |
cd1a14c |
|
|
Stanislav Ochotnicky |
cd1a14c |
# We disable gunit because it currently fails to build, maybe after upgrade?
|
|
Stanislav Ochotnicky |
cd1a14c |
#install gunit/target/gunit-%{antlr_version}.jar \
|
|
Stanislav Ochotnicky |
cd1a14c |
# $RPM_BUILD_ROOT%{_datadir}/java/gunit.jar
|
|
Stanislav Ochotnicky |
cd1a14c |
|
|
Stanislav Ochotnicky |
cd1a14c |
#install -m 644 gunit-maven-plugin/target/maven-gunit-plugin-%{antlr_version}.jar \
|
|
Stanislav Ochotnicky |
cd1a14c |
# $RPM_BUILD_ROOT%{_datadir}/java/maven-gunit-plugin.jar
|
|
Stanislav Ochotnicky |
cd1a14c |
#%%add_maven_depmap JPP-maven-gunit-plugin.pom maven-gunit.plugin.jar
|
|
Stanislav Ochotnicky |
cd1a14c |
|
|
|
6398229 |
|
|
|
6398229 |
# install wrapper script
|
|
|
6398229 |
install -m 755 %{SOURCE5} $RPM_BUILD_ROOT%{_bindir}/antlr3
|
|
Bart Vanbrabant |
4eb01e7 |
|
|
Milos Jakubicek |
f8d51ab |
## install python runtime
|
|
Milos Jakubicek |
f8d51ab |
#pushd antlr_python_runtime-%{python_runtime_version}
|
|
Milos Jakubicek |
f8d51ab |
#%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
Milos Jakubicek |
f8d51ab |
#chmod a+x $RPM_BUILD_ROOT%{python_sitelib}/antlr_python_runtime-*
|
|
Milos Jakubicek |
f8d51ab |
#popd
|
|
|
6398229 |
|
|
|
6398229 |
# install C runtime
|
|
Stanislav Ochotnicky |
cd1a14c |
pushd libantlr3c-%{antlr_version}-beta4
|
|
|
6398229 |
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
6398229 |
rm $RPM_BUILD_ROOT%{_libdir}/libantlr3c.{a,la}
|
|
|
741cae4 |
pushd api/man/man3
|
|
|
741cae4 |
for file in `ls -1 * | grep -vi "^antlr3"`; do
|
|
Stanislav Ochotnicky |
b099f74 |
mv $file antlr3-$file
|
|
|
741cae4 |
done
|
|
Milos Jakubicek |
cf7f97c |
sed -i -e 's,^\.so man3/pANTLR3,.so man3/antlr3-pANTLR3,' `grep -rl 'man3/pANTLR3' .`
|
|
|
741cae4 |
gzip *
|
|
|
741cae4 |
popd
|
|
|
6398229 |
mv api/man/man3 $RPM_BUILD_ROOT%{_mandir}/
|
|
|
6398229 |
rmdir api/man
|
|
|
6398229 |
popd
|
|
|
6398229 |
|
|
|
6398229 |
# install javascript runtime
|
|
|
6398229 |
pushd antlr-javascript-runtime-%{javascript_runtime_version}
|
|
|
6398229 |
install -pm 644 *.js $RPM_BUILD_ROOT%{_datadir}/antlr/
|
|
|
6398229 |
popd
|
|
|
6398229 |
|
|
|
6398229 |
%post C -p /sbin/ldconfig
|
|
|
6398229 |
|
|
|
6398229 |
%postun C -p /sbin/ldconfig
|
|
|
01ce193 |
|
|
|
6398229 |
%files tool
|
|
|
6398229 |
%doc tool/{README.txt,LICENSE.txt,CHANGES.txt}
|
|
|
741cae4 |
%{_javadir}/antlr3.jar
|
|
|
741cae4 |
%{_javadir}/antlr3-maven*.jar
|
|
|
985290b |
%{_bindir}/antlr3
|
|
|
01ce193 |
|
|
Milos Jakubicek |
f8d51ab |
#%files python
|
|
Milos Jakubicek |
f8d51ab |
#%doc tool/LICENSE.txt
|
|
Milos Jakubicek |
f8d51ab |
#%{python_sitelib}/antlr3/*
|
|
Milos Jakubicek |
f8d51ab |
#%{python_sitelib}/antlr_python_runtime-*
|
|
Bart Vanbrabant |
4eb01e7 |
|
|
|
6398229 |
%files C
|
|
Stanislav Ochotnicky |
cd1a14c |
%doc tool/LICENSE.txt
|
|
|
741cae4 |
%{_libdir}/libantlr3c.so
|
|
|
741cae4 |
|
|
|
741cae4 |
%files C-devel
|
|
|
6398229 |
%{_includedir}/antlr3*
|
|
|
6398229 |
%{_mandir}/man3/*
|
|
|
6398229 |
|
|
|
6398229 |
%files C-docs
|
|
Stanislav Ochotnicky |
cd1a14c |
%doc libantlr3c-%{antlr_version}-beta4/api/
|
|
|
6398229 |
|
|
|
6398229 |
%files java
|
|
Stanislav Ochotnicky |
cd1a14c |
%doc tool/LICENSE.txt
|
|
|
741cae4 |
%{_javadir}/*runtime*.jar
|
|
Stanislav Ochotnicky |
e07c110 |
%{_mavenpomdir}/*.pom
|
|
|
8bf6501 |
%config %{_mavendepmapfragdir}/antlr3
|
|
|
6398229 |
|
|
|
6398229 |
%files javascript
|
|
Stanislav Ochotnicky |
cd1a14c |
%doc tool/LICENSE.txt
|
|
|
6398229 |
%{_datadir}/antlr/
|
|
|
6398229 |
|
|
|
01ce193 |
%changelog
|
|
Milos Jakubicek |
cf7f97c |
* Sun Sep 09 2012 Miloš Jakubíček <xjakub@fi.muni.cz> - 3.4-12
|
|
Milos Jakubicek |
cf7f97c |
- Fix wrong man page references (see BZ#855619)
|
|
Milos Jakubicek |
cf7f97c |
|
|
Milos Jakubicek |
16513c4 |
* Tue Aug 21 2012 Miloš Jakubíček <xjakub@fi.muni.cz> - 3.4-11
|
|
Milos Jakubicek |
16513c4 |
- Now really compile for Java 1.6 everything
|
|
Milos Jakubicek |
16513c4 |
|
|
Milos Jakubicek |
16513c4 |
*Sat Aug 18 2012 Miloš Jakubíček <xjakub@fi.muni.cz> - 3.4-10
|
|
Milos Jakubicek |
64b103e |
- Explicitly compile for Java 1.5, to (maybe?) fix BZ#842572
|
|
Milos Jakubicek |
64b103e |
|
|
|
c71126d |
* Mon Aug 6 2012 Alexander Kurtakov <akurtako@redhat.com> 3.4-9
|
|
|
c71126d |
- Inject org.antlr.runtime OSGi metadata.
|
|
|
c71126d |
- Update BRs to newer versions.
|
|
|
c71126d |
|
|
Stanislav Ochotnicky |
d36f212 |
* Tue Jul 24 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.4-8
|
|
Stanislav Ochotnicky |
d36f212 |
- Add back requires on stringtemplate for java subpackage
|
|
Stanislav Ochotnicky |
d36f212 |
|
|
|
eb07310 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-7
|
|
|
eb07310 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
eb07310 |
|
|
Milos Jakubicek |
8f52576 |
* Tue Jun 26 2012 Miloš Jakubíček <xjakub@fi.muni.cz> - 3.4-6
|
|
Milos Jakubicek |
8f52576 |
- Fixed missing stringtemplate4 in antlr3 generator classpath
|
|
Milos Jakubicek |
8f52576 |
- Cleanup of Requires and BuildRequires on antlr2
|
|
Milos Jakubicek |
8f52576 |
|
|
Milos Jakubicek |
f8d51ab |
* Thu Feb 23 2012 Miloš Jakubíček <xjakub@fi.muni.cz> - 3.4-5
|
|
Milos Jakubicek |
f8d51ab |
- Disable python runtime (incompatible with current antlr version)
|
|
Milos Jakubicek |
f8d51ab |
|
|
Milos Jakubicek |
531d289 |
* Wed Feb 22 2012 Miloš Jakubíček <xjakub@fi.muni.cz> - 3.4-4
|
|
Milos Jakubicek |
531d289 |
- Fix permissions for egg-info dir (fixes BZ#790499)
|
|
Milos Jakubicek |
531d289 |
|
|
Stanislav Ochotnicky |
f46b4ae |
* Thu Feb 16 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.4-3
|
|
Stanislav Ochotnicky |
f46b4ae |
- Use wildcards for installing jars (different results on different releases)
|
|
Stanislav Ochotnicky |
f46b4ae |
|
|
Stanislav Ochotnicky |
b099f74 |
* Thu Feb 16 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.4-2
|
|
Stanislav Ochotnicky |
b099f74 |
- Add builnumber plugin to buildrequires
|
|
Stanislav Ochotnicky |
b099f74 |
- Tab/space cleanup
|
|
Stanislav Ochotnicky |
b099f74 |
|
|
Stanislav Ochotnicky |
cd1a14c |
* Mon Jan 23 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.4-1
|
|
Stanislav Ochotnicky |
cd1a14c |
- Update antlr version to 3.4
|
|
Stanislav Ochotnicky |
cd1a14c |
- Move to maven3 build, update macros etc
|
|
Stanislav Ochotnicky |
cd1a14c |
- Remove gunit for now
|
|
Stanislav Ochotnicky |
cd1a14c |
|
|
|
c794141 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-16
|
|
|
c794141 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
c794141 |
|
|
|
ee88cf1 |
* Fri Sep 09 2011 Dan Horák <dan[at]danny.cz> - 3.2-15
|
|
|
ee88cf1 |
- fix build on other arches
|
|
|
ee88cf1 |
|
|
|
f334347 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-14
|
|
|
f334347 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
f334347 |
|
|
Stanislav Ochotnicky |
1daa565 |
* Tue Dec 14 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2-13
|
|
Stanislav Ochotnicky |
1daa565 |
- Add stringtemplate to Requires of java subpackage
|
|
Stanislav Ochotnicky |
1daa565 |
- Use tomcat6 for building
|
|
Stanislav Ochotnicky |
1daa565 |
- Use felix-parent and cleanup BRs on maven plugins
|
|
Stanislav Ochotnicky |
1daa565 |
|
|
Stanislav Ochotnicky |
e07c110 |
* Thu Nov 25 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.2-12
|
|
Stanislav Ochotnicky |
e07c110 |
- Move all pom files into java subpackage
|
|
Stanislav Ochotnicky |
e07c110 |
- Fix pom filenames (Resolves rhbz#655831)
|
|
Stanislav Ochotnicky |
e07c110 |
- Add java subpackage Requires for gunit subpackage
|
|
Stanislav Ochotnicky |
e07c110 |
|
|
|
96e3464 |
* Wed Oct 13 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 3.2-11
|
|
|
96e3464 |
- non-bootstrap build
|
|
|
96e3464 |
|
|
|
315bbe7 |
* Wed Oct 13 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 3.2-10
|
|
|
315bbe7 |
- fix pom patch
|
|
|
315bbe7 |
- fix bootstrapping
|
|
|
315bbe7 |
- fix dependencies
|
|
|
315bbe7 |
|
|
|
aabbe8d |
* Wed Aug 11 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-9
|
|
|
aabbe8d |
- recompiling .py files against Python 2.7 (rhbz#623269)
|
|
|
aabbe8d |
|
|
|
f8c878e |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-8
|
|
|
f8c878e |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
f8c878e |
|
|
|
8bf6501 |
* Thu Jun 17 2010 Lubomir Rintel <lkundrak@v3.sk> - 3.2-7
|
|
|
8bf6501 |
- Add master and runtime poms (#605267)
|
|
|
8bf6501 |
|
|
|
32c82cb |
* Sat May 01 2010 Miloš Jakubíček <xjakub@fi.muni.cz> - 3.2-6
|
|
|
32c82cb |
- Patch the Python runtime to print just a warning in case of version mismatch
|
|
|
32c82cb |
instead of raising an exception (since there is a good change it will work).
|
|
|
32c82cb |
|
|
|
88942ce |
* Thu Apr 22 2010 Miloš Jakubíček <xjakub@fi.muni.cz> - 3.2-5
|
|
|
88942ce |
- Build the C runtime with --enable-64bit on x86_64 to avoid undeterministic
|
|
Stanislav Ochotnicky |
1daa565 |
segfaults caused by possible invalid conversion of 64bit pointers to int32_t
|
|
|
88942ce |
|
|
|
741cae4 |
* Mon Mar 08 2010 Miloš Jakubíček <xjakub@fi.muni.cz> - 3.2-4
|
|
|
741cae4 |
- Patch Java runtime build to include OSGi meta-information in the manifest
|
|
|
741cae4 |
(thanks to Mat Booth)
|
|
|
741cae4 |
- Add "antlr3" prefix to all man pages to prevent namespace conflicts with
|
|
|
741cae4 |
standard man pages included in the man-pages package
|
|
|
741cae4 |
- Split headers and man pages into a C-devel subpackage
|
|
|
741cae4 |
- Fix multiple file ownership of Java runtime and gunit by the tool package
|
|
|
741cae4 |
|
|
|
9ee1c78 |
* Tue Mar 02 2010 Miloš Jakubíček <xjakub@fi.muni.cz> - 3.2-3
|
|
|
9ee1c78 |
- Rebuilt in non-bootstrap mode.
|
|
|
9ee1c78 |
|
|
|
6398229 |
* Sun Jan 31 2010 Milos Jakubicek <xjakub@fi.muni.cz> - 3.2-2
|
|
|
6398229 |
- Build the doxygen documentation for the C target in a C-docs subpackage
|
|
|
6398229 |
- BuildRequires/Requires cleanup across subpackages
|
|
|
6398229 |
|
|
|
6398229 |
* Sat Jan 30 2010 Milos Jakubicek <xjakub@fi.muni.cz> - 3.2-1
|
|
|
6398229 |
- Update to 3.2, bootstrap build.
|
|
|
6398229 |
- Build bindings for C and JavaScript as well as gunit and maven plugin.
|
|
|
6398229 |
|
|
|
d885926 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-8
|
|
|
d885926 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
d885926 |
|
|
Bart Vanbrabant |
296830e |
* Mon Mar 17 2009 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> - 3.1.1-7
|
|
Bart Vanbrabant |
296830e |
- Fix the name of the jar to antlr.jar
|
|
Bart Vanbrabant |
296830e |
|
|
|
592ee42 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-6
|
|
|
592ee42 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
592ee42 |
|
|
|
c9d7e39 |
* Mon Jan 12 2009 Colin Walters <walters@redhat.com> - 3.1.1-5
|
|
|
c9d7e39 |
- Add bcel to build path
|
|
|
c9d7e39 |
|
|
|
d9064a6 |
* Mon Jan 12 2009 Colin Walters <walters@redhat.com> - 3.1.1-4
|
|
|
d9064a6 |
- Add bcel build dep to version jar name
|
|
|
d9064a6 |
|
|
|
985290b |
* Mon Nov 10 2008 Colin Walters <walters@redhat.com> - 3.1.1-3
|
|
|
985290b |
- Add antlr3 script
|
|
|
985290b |
|
|
Bart Vanbrabant |
e125125 |
* Mon Nov 6 2008 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> - 3.1.1-2
|
|
Bart Vanbrabant |
e125125 |
- Fix the install of the jar (remove the version)
|
|
Bart Vanbrabant |
e125125 |
|
|
Bart Vanbrabant |
4eb01e7 |
* Mon Nov 3 2008 Bart Vanbrabant <bart.vanbrabant@zoeloelip.be> - 3.1.1-1
|
|
Bart Vanbrabant |
4eb01e7 |
- Update to version 3.1.1
|
|
Bart Vanbrabant |
4eb01e7 |
- Add python runtime subpackage
|
|
Bart Vanbrabant |
4eb01e7 |
|
|
|
01ce193 |
* Fri Jun 27 2008 Colin Walters <walters@redhat.com> - 3.0.1-2
|
|
|
01ce193 |
- Fix some BRs
|
|
|
01ce193 |
|
|
|
01ce193 |
* Sun Apr 06 2008 Colin Walters <walters@redhat.com> - 3.0.1-1
|
|
|
01ce193 |
- First version
|