[Jpackage-commits] rpms/free/maven-resources-plugin maven-resources-plugin.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Thu Oct 13 21:56:37 CEST 2011


Update of /home/projects/jpackage/cvs/rpms/free/maven-resources-plugin
In directory ryu.zarb.org:/tmp/yWMG9vbLed/rpms/free/maven-resources-plugin

Added Files:
	maven-resources-plugin.spec 
Log Message:
2.4.2-1.jpp6

--- NEW FILE: maven-resources-plugin.spec ---
Name:           maven-resources-plugin
Version:        2.4.2
Release:        1%{?dist}
Epoch:          0
Summary:        Maven Resources Plugin
Group:          Development/Java
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-resources-plugin
# svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-resources-plugin-2.4.2 && tar cjf maven-resources-plugin-2.4.2.tar.bz2 maven-resources-plugin-2.4.2
Source0:        maven-resources-plugin-2.4.2.tar.bz2
Obsoletes:      maven2-plugin-resources <= 0:2.0.8
Provides:       maven2-plugin-resources = %{epoch}:%{version}-%{release}
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
Requires:       maven-shared-plugin-testing-harness
Requires:       maven2
Requires:       jpackage-utils
BuildRequires:  java-devel
BuildRequires:  jpackage-utils
BuildRequires:  maven2
BuildRequires:  maven2-common-poms 
BuildRequires:  maven2-plugin-plugin
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven-surefire-maven-plugin
BuildRequires:  maven-surefire-provider-junit
BuildRequires:  maven-shared-plugin-testing-harness
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%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

%build
export LC_ALL=en_US.UTF-8
export MAVEN_REPO_LOCAL=`pwd`/.m2/repository
export ALT_DEPLOYMENT_REPOSITORY=oss-releases::default::file:`pwd`/maven2-brew
export MAVEN_OPTS="-Xms1g -Xmx1g -XX:MaxPermSize=128m -Xss1m -Dproject.build.sourceEncoding=UTF-8 -Dfile.encoding=UTF-8"
%{_bindir}/mvn-jpp -e -Dmaven.repo.local=${MAVEN_REPO_LOCAL} -DaltDeploymentRepository=${ALT_DEPLOYMENT_REPOSITORY} deploy javadoc:javadoc

%install
rm -rf %{buildroot}

# jars
install -Dpm 644 target/maven-resources-plugin-%{version}.jar %{buildroot}%{_javadir}/maven-resources-plugin-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -s ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# poms
install -Dpm 644 pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP-maven-resources-plugin.pom
%add_to_maven_depmap org.apache.maven.plugins maven-resources-plugin %{version} JPP maven-resources-plugin

# javadoc
install -d -m 0755 %{buildroot}%{_javadocdir}/maven-resources-plugin-%{version}
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/maven-resources-plugin-%{version}/
ln -s maven-resources-plugin-%{version} %{buildroot}%{_javadocdir}/maven-resources-plugin

%post
%update_maven_depmap

%postun
%update_maven_depmap

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%{_javadir}*/maven-resources-plugin-%{version}.jar
%{_javadir}*/maven-resources-plugin.jar
%{_datadir}/maven2/poms/JPP-maven-resources-plugin.pom
%{_mavendepmapfragdir}/%{name}

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/maven-resources-plugin-%{version}
%{_javadocdir}/maven-resources-plugin

%changelog
* Wed Dec 08 2010 David Walluck <dwalluck at redhat.com> 2.4.2-1
- 2.4.2

* Wed Dec 08 2010 David Walluck <dwalluck at redhat.com> 2.3-1
- 2.3

* Tue Sep 28 2010 Hui Wang <huwang at redhat.com> - 2.2-9
- Adjust BRs

* Thu Sep 02 2010 Hui Wang <huwang at redhat.com> - 2.2-8
- Rebuild with maven221
- Add pom.patch

* Wed Jul 21 2010 Hui Wang <huwang at redhat.com> - 2.2-7
- Fixed mavenpomdir
- Updated BRs
- Added depmap

* Fri May 21 2010 Hui Wang <huwang at redhat.com> - 2.2-6
- delete duplicate maven2-plugin-jar
- delete source1

* Tue May 20 2010 Hui Wang <huwang at redhat.com> - 2.2-5
- Add maven-resources-plugin-demap.xml 
- Set maven test ignore

* Wed May 19 2010 Hui Wang <huwang at redhat.com> - 2.2-4
- Add missing obsoletes/provides

* Wed May 19 2010 Hui Wang <huwang at redhat.com> - 2.2-3
- Add missing BR:maven-shared-reporting-impl

* Mon May 17 2010 Hui Wang <huwang at redhat.com> - 2.2-2
- Fixed install -pm 644 pom.xml

* Thu May 13 2010 Hui Wang <huwang at redhat.com> - 2.2-1
- Initial version of the package




More information about the JPackage-commits mailing list