File gjdoc.spec of Package gjdoc
#
# spec file for package gjdoc (Version 0.7.9)
#
# Copyright (c) 2010 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-2.0+
Group: Development/Libraries/Java
AutoReqProv: on
Version: 0.7.9
Release: 10
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
%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
%patch0 -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-bootstrap.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
%if %{suse_version} >= 1110
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%endif
%if %{suse_version} >= 1110
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%endif
%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