Compare commits
No commits in common. "c8-stream-201902" and "stream-javapackages-tools-201801-rhel-8.9.0" have entirely different histories.
c8-stream-
...
stream-jav
|
@ -1 +1,2 @@
|
||||||
3bec329f1c7c9a3d2af1e2389f2e0ed479798a06 SOURCES/antlr-2.7.7.tar.gz
|
3bec329f1c7c9a3d2af1e2389f2e0ed479798a06 antlr-2.7.7.tar.gz
|
||||||
|
52f15b99911ab8b8bc8744675f5cf1994a626fb8 antlr-2.7.7.pom
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
SOURCES/antlr-2.7.7.tar.gz
|
antlr-2.7.7.tar.gz
|
||||||
|
/antlr-2.7.7.pom
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
<project>
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>antlr</groupId>
|
|
||||||
<artifactId>antlr</artifactId>
|
|
||||||
<packaging>jar</packaging>
|
|
||||||
<version>2.7.7</version>
|
|
||||||
<name>AntLR Parser Generator</name>
|
|
||||||
<description>
|
|
||||||
A framework for constructing recognizers, compilers,
|
|
||||||
and translators from grammatical descriptions containing
|
|
||||||
Java, C#, C++, or Python actions.
|
|
||||||
</description>
|
|
||||||
<url>http://www.antlr.org/</url>
|
|
||||||
<licenses>
|
|
||||||
<license>
|
|
||||||
<name>BSD License</name>
|
|
||||||
<url>http://www.antlr.org/license.html</url>
|
|
||||||
<distribution>repo</distribution>
|
|
||||||
</license>
|
|
||||||
</licenses>
|
|
||||||
<dependencies/>
|
|
||||||
</project>
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
%bcond_without doxygen
|
||||||
|
%bcond_without python
|
||||||
|
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
# since we have only a static library
|
# since we have only a static library
|
||||||
|
@ -5,7 +7,8 @@
|
||||||
Summary: ANother Tool for Language Recognition
|
Summary: ANother Tool for Language Recognition
|
||||||
Name: antlr
|
Name: antlr
|
||||||
Version: 2.7.7
|
Version: 2.7.7
|
||||||
Release: 58%{?dist}
|
Release: 56%{?dist}
|
||||||
|
Epoch: 0
|
||||||
License: ANTLR-PD
|
License: ANTLR-PD
|
||||||
URL: http://www.antlr2.org/
|
URL: http://www.antlr2.org/
|
||||||
# ./generate-tarball.sh
|
# ./generate-tarball.sh
|
||||||
|
@ -19,11 +22,26 @@ Patch1: %{name}-%{version}-newgcc.patch
|
||||||
# see BZ#848662
|
# see BZ#848662
|
||||||
Patch2: antlr-examples-license.patch
|
Patch2: antlr-examples-license.patch
|
||||||
|
|
||||||
|
%ifarch %{mono_arches}
|
||||||
|
%if ! 0%{?rhel} >= 6
|
||||||
|
BuildRequires: mono-core
|
||||||
|
BuildRequires: mono-winforms
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: java-devel >= 1:1.7.0
|
BuildRequires: java-devel >= 1:1.7.0
|
||||||
|
BuildRequires: java-javadoc
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
|
%if %{with doxygen}
|
||||||
|
BuildRequires: doxygen graphviz
|
||||||
|
%endif
|
||||||
|
%if %{with python}
|
||||||
|
# Do not support Python3
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
BuildRequires: python2-setuptools
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a
|
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a
|
||||||
|
@ -68,7 +86,30 @@ Provides: antlr-static = %{version}-%{release}
|
||||||
%description C++
|
%description C++
|
||||||
This package provides a static C++ library for parsers generated by ANTLR2.
|
This package provides a static C++ library for parsers generated by ANTLR2.
|
||||||
|
|
||||||
|
%if %{with doxygen}
|
||||||
|
%package C++-doc
|
||||||
|
Summary: Documentation for C++ bindings for antlr2 generated parsers
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description C++-doc
|
||||||
|
This package contains the documentation for the C++ bindings for parsers
|
||||||
|
generated by ANTLR2.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with python}
|
||||||
|
%package -n python2-%{name}
|
||||||
|
Summary: Python 2 runtime support for ANTLR-generated parsers
|
||||||
|
%{?python_provide:%python_provide python2-%{name}}
|
||||||
|
|
||||||
|
# This can be removed in Fedora 30
|
||||||
|
Provides: %{name}-python = %{version}-%{release}
|
||||||
|
Obsoletes: %{name}-python < 2.7.7-48
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description -n python2-%{name}
|
||||||
|
Python runtime support for ANTLR-generated parsers
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
@ -97,7 +138,20 @@ rm antlr.jar
|
||||||
rm doc/{Makefile,Makefile.in}
|
rm doc/{Makefile,Makefile.in}
|
||||||
chmod 0644 doc/*
|
chmod 0644 doc/*
|
||||||
|
|
||||||
|
%if %{with doxygen}
|
||||||
|
# generate doxygen docs for C++ bindings
|
||||||
|
pushd lib/cpp
|
||||||
|
doxygen doxygen.cfg
|
||||||
|
find gen_doc -type f -exec chmod 0644 {} \;
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with python}
|
||||||
|
# build python
|
||||||
|
cd lib/python
|
||||||
|
%py2_build
|
||||||
|
cd ../../
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# jars, POM and depmap
|
# jars, POM and depmap
|
||||||
|
@ -114,6 +168,12 @@ install -p -m 644 lib/cpp/antlr/*.hpp $RPM_BUILD_ROOT%{_includedir}/%{name}
|
||||||
install -p -m 644 lib/cpp/src/libantlr.a $RPM_BUILD_ROOT%{_libdir}
|
install -p -m 644 lib/cpp/src/libantlr.a $RPM_BUILD_ROOT%{_libdir}
|
||||||
install -p -m 755 scripts/antlr-config $RPM_BUILD_ROOT%{_bindir}
|
install -p -m 755 scripts/antlr-config $RPM_BUILD_ROOT%{_bindir}
|
||||||
|
|
||||||
|
%if %{with python}
|
||||||
|
# python
|
||||||
|
cd lib/python
|
||||||
|
%py2_install
|
||||||
|
cd ../..
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files tool -f .mfiles
|
%files tool -f .mfiles
|
||||||
|
@ -129,6 +189,11 @@ install -p -m 755 scripts/antlr-config $RPM_BUILD_ROOT%{_bindir}
|
||||||
%{_libdir}/libantlr.a
|
%{_libdir}/libantlr.a
|
||||||
%{_bindir}/antlr-config
|
%{_bindir}/antlr-config
|
||||||
|
|
||||||
|
%if %{with doxygen}
|
||||||
|
%files C++-doc
|
||||||
|
%license LICENSE.txt
|
||||||
|
%doc lib/cpp/gen_doc/html/
|
||||||
|
%endif
|
||||||
|
|
||||||
%files manual
|
%files manual
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
@ -137,14 +202,14 @@ install -p -m 755 scripts/antlr-config $RPM_BUILD_ROOT%{_bindir}
|
||||||
%files javadoc -f .mfiles-javadoc
|
%files javadoc -f .mfiles-javadoc
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
|
||||||
|
%if %{with python}
|
||||||
|
%files -n python2-%{name}
|
||||||
|
%license LICENSE.txt
|
||||||
|
%{python2_sitelib}/antlr/*
|
||||||
|
%{python2_sitelib}/antlr-*
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.7.7-58
|
|
||||||
- Mass rebuild for javapackages-tools 201902
|
|
||||||
|
|
||||||
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.7.7-57
|
|
||||||
- Mass rebuild for javapackages-tools 201901
|
|
||||||
|
|
||||||
* Mon Jul 30 2018 Severin Gehwolf <sgehwolf@redhat.com> - 0:2.7.7-56
|
* Mon Jul 30 2018 Severin Gehwolf <sgehwolf@redhat.com> - 0:2.7.7-56
|
||||||
- Add explicit requirement of javapackages-tools.
|
- Add explicit requirement of javapackages-tools.
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
SHA512 (antlr-2.7.7.tar.gz) = 7e05d440513663dab1960974ac61694552583bdd20d6eac2bff27f5142b118a26022d910b44312cdac9164b087c7cd4d1c8325e1ec914f9704b3cdd5f4b2b166
|
||||||
|
SHA512 (antlr-2.7.7.pom) = 4a34de18bee216852f43efddcd3bced1708548ebff7372b4ec4ecb6c289b36190b4d0d5588b86f9b65b3bc64756290b66bf1d6d9ed49d0cb8b972921829cba9e
|
Loading…
Reference in New Issue