package init
This commit is contained in:
parent
396a7911b5
commit
96fc64814f
28
0001-JDK7-compatibility.patch
Normal file
28
0001-JDK7-compatibility.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From fa5958d0acc8fc0988c1f2897382ae9c121d6619 Mon Sep 17 00:00:00 2001
|
||||
From: Marek Goldmann <marek.goldmann@gmail.com>
|
||||
Date: Tue, 17 Jun 2014 12:03:41 +0200
|
||||
Subject: [PATCH] JDK7 compatibility
|
||||
|
||||
---
|
||||
pom.xml | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/pom.xml b/pom.xml
|
||||
index ef9edf5..dc06021 100644
|
||||
--- a/pom.xml
|
||||
+++ b/pom.xml
|
||||
@@ -172,9 +172,9 @@
|
||||
<include name="NOTICE.*" />
|
||||
<include name="COPYRIGHT.*" />
|
||||
</zipfileset>
|
||||
- <zipfileset src="${settings.localRepository}/jdepend/jdepend/${jdepend-version}/jdepend-${jdepend-version}.jar" filemode="644" dirmode="755">
|
||||
+ <!--<zipfileset src="${settings.localRepository}/jdepend/jdepend/${jdepend-version}/jdepend-${jdepend-version}.jar" filemode="644" dirmode="755">
|
||||
<exclude name="META-INF/**" />
|
||||
- </zipfileset>
|
||||
+ </zipfileset>-->
|
||||
<zipfileset src="${project.build.directory}/${project.build.finalName}.orig.jar" filemode="644" dirmode="755">
|
||||
<exclude name="*/*/*/example/**" />
|
||||
<exclude name="jdepend/**" />
|
||||
--
|
||||
1.9.3
|
||||
|
||||
30
0002-JDK8-compatibility.patch
Normal file
30
0002-JDK8-compatibility.patch
Normal file
@ -0,0 +1,30 @@
|
||||
From 34fb236060b558d8cee2c0865e9b655838bd379c Mon Sep 17 00:00:00 2001
|
||||
From: Marek Goldmann <marek.goldmann@gmail.com>
|
||||
Date: Tue, 17 Jun 2014 12:03:54 +0200
|
||||
Subject: [PATCH] JDK8 compatibility
|
||||
|
||||
---
|
||||
src/main/java/org/jboss/apiviz/Edge.java | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/src/main/java/org/jboss/apiviz/Edge.java b/src/main/java/org/jboss/apiviz/Edge.java
|
||||
index 07fa1b0..1f72b55 100644
|
||||
--- a/src/main/java/org/jboss/apiviz/Edge.java
|
||||
+++ b/src/main/java/org/jboss/apiviz/Edge.java
|
||||
@@ -580,5 +580,13 @@ public class Edge implements Comparable<Edge> {
|
||||
public AnnotationTypeDoc asAnnotationTypeDoc() {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
+
|
||||
+ public Type getElementType() {
|
||||
+ return null;
|
||||
+ }
|
||||
+
|
||||
+ public AnnotatedType asAnnotatedType() {
|
||||
+ throw new UnsupportedOperationException("Not supported yet.");
|
||||
+ }
|
||||
}
|
||||
}
|
||||
--
|
||||
1.9.3
|
||||
|
||||
15
0003-fix-deprecated-assembly-goal.patch
Normal file
15
0003-fix-deprecated-assembly-goal.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- a/pom.xml 2017-01-04 11:03:27.339833354 -0600
|
||||
+++ b/pom.xml 2017-01-04 11:54:22.244914798 -0600
|
||||
@@ -213,10 +213,10 @@
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
- <id>attach-distribution</id>
|
||||
+ <id>make-assembly</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
- <goal>attached</goal>
|
||||
+ <goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
BIN
apiviz-1.3.2.GA-dist.tar.gz
Normal file
BIN
apiviz-1.3.2.GA-dist.tar.gz
Normal file
Binary file not shown.
52
apiviz.spec
Normal file
52
apiviz.spec
Normal file
@ -0,0 +1,52 @@
|
||||
%global namedreltag .GA
|
||||
%global namedversion %{version}%{?namedreltag}
|
||||
Name: apiviz
|
||||
Version: 1.3.2
|
||||
Release: 1
|
||||
Summary: APIviz is a JavaDoc doclet to generate class and package diagrams
|
||||
License: LGPLv2+
|
||||
URL: http://code.google.com/p/apiviz/
|
||||
Source0: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/apiviz/apiviz-%{namedversion}-dist.tar.gz
|
||||
Patch0000: 0001-JDK7-compatibility.patch
|
||||
Patch0001: 0002-JDK8-compatibility.patch
|
||||
Patch0002: 0003-fix-deprecated-assembly-goal.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: maven-local mvn(ant-contrib:ant-contrib) mvn(com.sun:tools)
|
||||
BuildRequires: mvn(jdepend:jdepend) mvn(junit:junit)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
||||
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
|
||||
%description
|
||||
APIviz is a JavaDoc doclet which extends the Java standard doclet.
|
||||
It generates comprehensive UML-like class and package diagrams for
|
||||
quick understanding of the overall API structure.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadocs for %{name}
|
||||
%description javadoc
|
||||
This package contains the API documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -n apiviz-%{namedversion} -p1
|
||||
find -name '*.class' -exec rm -f '{}' \;
|
||||
find -name '*.jar' -exec rm -f '{}' \;
|
||||
%pom_remove_dep com.sun:tools
|
||||
%pom_add_dep com.sun:tools
|
||||
%mvn_alias "org.jboss.apiviz:apiviz" "net.gleamynode.apiviz:apiviz"
|
||||
|
||||
%build
|
||||
%mvn_build
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
|
||||
%files -f .mfiles
|
||||
%doc COPYRIGHT.txt LICENSE.jdepend.txt LICENSE.txt NOTICE.txt
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%doc LICENSE.txt
|
||||
|
||||
%changelog
|
||||
* Sat Aug 1 2020 huanghaitao <huanghaitao8@huawei.com> - 1.3.2-1
|
||||
- package init
|
||||
Loading…
x
Reference in New Issue
Block a user