[apiviz] Initial import.

Marek Goldmann goldmann at fedoraproject.org
Thu Jul 28 08:39:56 UTC 2011


commit e6269852772f36daee7ff06fd959afce9994076b
Author: Marek Goldmann <goldmann at fedoraproject.org>
Date:   Thu Jul 28 04:39:36 2011 -0400

    Initial import.

 .gitignore                |    1 +
 apiviz-1.3.1.GA-pom.patch |   15 +++++++
 apiviz.spec               |   93 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 4 files changed, 110 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b363d35 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/apiviz-1.3.1.GA-dist.tar.gz
diff --git a/apiviz-1.3.1.GA-pom.patch b/apiviz-1.3.1.GA-pom.patch
new file mode 100644
index 0000000..7d3a570
--- /dev/null
+++ b/apiviz-1.3.1.GA-pom.patch
@@ -0,0 +1,15 @@
+diff -Naur apiviz-1.3.1.GA/pom.xml apiviz-1.3.1.GA-work/pom.xml
+--- apiviz-1.3.1.GA/pom.xml	2010-03-04 04:06:04.000000000 -0500
++++ apiviz-1.3.1.GA-work/pom.xml	2011-06-03 12:42:16.693372903 -0400
+@@ -192,9 +192,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/**" />
diff --git a/apiviz.spec b/apiviz.spec
new file mode 100644
index 0000000..edde9b8
--- /dev/null
+++ b/apiviz.spec
@@ -0,0 +1,93 @@
+%global namedreltag .GA
+%global namedversion %{version}%{?namedreltag}
+
+Name:             apiviz
+Version:          1.3.1
+Release:          2%{?dist}
+Summary:          APIviz is a JavaDoc doclet to generate class and package diagrams
+Group:            Development/Libraries
+License:          LGPLv2+
+URL:              http://code.google.com/p/apiviz/
+Source0:          http://%{name}.googlecode.com/files/%{name}-%{namedversion}-dist.tar.gz
+Patch0:           %{name}-%{namedversion}-pom.patch
+
+BuildArch:        noarch
+
+BuildRequires:    jpackage-utils
+BuildRequires:    java-devel
+BuildRequires:    maven
+
+BuildRequires:    maven-antrun-plugin
+BuildRequires:    maven-compiler-plugin
+BuildRequires:    maven-install-plugin
+BuildRequires:    maven-jar-plugin
+BuildRequires:    maven-javadoc-plugin
+BuildRequires:    maven-release-plugin
+BuildRequires:    maven-resources-plugin
+BuildRequires:    maven-surefire-plugin
+BuildRequires:    maven-surefire-provider-junit4
+BuildRequires:    maven-plugin-jxr
+BuildRequires:    jdepend
+BuildRequires:    ant-contrib
+BuildRequires:    junit4
+BuildRequires:    ant
+
+Requires:         jdepend
+Requires:         jpackage-utils
+Requires:         java
+
+%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}
+Group:            Documentation
+Requires:         jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q -n %{name}-%{namedversion}
+%patch0 -p1
+
+find -name '*.class' -exec rm -f '{}' \;
+find -name '*.jar' -exec rm -f '{}' \;
+
+%build
+mvn-rpmbuild install javadoc:aggregate
+
+%install
+# JAR
+install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/jboss
+cp -p target/%{name}-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/jboss/%{name}.jar
+
+# APIDOCS
+install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+cp -rp target/site/apidocs $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+# POM
+install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
+install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.jboss-%{name}.pom
+
+%add_maven_depmap JPP.jboss-%{name}.pom jboss/%{name}.jar
+
+%files
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+%{_javadir}/*
+%doc COPYRIGHT.txt LICENSE.jdepend.txt LICENSE.txt NOTICE.txt
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc LICENSE.txt
+
+%changelog
+* Wed Jul 27 2011 Marek Goldmann <mgoldman at redhat.com> 1.3.1-2
+- Using upstream tarball
+
+* Wed Jul 20 2011 Marek Goldmann <mgoldman at redhat.com> 1.3.1-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..b166b22 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6dbaae4fbc3dfb3059f477888f1e121f  apiviz-1.3.1.GA-dist.tar.gz


More information about the scm-commits mailing list