Build with xmvn
This commit is contained in:
parent
bc0c01f41e
commit
600f3c991d
@ -1,34 +1,22 @@
|
|||||||
Name: maven-dependency-analyzer
|
Name: maven-dependency-analyzer
|
||||||
Version: 1.3
|
Version: 1.3
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Summary: Maven dependency analyzer
|
Summary: Maven dependency analyzer
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://maven.apache.org/shared/maven-dependency-analyzer/
|
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
|
Source0: http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: java-devel
|
BuildRequires: maven-local
|
||||||
BuildRequires: jpackage-utils
|
BuildRequires: maven-shared
|
||||||
# Needed just for tests, those are skipped
|
|
||||||
#BuildRequires: jmock
|
|
||||||
BuildRequires: httpcomponents-project
|
BuildRequires: httpcomponents-project
|
||||||
BuildRequires: maven-doxia-module-xhtml
|
BuildRequires: maven-doxia-module-xhtml
|
||||||
BuildRequires: junit
|
|
||||||
BuildRequires: maven-local
|
|
||||||
BuildRequires: maven-plugin-testing-tools
|
BuildRequires: maven-plugin-testing-tools
|
||||||
Requires: objectweb-asm
|
|
||||||
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
|
# This is a replacement package for maven-shared-dependency-analyzer
|
||||||
Provides: maven-shared-dependency-analyzer = %{version}-%{release}
|
Provides: maven-shared-dependency-analyzer = %{version}-%{release}
|
||||||
Obsoletes: maven-shared-dependency-analyzer < %{version}-%{release}
|
Obsoletes: maven-shared-dependency-analyzer < %{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Analyzes the dependencies of a project for undeclared or unused artifacts.
|
Analyzes the dependencies of a project for undeclared or unused artifacts.
|
||||||
|
|
||||||
@ -39,8 +27,6 @@ dependency.
|
|||||||
|
|
||||||
%package javadoc
|
%package javadoc
|
||||||
Summary: API documentation for %{name}
|
Summary: API documentation for %{name}
|
||||||
Group: Documentation
|
|
||||||
Requires: jpackage-utils
|
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
%{summary}
|
%{summary}
|
||||||
@ -54,33 +40,21 @@ Requires: jpackage-utils
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
# org.jmock.core package is needed, we don't have it
|
# org.jmock.core package is needed, we don't have it
|
||||||
mvn-rpmbuild install javadoc:aggregate -Dmaven.test.skip
|
%mvn_build -f
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# jars
|
%mvn_install
|
||||||
install -d -m 755 %{buildroot}%{_javadir}
|
|
||||||
install -pm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
||||||
|
|
||||||
# pom
|
%files -f .mfiles
|
||||||
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
|
%doc LICENSE NOTICE
|
||||||
%{_javadir}/%{name}.jar
|
|
||||||
%{_mavenpomdir}/JPP-%{name}.pom
|
|
||||||
%{_mavendepmapfragdir}/%{name}
|
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc -f .mfiles-javadoc
|
||||||
%doc LICENSE NOTICE
|
%doc LICENSE NOTICE
|
||||||
%{_javadocdir}/%{name}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 19 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-7
|
||||||
|
- Build with xmvn
|
||||||
|
|
||||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-6
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-6
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user