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

# 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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

JavaDoc replacement from the classpath project.

    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

%setup -q
%patch0 -p1
cat %{_bindir}/ecj

LIB_GCJ="`ls %{_javadir}/libgcj-*.jar`"
#>>> gjdoc (javadoc replacement)
export JAVAC=%{_bindir}/ecj
%configure --with-antlr-jar=%{_javadir}/antlr-bootstrap.jar CLASSPATH=$LIB_GCJ --disable-native
#<<< end gjdoc

# 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 | :

%if %{suse_version} >= 1110

%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%if %{suse_version} >= 1110

%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

#%dir /usr/share/info
#%dir /usr/share/man
#%dir /usr/share/man/man1
#%dir %{_javadir} 

openSUSE Build Service is sponsored by