[maven-dependency-analyzer/f18] Initial commit

Tomas Radej tradej at fedoraproject.org
Mon Jan 7 15:53:50 UTC 2013


commit 8be461002ed82ce7288cd81fd37353fdfe128a37
Author: Tomas Radej <tradej at redhat.com>
Date:   Mon Jan 7 16:52:45 2013 +0100

    Initial commit

 .gitignore                     |    1 +
 maven-dependency-analyzer.spec |   92 ++++++++++++++++++++++++++++++++++++++++
 sources                        |    1 +
 3 files changed, 94 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..659f6c3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/maven-dependency-analyzer-1.3-source-release.zip
diff --git a/maven-dependency-analyzer.spec b/maven-dependency-analyzer.spec
new file mode 100644
index 0000000..4a20fd4
--- /dev/null
+++ b/maven-dependency-analyzer.spec
@@ -0,0 +1,92 @@
+Name:           maven-dependency-analyzer
+Version:        1.3
+Release:        3%{?dist}
+Summary:        Maven dependency analyzer
+
+License:        ASL 2.0
+URL:            http://maven.apache.org/shared/maven-dependency-analyzer/
+Source0:        http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
+
+BuildRequires:  java-devel
+BuildRequires:  jpackage-utils
+# Needed just for tests, those are skipped
+#BuildRequires:  jmock
+BuildRequires:  httpcomponents-project
+BuildRequires:  maven-doxia-module-xhtml
+BuildRequires:  junit
+BuildRequires:  maven
+BuildRequires:  maven-plugin-testing-tools
+Requires:       asm2
+Requires:       java
+Requires:       jpackage-utils
+Requires:       maven
+Requires:       maven-project
+Requires:       plexus-containers-component-annotations
+Requires:       plexus-utils
+
+BuildArch:      noarch
+
+# This is a replacement package for maven-shared-dependency-analyzer
+Provides:       maven-shared-dependency-analyzer = %{version}-%{release}
+Obsoletes:      maven-shared-dependency-analyzer < %{version}-%{release}
+%description
+Analyzes the dependencies of a project for undeclared or unused artifacts.
+
+Warning: Analysis is not done at source but bytecode level, then some cases are
+not detected (constants, annotations with source-only retention, links in
+javadoc) which can lead to wrong result if they are the only use of a
+dependency.
+
+%package javadoc
+Summary:        API documentation for %{name}
+Group:          Documentation
+Requires:       jpackage-utils
+
+%description javadoc
+%{summary}
+
+%prep
+%setup -q
+
+# Needed for tests only. However, the right groupId:artifactId of jmock in
+# Fedora is org.jmock:jmock
+%pom_remove_dep jmock:jmock
+
+%build
+# org.jmock.core package is needed, we don't have it
+mvn-rpmbuild install javadoc:aggregate -Dmaven.test.skip
+
+%install
+# jars
+install -d -m 755 %{buildroot}%{_javadir}
+install -pm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+# pom
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap
+
+# javadoc
+install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%doc LICENSE NOTICE
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%doc LICENSE NOTICE
+%{_javadocdir}/%{name}
+
+%changelog
+* Fri Dec 21 2012 Tomas Radej <tradej at redhat.com> - 1.3-3
+- Added missing Provides/Obsoletes
+
+* Thu Dec 20 2012 Tomas Radej <tradej at redhat.com> - 1.3-2
+- Removed xmvn + reworked building without it
+
+* Tue Dec 18 2012 Tomas Radej <tradej at redhat.com> - 1.3-1
+- Initial package
+
diff --git a/sources b/sources
index e69de29..4b2b7fc 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c45d9015f6f7d8db784df8c1a1f20f80  maven-dependency-analyzer-1.3-source-release.zip


More information about the scm-commits mailing list