File gjdoc.spec of Package gjdoc
#
# spec file for package gjdoc (Version 0.7.9)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gjdoc
BuildRequires: antlr-bootstrap ecj-bootstrap fastjar gcc-gij gcc-java libgcj-devel unzip
License: GPL v2 or later
Group: Development/Libraries/Java
AutoReqProv: on
Version: 0.7.9
Release: 1
Summary: Javadoc replacement from classpath
Url: http://www.gnu.org/software/classpath/
Source: ftp://ftp.gnu.org/pub/gnu/classpath/%{name}-%{version}.tar.bz2
Patch0: gjdoc-0.7.8-gjdoc.sh.in.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: antlr
%description
JavaDoc replacement from the classpath project.
Authors:
--------
Alex Lancaster
Andrew John Hughes
Andrew Overholt
Arnaud Vandyck
Casey Marshall
Christopher Oezbek
Dalibor Topic
Jerry Haltom
Julian Scheid
Kalle Olavi Niemitalo
Mark Howard
Mark Wielaard
Michael Koch
Ross Burton
Shayne Steele
Ville Skytta
%prep
%setup -q
%patch -p1
cat %{_bindir}/ecj
%build
LIB_GCJ="`ls %{_javadir}/libgcj-*.jar`"
ECJ_JAR=%{_javadir}/jdtcore.jar
#>>> gjdoc (javadoc replacement)
export JAVAC=%{_bindir}/ecj
%configure --with-antlr-jar=%{_javadir}/antlr.jar CLASSPATH=$LIB_GCJ --disable-native
make
#<<< end gjdoc
%install
%makeinstall
# delete RPM_BUILD_ROOT from script
sed -i -e s#"$RPM_BUILD_ROOT"#""#g $RPM_BUILD_ROOT/usr/bin/gjdoc
mkdir -p $RPM_BUILD_ROOT/usr/share
mv $RPM_BUILD_ROOT/usr/info $RPM_BUILD_ROOT/usr/share | :
rm -f $RPM_BUILD_ROOT/usr/share/info/dir | :
mv $RPM_BUILD_ROOT/usr/man $RPM_BUILD_ROOT/usr/share | :
%clean
rm -rf $RPM_BUILD_ROOT
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files
%defattr(-,root,root)
/usr/bin/gjdoc
/usr/share/man/man1/gjdoc.1.gz
/usr/share/info/gjdoc.info.gz
#%dir /usr/share/info
#%dir /usr/share/man
#%dir /usr/share/man/man1
#%dir %{_javadir}
%{_javadir}/com-sun-tools-doclets-Taglet-%{version}.jar
%{_javadir}/gnu-classpath-tools-gjdoc-%{version}.jar
%{_javadir}/com-sun-javadoc-%{version}.jar
%changelog
* Thu Oct 09 2008 mvyskocil@suse.cz
- updated to 0.7.9:
* Add com.sun.tools.javadoc.Main to emulate javadoc.
* GJDoc can handle the enumerations in java.util.concurrent.TimeUnit
(by ignoring them)
- added an URL to ftp in Source:
- quiet setup
- added a install_info calls to post/un
* Fri May 04 2007 dbornkessel@suse.de
- added unzip to BuildRequires
* Tue Apr 24 2007 dbornkessel@suse.de
- update to 0.7.8:
* GJDoc can now successfully run against the new 1.5-based
version of GNU Classpath, including generics, annotations and
enumerations.
* Includes gjdoc/25876: Basic annotation support for gjdoc
contributed by Stephan Michels
* Mon Oct 30 2006 dbornkessel@suse.de
- added missing Requires: antlr (Bug #215756)
- adjusted startup script (connected to #215756)
* Thu Sep 28 2006 ro@suse.de
- added gcc-gij to BuildRequires
* Mon Sep 18 2006 dbornkessel@suse.de
- first version