- don't build javadoc

OBS-URL: https://build.opensuse.org/package/show/Java:packages/jflex?expand=0&rev=8
This commit is contained in:
Michal Vyskocil 2013-08-23 09:06:46 +00:00 committed by Git OBS Bridge
parent 45e4466aa0
commit 14af265a4f
3 changed files with 13 additions and 53 deletions

View File

@ -1,7 +1,7 @@
# #
# spec file for package jflex-bootstrap # spec file for package jflex-bootstrap
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -31,7 +31,7 @@ Name: jflex-bootstrap
# This line is not a comment, please do not remove it! # This line is not a comment, please do not remove it!
#%(sh %{_sourcedir}/jpackage-bootstrap-prepare.sh %{_sourcedir} %{name}) #%(sh %{_sourcedir}/jpackage-bootstrap-prepare.sh %{_sourcedir} %{name})
Version: 1.4.3 Version: 1.4.3
Release: 10 Release: 0
Summary: Lexical Analyzer Generator for Java Summary: Lexical Analyzer Generator for Java
License: GPL-2.0+ License: GPL-2.0+
Group: Development/Libraries/Java Group: Development/Libraries/Java
@ -73,9 +73,8 @@ Design goals The main design goals of JFlex are:
%if %without bootstrap %if %without bootstrap
%package javadoc %package javadoc
License: GPL-2.0+
Group: Development/Libraries/Java
Summary: Javadoc for %{name} Summary: Javadoc for %{name}
Group: Development/Libraries/Java
%description javadoc %description javadoc
JFlex is a lexical analyzer generator for Java written in Java. It is JFlex is a lexical analyzer generator for Java written in Java. It is
@ -95,9 +94,8 @@ Design goals The main design goals of JFlex are:
This package contains javadoc for %{name}. This package contains javadoc for %{name}.
%package doc %package doc
License: GPL-2.0+
Group: Development/Libraries/Java
Summary: Documentation and examples for %{name} Summary: Documentation and examples for %{name}
Group: Development/Libraries/Java
%description doc %description doc
JFlex is a lexical analyzer generator for Java written in Java. It is JFlex is a lexical analyzer generator for Java written in Java. It is

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Aug 23 09:06:21 UTC 2013 - mvyskocil@suse.com
- don't build javadoc
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 17 00:59:58 CET 2011 - mvyskocil@suse.cz Thu Feb 17 00:59:58 CET 2011 - mvyskocil@suse.cz

View File

@ -1,7 +1,7 @@
# #
# spec file for package jflex # spec file for package jflex
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -30,7 +30,7 @@ Name: jflex
# This line is not a comment, please do not remove it! # This line is not a comment, please do not remove it!
#%(sh %{_sourcedir}/jpackage-bootstrap-prepare.sh %{_sourcedir} %{name}) #%(sh %{_sourcedir}/jpackage-bootstrap-prepare.sh %{_sourcedir} %{name})
Version: 1.4.3 Version: 1.4.3
Release: 13 Release: 0
Summary: Lexical Analyzer Generator for Java Summary: Lexical Analyzer Generator for Java
License: GPL-2.0+ License: GPL-2.0+
Group: Development/Libraries/Java Group: Development/Libraries/Java
@ -45,8 +45,8 @@ Patch4: jflex-byaccj-utl.patch
Requires: java_cup Requires: java_cup
Requires: jpackage-utils Requires: jpackage-utils
BuildRequires: ant BuildRequires: ant
BuildRequires: java-cup-bootstrap
BuildRequires: antlr-bootstrap BuildRequires: antlr-bootstrap
BuildRequires: java-cup-bootstrap
%if %without bootstrap %if %without bootstrap
BuildRequires: jflex-bootstrap BuildRequires: jflex-bootstrap
%endif %endif
@ -72,32 +72,9 @@ Design goals The main design goals of JFlex are:
%if %without bootstrap %if %without bootstrap
%package javadoc
License: GPL-2.0+
Group: Development/Libraries/Java
Summary: Javadoc for %{name}
%description javadoc
JFlex is a lexical analyzer generator for Java written in Java. It is
also a rewrite of the very useful tool JLex which was developed by
Elliot Berk at Princeton University. As Vern Paxson states for his C/C++
tool flex: they do not share any code though.
Design goals The main design goals of JFlex are:
* Full unicode support
* Fast generated scanners
* Fast scanner generation
* Convenient specification syntax
* Platform independence
* JLex compatibility
This package contains javadoc for %{name}.
%package doc %package doc
License: GPL-2.0+
Group: Development/Libraries/Java
Summary: Documentation and examples for %{name} Summary: Documentation and examples for %{name}
Group: Development/Libraries/Java
%description doc %description doc
JFlex is a lexical analyzer generator for Java written in Java. It is JFlex is a lexical analyzer generator for Java written in Java. It is
@ -149,10 +126,6 @@ export CLASSPATH=$(build-classpath java-cup java-cup-runtime junit antlr-bootstr
%endif %endif
export OPT_JAR_LIST=: export OPT_JAR_LIST=:
%ant jar %ant jar
%if %without bootstrap
%{__mkdir_p} ../dist/docs/api
%{javadoc} -d ../dist/docs/api `find . -type f -name "*.java"`
%endif
popd popd
%install %install
@ -164,20 +137,9 @@ popd
# compatibility symlink # compatibility symlink
(cd %{buildroot}%{_javadir} && %{__ln_s} jflex.jar JFlex.jar) (cd %{buildroot}%{_javadir} && %{__ln_s} jflex.jar JFlex.jar)
%if %without bootstrap
# javadoc
%{__mkdir_p} 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
%{__cp} -a dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}
%{__ln_s} %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
%endif
%{__mkdir_p} %{buildroot}%{_bindir} %{__mkdir_p} %{buildroot}%{_bindir}
%{__install} -p -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/jflex %{__install} -p -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/jflex
%clean
%{__rm} -rf %{buildroot}
%{__rm} -rf %{_builddir}/jflex
%files %files
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%doc COPYRIGHT src/README src/changelog %doc COPYRIGHT src/README src/changelog
@ -188,11 +150,6 @@ popd
%if %without bootstrap %if %without bootstrap
%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}
%files doc %files doc
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%doc examples doc %doc examples doc