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

David Walluck david at ryu.zarb.org
Wed Oct 12 22:50:56 CEST 2011


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

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

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/maven-assembly-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:50:11 -0000	1.1
--- .cvsignore	12 Oct 2011 20:50:54 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ maven-assembly-plugin-2.2.1.tar.bz2

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/maven-assembly-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:50:11 -0000	1.1
--- sources	12 Oct 2011 20:50:54 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 837c879d7162dbd1e0252a44e043d1e4  maven-assembly-plugin-2.2.1.tar.bz2

--- NEW FILE: maven-assembly-plugin.spec ---
%global project_version %{version}

Name:           maven-assembly-plugin
Version:        2.2.1
Release:        1%{?dist}
Summary:        Maven Assembly Plugin

Group:          Development/Libraries
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-assembly-plugin/
# svn export -r 1171819 http://svn.apache.org/repos/asf/maven/plugins/tags/maven-assembly-plugin-2.2.1 && tar cjf maven-assembly-plugin-2.2.1.tar.bz2 maven-assembly-plugin-2.2.1
Source0:        %{name}-%{project_version}.tar.bz2
Source1:        %{name}-jpp-depmap.xml
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch

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

BuildRequires:  java-devel >= 1:1.6.0
BuildRequires:  ant, ant-nodeps
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:  maven-shared-filtering

BuildRequires: plexus-container-default
BuildRequires: plexus-utils
BuildRequires: plexus-active-collections
BuildRequires: plexus-maven-plugin
BuildRequires: plexus-io
BuildRequires: plexus-interpolation
BuildRequires: plexus-archiver >= 0:1.1

BuildRequires: maven-shared-file-management
BuildRequires: maven-shared-repository-builder
BuildRequires: maven-shared-filtering

BuildRequires: easymock
BuildRequires: jdom
BuildRequires: jaxen
# FIXME: should be in the Requires for jaxen
BuildRequires: xom
BuildRequires: saxpath
BuildRequires: junit
BuildRequires: easymock-classextension2

Requires: java >= 1:1.6.0
Requires: easymock
Requires: jdom
Requires: jaxen
# FIXME: should be in the Requires for jaxen
Requires: xom
Requires: saxpath
Requires: plexus-container-default
Requires: plexus-utils
Requires: plexus-active-collections
Requires: plexus-maven-plugin
Requires: plexus-io
Requires: plexus-interpolation
Requires: plexus-archiver >= 0:1.1
Requires: maven-shared-repository-builder
Requires: maven-shared-filtering

Requires:          jpackage-utils
Requires(post):    jpackage-utils
Requires(postun):  jpackage-utils

%description
A Maven 2 plugin to create archives of your project's sources, classes, 
dependencies etc. from flexible assembly descriptors.

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

%description javadoc
API documentation for %{name}.


%prep
%setup -q -n %{name}-%{project_version}
mkdir -p target/classes/
cp -pr src/main/resources/META-INF/ target/classes/

%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}-%{project_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-assembly-plugin %{version} JPP maven-assembly-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
* Fri Sep 16 2011 David Walluck <dwalluck at redhat.com> 2.2.1-1
- 2.2.1
- (Build)Requires: plexus-archiver >= 0:1.1

* Tue Sep 28 2010 Hui Wang <huwnag at redhat.com> - 2.2-0.7.beta5
- Adjust BRs

* Thu Sep 02 2010 Hui Wang <huwnag at redhat.com> - 2.2-0.6.beta5
- Rebuild with maven221
- Enable javadoc

* Sun Jul 25 2010 Hui Wang <huwang at redhat.com> - 2.2-0.5.beta5
- Fix mavenpomdir
- Add easymockclassextension and qdox jpp depmap

* Tue Jun 15 2010 Alexander Kurtakov <akurtako at redhat.com> 2.2-0.4.beta5
- Add missing BuildRequires.

* Tue Jun 15 2010 Alexander Kurtakov <akurtako at redhat.com> 2.2-0.3.beta5
- Add missing Requires.

* Thu Jun 03 2010 Yong Yang <yyang at redhat.com> - 2.2-0.2.beta5
- Chmod 0644 for depmap.xml
- Fix Obsoletes and Provides
- Change to BR java

* Thu May 20 2010 Yong Yang <yyang at redhat.com> - 2.2-0.1.beta5
- Initial build

--- NEW FILE: maven-assembly-plugin-jpp-depmap.xml ---
<dependencies>
    <dependency>
        <maven>
          <groupId>easymock</groupId>
          <artifactId>easymockclassextension</artifactId>
          <version>1.2</version>
        </maven>
        <jpp>
          <groupId>JPP</groupId>
          <artifactId>easymockclassextension2</artifactId>
          <version>2.3</version>
        </jpp>
    </dependency>
    <dependency>
        <maven>
          <groupId>commons-codec</groupId>
          <artifactId>commons-codec</artifactId>
        </maven>
        <jpp>
          <groupId>JPP</groupId>
          <artifactId>commons-codec</artifactId>
        </jpp>
    </dependency>
    <dependency>
        <maven>
          <groupId>apache-xerces</groupId>
          <artifactId>xml-apis</artifactId>
          <version>2.9.1-patch-01</version>
        </maven>
        <jpp>
          <groupId>JPP</groupId>
          <artifactId>xml-commons-jaxp-1.3-apis</artifactId>
          <version>1.3.04</version>
        </jpp>
    </dependency>
</dependencies>




More information about the JPackage-commits mailing list