Build with xmvn
This commit is contained in:
parent
bf9d3c430d
commit
571a303a44
@ -1,47 +1,27 @@
|
||||
|
||||
Name: maven-dependency-tree
|
||||
Version: 2.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Maven dependency tree artifact
|
||||
Group: Development/Libraries
|
||||
License: ASL 2.0
|
||||
Url: http://maven.apache.org/
|
||||
Source0: http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: jpackage-utils
|
||||
|
||||
BuildRequires: maven
|
||||
BuildRequires: maven-artifact
|
||||
BuildRequires: maven-project
|
||||
BuildRequires: maven-compiler-plugin
|
||||
BuildRequires: maven-install-plugin
|
||||
BuildRequires: maven-jar-plugin
|
||||
BuildRequires: maven-javadoc-plugin
|
||||
BuildRequires: maven-surefire-plugin
|
||||
BuildRequires: xmvn
|
||||
BuildRequires: plexus-containers-component-metadata
|
||||
BuildRequires: plexus-containers-component-annotations
|
||||
|
||||
Requires: maven
|
||||
Requires: maven-project
|
||||
Requires: maven-artifact
|
||||
Requires: plexus-containers-component-annotations
|
||||
Requires: java
|
||||
Requires: jpackage-utils
|
||||
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
Provides: maven-shared-dependency-tree = %{version}-%{release}
|
||||
Obsoletes: maven-shared-dependency-tree < %{version}-%{release}
|
||||
Provides: maven-shared-dependency-tree = %{version}-%{release}
|
||||
Obsoletes: maven-shared-dependency-tree < %{version}-%{release}
|
||||
|
||||
%description
|
||||
Apache Maven dependency tree artifact. Originally part of maven-shared
|
||||
Apache Maven dependency tree artifact. Originally part of maven-shared.
|
||||
|
||||
%package javadoc
|
||||
Group: Documentation
|
||||
Summary: Javadoc for %{name}
|
||||
Requires: jpackage-utils
|
||||
|
||||
%description javadoc
|
||||
This package contains javadoc for %{name}.
|
||||
@ -53,34 +33,20 @@ This package contains javadoc for %{name}.
|
||||
|
||||
%build
|
||||
# we have no jmock yet
|
||||
mvn-rpmbuild -Dproject.build.sourceEncoding=utf-8 \
|
||||
-Dmaven.test.skip=true \
|
||||
package javadoc:aggregate
|
||||
%mvn_build -f
|
||||
|
||||
%install
|
||||
# jars
|
||||
install -d -m 0755 %{buildroot}%{_javadir}
|
||||
install -pm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
%mvn_install
|
||||
|
||||
# pom
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%add_maven_depmap
|
||||
|
||||
# javadoc
|
||||
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
%files
|
||||
%{_javadir}/%{name}.jar
|
||||
%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%{_mavendepmapfragdir}/%{name}
|
||||
%files -f .mfiles
|
||||
%doc LICENSE NOTICE
|
||||
|
||||
%files javadoc
|
||||
%{_javadocdir}/%{name}
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%doc LICENSE NOTICE
|
||||
|
||||
%changelog
|
||||
* Thu Jan 10 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0-2
|
||||
- Build with xmvn
|
||||
|
||||
* Wed Oct 24 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-1
|
||||
- Initial package
|
||||
|
Loading…
Reference in New Issue
Block a user