[Jpackage-commits] dist/maven-install-plugin/devel .cvsignore, 1.1, 1.2 maven-install-plugin-jpp-depmap.xml, NONE, 1.1 maven-install-plugin.spec, NONE, 1.1 pom.patch, NONE, 1.1 sources, 1.1, 1.2

David Walluck david at ryu.zarb.org
Wed Oct 12 22:54:39 CEST 2011


Update of /home/projects/jpackage/cvs/dist/maven-install-plugin/devel
In directory ryu.zarb.org:/tmp/cvs-serv7453/devel

Modified Files:
	.cvsignore sources 
Added Files:
	maven-install-plugin-jpp-depmap.xml maven-install-plugin.spec 
	pom.patch 
Log Message:
- intiail import

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/maven-install-plugin/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	12 Oct 2011 20:54:01 -0000	1.1
--- .cvsignore	12 Oct 2011 20:54:37 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ maven-install-plugin-2.3.1.tar.bz2

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/maven-install-plugin/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	12 Oct 2011 20:54:01 -0000	1.1
--- sources	12 Oct 2011 20:54:37 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 0650a524c0bcabc52f726429dbd81687  maven-install-plugin-2.3.1.tar.bz2

--- NEW FILE: maven-install-plugin-jpp-depmap.xml ---
<dependencies>
	<dependency>
	  <maven>
		<groupId>commons-codec</groupId>
		<artifactId>commons-codec</artifactId>
	  </maven>
	  <jpp>
		<groupId>JPP</groupId>
		<artifactId>commons-codec</artifactId>
	  </jpp>
	</dependency>
</dependencies>
--- NEW FILE: maven-install-plugin.spec ---
Name:           maven-install-plugin
Version:        2.3.1
Release:        1%{?dist}
Summary:        Maven Install Plugin

Group:          Development/Libraries
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-install-plugin
# svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-install-plugin-2.3.1 && tar cjf maven-install-plugin-2.3.1.tar.bz2 maven-install-plugin-2.3.1/
Source0:        %{name}-%{version}.tar.bz2
#Remove this when maven-plugin-testing is ready
Source1:        %{name}-jpp-depmap.xml
Patch0:        pom.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch

BuildRequires: java-devel >= 1:1.6.0
BuildRequires: maven2
BuildRequires: maven2-common-poms
BuildRequires: maven-plugin-plugin
BuildRequires: maven-compiler-plugin
BuildRequires: maven-install-plugin
BuildRequires: maven-jar-plugin
BuildRequires: maven-javadoc-plugin
BuildRequires: maven-resources-plugin
BuildRequires: maven-surefire-maven-plugin
BuildRequires: plexus-digest

Requires: maven2
Requires: jpackage-utils
Requires: java
Requires: plexus-digest
Requires(post):       jpackage-utils
Requires(postun):     jpackage-utils

Provides:       maven2-plugin-install = %{version}-%{release}
Obsoletes:      maven2-plugin-install <= 0:2.0.8

%description
Copies the project artifacts to the user's local repository.

%package javadoc
Group:          Documentation
Summary:        Javadoc for %{name}
Requires:       jpackage-utils

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n %{name}-%{version}

#Add dependency of wagon-provider-api
%patch0 -p0

%build
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mvn-jpp \
        -e \
        -Dmaven2.jpp.mode=true \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        -Dmaven2.jpp.depmap.file=%{SOURCE1} \
        -Dmaven.test.skip=true \
        install javadoc:javadoc

%install
rm -rf %{buildroot}

# jars
install -Dpm 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-install-plugin %{version} JPP maven-install-plugin

# poms
install -Dpm 644 pom.xml %{buildroot}%{_datadir}/maven2/poms/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}

%post
%update_maven_depmap

%postun
%update_maven_depmap

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_javadir}/*
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*

%files javadoc
%defattr(-,root,root,-)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}

%changelog
* Mon Sep 19 2011 David Walluck <dwalluck at redhat.com> 2.3.1-1
- 2.3.1

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

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

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

* Fri May 21 2010 Alexander Kurtakov <akurtako at redhat.com> 2.3-7
- BR: plexus-digest.

* Fri May 21 2010 Alexander Kurtakov <akurtako at redhat.com> 2.3-6
- Requires: plexus-digest.

* Wed May 19 2010 Hui Wang <huwang at redhat.com> - 2.3-5
- Added missing BR : maven-shared-reporting-impl

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

* Wed May 19 2010 Hui Wang <huwang at redhat.com> - 2.3-3
- Added missing BR : maven-archiver

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

* Fri May 14 2010 Hui Wang <huwang at redhat.com> - 2.3-1
- Initial version of the package

--- NEW FILE: pom.patch ---
--- pom.xml.orig	2009-03-23 04:02:16.000000000 +0800
+++ pom.xml	2010-09-02 14:12:13.000000000 +0800
@@ -76,6 +76,10 @@
       <version>${mavenVersion}</version>
     </dependency>
     <dependency>
+      <groupId>org.apache.maven.wagon</groupId>
+      <artifactId>wagon-provider-api</artifactId>
+    </dependency>
+    <dependency>
       <groupId>org.apache.maven</groupId>
       <artifactId>maven-artifact</artifactId>
       <version>${mavenVersion}</version>




More information about the JPackage-commits mailing list