Compare commits

..

9 commits

Author SHA1 Message Date
Fedora Release Engineering
d2a175eb7d dist-git conversion 2010-07-29 15:53:54 +00:00
Jesse Keating
938272f608 Initialize branch F-13 for xjavadoc 2010-02-17 03:31:03 +00:00
Bill Nottingham
282e1171ff Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 22:40:59 +00:00
Jesse Keating
1a8a68f79a - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-27 08:06:40 +00:00
Jesse Keating
1b6852808a - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-26 09:43:34 +00:00
Tom Callaway
2a48618419 fix repotag 2008-07-10 20:38:00 +00:00
Tom Callaway
af7fbe8050 fix license tag 2008-05-29 15:51:32 +00:00
Jesse Keating
e47ff13f8f - Autorebuild for GCC 4.3 2008-02-19 00:58:38 +00:00
Bill Nottingham
b1e878276f makefile update to properly grab makefile.common 2007-10-15 19:32:05 +00:00
5 changed files with 308 additions and 1 deletions

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
xjavadoc-src-1.1-RHCLEAN.tar.bz2
xjavadoc
noarch
*.src.rpm

View file

@ -1 +0,0 @@
Package is retired

1
sources Normal file
View file

@ -0,0 +1 @@
b9ab69d0d30f49ee9824947ebac395e8 xjavadoc-src-1.1-RHCLEAN.tar.bz2

62
xjavadoc-build_xml.patch Normal file
View file

@ -0,0 +1,62 @@
--- build.xml.orig 2004-06-29 11:23:25.332349000 +0200
+++ build.xml 2004-06-29 15:29:29.879533000 +0200
@@ -6,6 +6,8 @@
<property name="jardir" location="${build.dir}"/>
<property name="rootdir" location="${basedir}"/>
<property name="javacchome" location="${basedir}/lib"/>
+ <property name="javadocdir" value="dist/docs/api"/>
+ <property name="final.name" value="xjavadoc-1.0.3"/>
<!-- =================================================================== -->
<!-- Initialization target. -->
@@ -83,6 +85,7 @@
WE'RE USING THE OLD XDOCLET, THE ONE THAT USES SUN'S JAVADOC.
IT'S TO SEE IF XJAVADOC DOES THE SAME JOB AS JAVADOC
-->
+<!-- OMIT TEST GENERATION AS SOURCES FOR OLD XDOCLET NOT AVAILABLE
<taskdef
name="xdoclet"
classname="xdoclet.DocletTask"
@@ -95,7 +98,6 @@
classpathref="classpath"
>
<fileset dir="${build.dir}/src">
- <!-- Just run it over the biggest classes -->
<include name="xjavadoc/XJavaDoc.java"/>
<include name="xjavadoc/AbstractClass.java"/>
<include name="xjavadoc/XDoc.java"/>
@@ -111,6 +113,7 @@
subTaskClassName="xdoclet.NoInnerClassSubTask"
/>
</xdoclet>
+-->
<mkdir dir="${build.dir}/test-classes"/>
<javac
@@ -235,4 +238,26 @@
multi="false"
/>
</target>
+ <target name="javadoc" description="o Generate javadoc" depends="jar">
+ <mkdir dir="${javadocdir}">
+ </mkdir>
+ <tstamp>
+ <format pattern="2002-yyyy" property="year">
+ </format>
+ </tstamp>
+ <property name="copyright" value="Copyright &amp;copy; XDoclet Team. All Rights Reserved.">
+ </property>
+ <property name="title" value="XJavaDoc 1.0.3 API">
+ </property>
+ <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="target/src" packagenames="xjavadoc.*">
+ <classpath>
+ <fileset dir="lib">
+ <include name="*.jar">
+ </include>
+ </fileset>
+ <pathelement location="target/${final.name}.jar">
+ </pathelement>
+ </classpath>
+ </javadoc>
+ </target>
</project>

241
xjavadoc.spec Normal file
View file

@ -0,0 +1,241 @@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the
# distribution.
# 3. Neither the name of the JPackage Project nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
%define _with_gcj_support 1
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
%define section free
Name: xjavadoc
Version: 1.1
Release: 7.5%{?dist}
Epoch: 0
Summary: The XJavaDoc engine
License: BSD
URL: http://xdoclet.sourceforge.net/xjavadoc/
Group: Development/Testing
Source0: xjavadoc-src-1.1-RHCLEAN.tar.bz2
# cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/xdoclet login
# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/xdoclet export -r XJAVADOC_1_1 xjavadoc
Patch0: %{name}-build_xml.patch
BuildRequires: java
BuildRequires: java-devel >= 0:1.4.2
BuildRequires: jpackage-utils
BuildRequires: junit
BuildRequires: ant >= 0:1.6
BuildRequires: ant-nodeps >= 0:1.6
BuildRequires: ant-junit >= 0:1.6
BuildRequires: jakarta-commons-logging
BuildRequires: jakarta-commons-collections
BuildRequires: xml-commons-apis
BuildRequires: log4j
BuildRequires: javacc
BuildRequires: xalan-j2
BuildRequires: jrefactory
Requires: java
Requires: jakarta-commons-logging
Requires: jakarta-commons-collections
Requires: xml-commons-apis
Requires: log4j
Requires: xalan-j2
Requires: jrefactory
%if ! %{gcj_support}
BuildArch: noarch
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%if %{gcj_support}
BuildRequires: java-gcj-compat-devel
Requires(post): java-gcj-compat
Requires(postun): java-gcj-compat
%endif
%description
The XJavaDoc engine is a complete rewrite of Sun's
JavaDoc engine that is faster and more suited for
XDoclet (although it is completely standalone). It
scans java source code and makes information about
a class available via special java beans that are
part of the XJavaDoc core. These beans provide the
same information about a class as Sun's JavaDoc API,
and some nice extra features.
%package javadoc
Summary: Javadoc for %{name}
Group: Development/Documentation
# for /bin/rm and /bin/ln
Requires(post): coreutils
Requires(postun): coreutils
%description javadoc
%{summary}.
%prep
%setup -q -n %{name}
find . -name "*.zip" -exec rm {} \;
find . -name "*.jar" -exec rm {} \;
%patch0 -b .sav
%build
build-jar-repository -s -p lib \
xalan-j2 \
junit \
javacc \
log4j \
commons-logging \
commons-collections \
xml-commons-apis \
jrefactory \
ant \
#Fix these binary deps
#BINCLASSPATH=$PWD/lib/ConfigLog4j.jar
ant -Djavacchome=/usr/share/java javadoc
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_javadir}
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}
mkdir -p $RPM_BUILD_ROOT%{_docdir}
install -m 644 target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}
# version less symlinks
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
install -m 644 LICENSE.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
install -m 644 docs/architecture.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
#javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
%if %{gcj_support}
%{_bindir}/aot-compile-rpm
%endif
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}
%postun javadoc
if [ "$1" = "0" ]; then
rm -f %{_javadocdir}/%{name}
fi
%post
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
%{_bindir}/rebuild-gcj-db
fi
%endif
%postun
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files
%defattr(0644,root,root,0755)
%{_javadir}/*
%{_docdir}/%{name}-%{version}
%if %{gcj_support}
%attr(-,root,root) %{_libdir}/gcj/%{name}
%endif
%files javadoc
%defattr(-,root,root,-)
%doc %{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}
%changelog
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1-7.5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1-6.5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.1-5.5
- drop repotag
* Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.1-5jpp.4
- fix license tag
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.1-5jpp.3
- Autorebuild for GCC 4.3
* Thu Sep 20 2007 Deepak Bhole <dbhole@redhat.com> 1.1-4jpp.3
- Rebuild for ppc32 execmem issue and new build-id
- Add %%{?dist} as per policy
* Mon Mar 26 2007 Deepak Bhole <dbhole@redhat.com> 1.1-4jpp.2
- Fixed incorrect entry in the files section
* Thu Aug 10 2006 Deepak Bhole <dbhole@redhat.com> 1.1-4jpp.1
- Added missing postun section for javadoc.
- Added missing requirements.
* Mon Jul 24 2006 Deepak Bhole <dbhole@redhat.com> 1.1-3jpp_1fc
- Added conditional native compilation.
- BR fixes.
* Thu Apr 06 2005 Ralph Apel <r.apel at r-apel.de> 1.1-2jpp
- First JPP-1.7 release
* Tue Feb 15 2005 Ralph Apel <r.apel at r-apel.de> 1.1-1jpp
- upgrade to 1.1
- replace requirement of xml-commons by xml-commons-apis
* Thu Aug 26 2004 Ralph Apel <r.apel at r-apel.de> 1.0.3-2jpp
- Build with ant-1.6.2
* Fri Jul 02 2004 Ralph Apel <r.apel at r-apel.de> 1.0.3-1jpp
- upgrade to 1.0.3
- just eliminate __GENERATED__ tests because no sources for old xdoclet
- add xjavadoc javadoc subpackage
* Tue Dec 16 2003 Paul Nasrat <pauln at truemesh.com> 1.0-2jpp
- fix non-versioned symlink typo
* Mon Dec 15 2003 Paul Nasrat <pauln at truemesh.com> 1.0-1jpp
- Initial Release