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