SHA256
1
0
forked from pool/antlr

- Drop the javadoc so we can be build with java bootstrapping reducing

the cycle/failures

OBS-URL: https://build.opensuse.org/package/show/Java:packages/antlr?expand=0&rev=31
This commit is contained in:
Tomáš Chvátal 2017-06-09 09:42:14 +00:00 committed by Git OBS Bridge
parent e386f5f62f
commit 93341fa3f1
2 changed files with 9 additions and 23 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jun 9 09:43:34 UTC 2017 - tchvatal@suse.com
- Drop the javadoc so we can be build with java bootstrapping reducing
the cycle/failures
-------------------------------------------------------------------
Fri May 19 13:28:56 UTC 2017 - tchvatal@suse.com

View File

@ -16,7 +16,6 @@
#
%define section free
Name: antlr
Version: 2.7.7
Release: 0
@ -41,6 +40,7 @@ BuildRequires: xml-commons-apis
Requires: %{name}-java
Provides: %{name}-bootstrap = %{version}
Obsoletes: %{name}-bootstrap < %{version}
Obsoletes: %{name}-javadoc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -76,19 +76,6 @@ or Java actions (you can use PCCTS 1.xx to generate C-based parsers).
This package provides the manual and examples for antlr.
%package javadoc
Summary: ANother Tool for Language Recognition (Java Documentation)
Group: Development/Tools/Other
BuildArch: noarch
%description javadoc
ANTLR, Another Tool for Language Recognition, (formerly PCCTS) is a
language tool that provides a framework for constructing recognizers,
compilers, and translators from grammatical descriptions containing C++
or Java actions (you can use PCCTS 1.xx to generate C-based parsers).
This package provides the Javadoc for antlr.
%package devel
Summary: ANother Tool for Language Recognition (c++ runtime)
Group: Development/Tools/Other
@ -132,7 +119,8 @@ find | grep "\(ShowString.java$\|StreamConverter.java$\)" && exit 42
%build
ant \
-Dj2se.apidoc=%{_javadocdir}/java \
-Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5
-Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 \
jar
%configure
make -j1
%py_compile lib/python/antlr
@ -151,10 +139,6 @@ install -d -m 0755 %{buildroot}%{_bindir}/
install -m 0755 %{SOURCE2} %{buildroot}%{_bindir}/%{name}
install -m 0755 scripts/%{name}-config %{buildroot}%{_bindir}/
### javadoc ###
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
cp -ar work/api/* %{buildroot}%{_javadocdir}/%{name}
### python runtime ###
install -d -m 0755 %{buildroot}%{py_sitedir}/%{name}
cp -a lib/python/antlr/* %{buildroot}%{py_sitedir}/%{name}
@ -189,10 +173,6 @@ find examples -type f | xargs chmod 0644
%defattr(0644,root,root,0755)
%doc doc examples
%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}
%files devel
%defattr(0644,root,root,0755)
%attr(755,root,root) %{_libdir}/libantlr.a