2010-05-19 03:48:13 +00:00
|
|
|
Name: maven-resources-plugin
|
2010-09-09 07:53:35 +00:00
|
|
|
Version: 2.4.3
|
|
|
|
Release: 1%{?dist}
|
2010-05-19 03:48:13 +00:00
|
|
|
Summary: Maven Resources Plugin
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: http://maven.apache.org/plugins/maven-resources-plugin
|
2010-09-09 07:53:35 +00:00
|
|
|
#svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-resources-plugin-2.4.3 maven-resources-plugin-2.4.3
|
|
|
|
#tar zcf maven-resources-plugin-2.4.3.tar.gz maven-resources-plugin-2.4.3/
|
2010-05-19 03:48:13 +00:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: java-devel >= 1:1.6.0
|
|
|
|
BuildRequires: maven2
|
|
|
|
BuildRequires: maven2-plugin-plugin
|
|
|
|
BuildRequires: maven2-plugin-resources
|
2010-05-20 07:14:51 +00:00
|
|
|
BuildRequires: maven-jar-plugin
|
|
|
|
BuildRequires: maven-install-plugin
|
|
|
|
BuildRequires: maven-compiler-plugin
|
|
|
|
BuildRequires: maven-javadoc-plugin
|
2010-05-19 03:48:13 +00:00
|
|
|
BuildRequires: maven-surefire-maven-plugin
|
|
|
|
BuildRequires: maven-surefire-provider-junit
|
|
|
|
BuildRequires: maven-doxia-sitetools
|
2010-05-20 07:14:51 +00:00
|
|
|
BuildRequires: maven-plugin-testing-harness
|
|
|
|
BuildRequires: maven-shared-reporting-impl
|
|
|
|
BuildRequires: plexus-digest
|
2010-05-19 03:48:13 +00:00
|
|
|
|
2010-05-20 07:14:51 +00:00
|
|
|
Requires: maven-plugin-testing-harness
|
2010-05-19 03:48:13 +00:00
|
|
|
Requires: maven2
|
|
|
|
Requires: jpackage-utils
|
|
|
|
Requires: java
|
|
|
|
Requires(post): jpackage-utils
|
|
|
|
Requires(postun): jpackage-utils
|
|
|
|
|
2010-05-20 07:14:51 +00:00
|
|
|
Provides: maven2-plugin-resources = %{version}-%{release}
|
|
|
|
Obsoletes: maven2-plugin-resources <= 0:2.0.8
|
|
|
|
|
2010-05-19 03:48:13 +00:00
|
|
|
%description
|
|
|
|
The Resources Plugin handles the copying of project resources
|
|
|
|
to the output directory.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Group: Documentation
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
Requires: jpackage-utils
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
|
|
|
mvn-jpp \
|
|
|
|
-e \
|
|
|
|
-Dmaven2.jpp.mode=true \
|
|
|
|
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
2010-05-20 07:14:51 +00:00
|
|
|
-Dmaven.test.failure.ignore=true \
|
2010-05-19 03:48:13 +00:00
|
|
|
install javadoc:javadoc
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
# jars
|
|
|
|
install -d -m 0755 %{buildroot}%{_javadir}
|
|
|
|
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.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 maven-resources-plugin %{version} JPP maven-resources-plugin
|
|
|
|
|
|
|
|
# poms
|
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
|
|
install -pm 644 pom.xml \
|
|
|
|
%{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
|
|
|
|
|
# javadoc
|
|
|
|
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
|
|
|
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/
|
|
|
|
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
rm -rf target/site/api*
|
|
|
|
|
|
|
|
%post
|
|
|
|
%update_maven_depmap
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%update_maven_depmap
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_javadir}/*
|
|
|
|
%{_mavenpomdir}/*
|
|
|
|
%{_mavendepmapfragdir}/*
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_javadocdir}/%{name}-%{version}
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|
2010-09-09 07:53:35 +00:00
|
|
|
*Thu Sep 09 2010 Pierre-Yves Chibon <pingou@pingoured.fr> - 2.4.3-1
|
|
|
|
- Update to 2.4.3
|
|
|
|
|
2010-05-21 02:52:04 +00:00
|
|
|
* Fri May 21 2010 Hui Wang <huwang@redhat.com> - 2.2-6
|
|
|
|
- delete duplicate maven2-plugin-jar
|
|
|
|
- delete source1
|
|
|
|
|
2010-05-20 07:14:51 +00:00
|
|
|
* Tue May 20 2010 Hui Wang <huwang@redhat.com> - 2.2-5
|
|
|
|
- Add maven-resources-plugin-demap.xml
|
|
|
|
- Set maven test ignore
|
|
|
|
|
|
|
|
* Wed May 19 2010 Hui Wang <huwang@redhat.com> - 2.2-4
|
|
|
|
- Add missing obsoletes/provides
|
|
|
|
|
|
|
|
* Wed May 19 2010 Hui Wang <huwang@redhat.com> - 2.2-3
|
|
|
|
- Add missing BR:maven-shared-reporting-impl
|
|
|
|
|
2010-05-19 03:48:13 +00:00
|
|
|
* Mon May 17 2010 Hui Wang <huwang@redhat.com> - 2.2-2
|
|
|
|
- Fixed install -pm 644 pom.xml
|
2010-05-20 07:14:51 +00:00
|
|
|
|
2010-05-19 03:48:13 +00:00
|
|
|
* Thu May 13 2010 Hui Wang <huwang@redhat.com> - 2.2-1
|
2010-09-09 07:53:35 +00:00
|
|
|
- Initial version of the package
|