package init
This commit is contained in:
parent
9893833233
commit
fd9516c150
BIN
jdiff-1.1.1-clean-src-cvs.tar.gz
Normal file
BIN
jdiff-1.1.1-clean-src-cvs.tar.gz
Normal file
Binary file not shown.
20
jdiff-java8.patch
Normal file
20
jdiff-java8.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
--- src/jdiff/RootDocToXML.java 2008-10-06 20:03:18.000000000 +0200
|
||||||
|
+++ src/jdiff/RootDocToXML.java-gil 2014-06-09 01:47:57.440619802 +0200
|
||||||
|
@@ -479,7 +479,7 @@
|
||||||
|
continue;
|
||||||
|
outputFile.print(" <constructor name=\"" + ctorName + "\"");
|
||||||
|
|
||||||
|
- Parameter[] params = ct[i].parameters();
|
||||||
|
+ com.sun.javadoc.Parameter[] params = ct[i].parameters();
|
||||||
|
boolean first = true;
|
||||||
|
if (params.length != 0) {
|
||||||
|
outputFile.print(" type=\"");
|
||||||
|
@@ -552,7 +552,7 @@
|
||||||
|
addCommonModifiers(md[i], 6);
|
||||||
|
outputFile.println(">");
|
||||||
|
// Generate the parameter elements, if any
|
||||||
|
- Parameter[] params = md[i].parameters();
|
||||||
|
+ com.sun.javadoc.Parameter[] params = md[i].parameters();
|
||||||
|
for (int j = 0; j < params.length; j++) {
|
||||||
|
outputFile.print(" <param name=\"" + params[j].name() + "\"");
|
||||||
|
outputFile.print(" type=\"");
|
||||||
6
jdiff-pom-template.xml
Normal file
6
jdiff-pom-template.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>jdiff</groupId>
|
||||||
|
<artifactId>jdiff</artifactId>
|
||||||
|
<version>@version@</version>
|
||||||
|
</project>
|
||||||
31
jdiff-script
Normal file
31
jdiff-script
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# jdiff script by gil
|
||||||
|
|
||||||
|
# Source functions library
|
||||||
|
. /usr/share/java-utils/java-functions
|
||||||
|
|
||||||
|
# Source system prefs
|
||||||
|
if [ -f /etc/java/jdiff.conf ] ; then
|
||||||
|
. /etc/java/jdiff.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Source user prefs
|
||||||
|
if [ -f $HOME/.jdiffrc ] ; then
|
||||||
|
. $HOME/.jdiffrc
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Configuration
|
||||||
|
MAIN_CLASS="jdiff.JDiff"
|
||||||
|
BASE_FLAGS=
|
||||||
|
BASE_OPTIONS=
|
||||||
|
BASE_JARS="jdiff xerces-j2 ant.jar ant-launcher.jar ../jvm/java/lib/tools"
|
||||||
|
|
||||||
|
# Set parameters
|
||||||
|
set_jvm
|
||||||
|
set_classpath $BASE_JARS
|
||||||
|
set_flags $BASE_FLAGS
|
||||||
|
set_options $BASE_OPTIONS
|
||||||
|
|
||||||
|
# Let's start
|
||||||
|
run "$@"
|
||||||
77
jdiff.spec
Normal file
77
jdiff.spec
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
Name: jdiff
|
||||||
|
Version: 1.1.1
|
||||||
|
Release: 1
|
||||||
|
Summary: An HTML Report of API Differences
|
||||||
|
License: GPL+ and LGPLv2+
|
||||||
|
URL: http://javadiff.sourceforge.net/
|
||||||
|
# cvs -z3 -d:pserver:anonymous@javadiff.cvs.sourceforge.net:/cvsroot/javadiff export -rHEAD jdiff
|
||||||
|
# tar czf jdiff-1.1.1-clean-src-cvs.tar.gz jdiff
|
||||||
|
Source0: jdiff-1.1.1-clean-src-cvs.tar.gz
|
||||||
|
Source1: jdiff-pom-template.xml
|
||||||
|
Source2: jdiff-script
|
||||||
|
Patch0: jdiff-java8.patch
|
||||||
|
BuildRequires: java-devel javapackages-local jpackage-utils
|
||||||
|
BuildRequires: ant junit xerces-j2 /usr/bin/perl
|
||||||
|
Requires: ant xerces-j2
|
||||||
|
Requires: java-headless jpackage-utils
|
||||||
|
BuildArch: noarch
|
||||||
|
%description
|
||||||
|
JDiff is a Javadoc doclet which generates an HTML
|
||||||
|
report of all the packages, classes, constructors,
|
||||||
|
methods, and fields which have been removed, added
|
||||||
|
or changed in any way, including their documentation,
|
||||||
|
when two APIs are compared. This is very useful for
|
||||||
|
describing exactly what has changed between two
|
||||||
|
releases of a product. Only the API (Application
|
||||||
|
Programming Interface) of each version is compared.
|
||||||
|
It does not compare what the source code does when
|
||||||
|
executed.
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
%description javadoc
|
||||||
|
This package contains javadoc for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n jdiff
|
||||||
|
%patch0 -p0
|
||||||
|
perl -pi -e 's/\r$//g' doc/CHANGES.txt doc/KNOWN_LIMITATIONS.txt doc/TODO doc/dev_notes.txt
|
||||||
|
perl -pi -e 's/\r$//g' LICENSE.txt README.txt
|
||||||
|
ln -sf $(build-classpath xerces-j2) lib/xerces.jar
|
||||||
|
# fix non ASCII chars
|
||||||
|
native2ascii -encoding UTF8 test/old/ChangedPackageDoc2/ChangedMethod.java test/old/ChangedPackageDoc2/ChangedMethod.java
|
||||||
|
native2ascii -encoding UTF8 test/new/ChangedPackageDoc2/ChangedMethod.java test/new/ChangedPackageDoc2/ChangedMethod.java
|
||||||
|
|
||||||
|
%build
|
||||||
|
export CLASSPATH=$(build-classpath junit):`pwd`/build/lib/jdiff.jar:`pwd`/build/lib/antjdiff.jar
|
||||||
|
%{ant} -Dbuild.sysclasspath=only dist unittest check.compile
|
||||||
|
# release
|
||||||
|
%javadoc -classpath `pwd`/build/lib/jdiff.jar:`pwd`/build/lib/antjdiff.jar:$(build-classpath xerces-j2 ant.jar ../jvm/java/lib/tools) \
|
||||||
|
-d apidocs -Xdoclint:none -sourcepath src -subpackages jdiff
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{_javadir}
|
||||||
|
install -pm 644 build/lib/ant%{name}.jar %{buildroot}%{_javadir}/ant%{name}.jar
|
||||||
|
install -pm 644 build/lib/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
|
mkdir -p %{buildroot}%{_mavenpomdir}
|
||||||
|
install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||||
|
sed -i "s|@version@|%{version}|" %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||||
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
||||||
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
cp -pr apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
|
install -pm 755 %{SOURCE2} %{buildroot}%{_bindir}/%{name}
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%{_javadir}/ant%{name}.jar
|
||||||
|
%doc README.txt doc/jdiff.html doc/CHANGES.txt doc/KNOWN_LIMITATIONS.txt doc/TODO doc/dev_notes.txt
|
||||||
|
%license LICENSE.txt
|
||||||
|
|
||||||
|
%files javadoc
|
||||||
|
%{_javadocdir}/%{name}
|
||||||
|
%license LICENSE.txt
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Sep 2 2020 wutao <wutao61@huawei.com> - 1.1.1-1
|
||||||
|
- package init
|
||||||
4
jdiff.yaml
Normal file
4
jdiff.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: NA
|
||||||
|
src_repo: NA
|
||||||
|
tag_prefix: NA
|
||||||
|
seperator: NA
|
||||||
Loading…
x
Reference in New Issue
Block a user