Update to 2.2 final release.
This commit is contained in:
parent
06d89e8e6e
commit
59b5438b88
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
maven-dependency-plugin-2.2.tar.xz
|
maven-dependency-plugin-2.2.tar.xz
|
||||||
|
/maven-dependency-plugin-2.2-source-release.zip
|
||||||
|
@ -1,17 +1,12 @@
|
|||||||
Name: maven-dependency-plugin
|
Name: maven-dependency-plugin
|
||||||
Version: 2.2
|
Version: 2.2
|
||||||
Release: 0.4.svn949573%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Plugin to manipulate, copy and unpack local and remote artifacts
|
Summary: Plugin to manipulate, copy and unpack local and remote artifacts
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://maven.apache.org/plugins/%{name}
|
URL: http://maven.apache.org/plugins/%{name}
|
||||||
# we are not using release tag 2.1 because last release has problems with
|
Source0: http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip
|
||||||
# our dependencies and there are 2 outstanding bugs before 2.2 release.
|
|
||||||
# svn export -r 949573 http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-dependency-plugin maven-dependency-plugin-2.2
|
|
||||||
# tar caf maven-dependency-plugin-2.2.tar.xz maven-dependency-plugin-2.2
|
|
||||||
Source0: %{name}-%{version}.tar.xz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -19,7 +14,7 @@ BuildRequires: java-devel >= 1:1.6.0
|
|||||||
BuildRequires: plexus-utils
|
BuildRequires: plexus-utils
|
||||||
BuildRequires: ant-nodeps
|
BuildRequires: ant-nodeps
|
||||||
BuildRequires: asm2
|
BuildRequires: asm2
|
||||||
BuildRequires: maven2
|
BuildRequires: maven
|
||||||
BuildRequires: maven-install-plugin
|
BuildRequires: maven-install-plugin
|
||||||
BuildRequires: maven-compiler-plugin
|
BuildRequires: maven-compiler-plugin
|
||||||
BuildRequires: maven-plugin-plugin
|
BuildRequires: maven-plugin-plugin
|
||||||
@ -31,7 +26,7 @@ BuildRequires: maven-javadoc-plugin
|
|||||||
BuildRequires: maven-shared-dependency-analyzer
|
BuildRequires: maven-shared-dependency-analyzer
|
||||||
BuildRequires: maven-shared-dependency-tree
|
BuildRequires: maven-shared-dependency-tree
|
||||||
BuildRequires: maven-shared-common-artifact-filters
|
BuildRequires: maven-shared-common-artifact-filters
|
||||||
Requires: maven2
|
Requires: maven
|
||||||
Requires: jpackage-utils
|
Requires: jpackage-utils
|
||||||
Requires: java
|
Requires: java
|
||||||
Requires: maven-shared-common-artifact-filters
|
Requires: maven-shared-common-artifact-filters
|
||||||
@ -58,31 +53,21 @@ Requires: jpackage-utils
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q #You may need to update this according to your Source0
|
%setup -q
|
||||||
|
|
||||||
# we have newer classworlds in Fedora, so fix test case
|
|
||||||
sed -i \
|
sed -i \
|
||||||
's:org.codehaus.classworlds.ClassRealm:org.codehaus.plexus.classworlds.realm.ClassRealm:' \
|
's:org.codehaus.classworlds.ClassRealm:org.codehaus.plexus.classworlds.realm.ClassRealm:' \
|
||||||
src/test/java/org/apache/maven/plugin/dependency/its/AbstractDependencyPluginITCase.java
|
src/test/java/org/apache/maven/plugin/dependency/its/AbstractDependencyPluginITCase.java
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
mvn-rpmbuild \
|
||||||
# tests failures are ignored because they are failing in jpp mode
|
|
||||||
# Need more time to investigate/fix this
|
|
||||||
mvn-jpp \
|
|
||||||
-e \
|
|
||||||
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
|
||||||
-Dmaven.test.failure.ignore=true \
|
-Dmaven.test.failure.ignore=true \
|
||||||
install javadoc:javadoc
|
install javadoc:javadoc
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
# jars
|
# jars
|
||||||
install -Dpm 644 target/%{name}-%{version}-SNAPSHOT.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
install -Dpm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
|
|
||||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; \
|
|
||||||
do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
|
||||||
|
|
||||||
%add_to_maven_depmap org.apache.maven.plugins %{name} %{version} JPP %{name}
|
%add_to_maven_depmap org.apache.maven.plugins %{name} %{version} JPP %{name}
|
||||||
|
|
||||||
@ -90,10 +75,8 @@ install -Dpm 644 target/%{name}-%{version}-SNAPSHOT.jar %{buildroot}%{_javadir}/
|
|||||||
install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/
|
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
|
||||||
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
|
||||||
rm -rf target/site/api*
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%update_maven_depmap
|
%update_maven_depmap
|
||||||
@ -101,9 +84,6 @@ rm -rf target/site/api*
|
|||||||
%postun
|
%postun
|
||||||
%update_maven_depmap
|
%update_maven_depmap
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_javadir}/*
|
%{_javadir}/*
|
||||||
@ -112,10 +92,12 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_javadocdir}/%{name}-%{version}
|
|
||||||
%{_javadocdir}/%{name}
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 26 2011 Alexander Kurtakov <akurtako@redhat.com> 2.2-1
|
||||||
|
- Update to 2.2 final release.
|
||||||
|
|
||||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-0.4.svn949573
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-0.4.svn949573
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user