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

jpackage jpackage at ryu.zarb.org
Sat Oct 15 03:23:48 CEST 2011


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

Added Files:
	maven-assembly-plugin.spec 
Log Message:
2.2-1_beta_5.jpp6

--- NEW FILE: maven-assembly-plugin.spec ---
%define reltag _beta_5
%define namedreltag -beta-5
%global namedversion %{version}%{?namedreltag}

Name:           maven-assembly-plugin
Version:        2.2
Release:        1%{?reltag}%{?dist}
Epoch:          0
Summary:        Maven Assembly Plugin
Group:          Development/Java
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-beta-5 && tar cjf maven-assembly-plugin-2.2-beta-5.tar.bz2 maven-assembly-plugin-2.2-beta-5
Source0:        %{name}-%{namedversion}.tar.bz2
Obsoletes:      maven2-plugin-assembly <= 0:2.0.8
Provides:       maven2-plugin-assembly = %{epoch}:%{version}-%{release}
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
Requires:       maven-archiver >= 0:2.4
Requires:       maven2 >= 0:2.0.4
Requires:       maven-shared-file-management >= 0:1.1
Requires:       maven-shared-common-artifact-filters >= 0:1.1
# XXX: 1.0-beta-2
Requires:       maven-shared-filtering >= 0:1.0
# XXX: 1.0-alpha-2
Requires:       maven-shared-repository-builder >= 0:1.0
Requires:       maven-shared-io >= 0:1.1
# XXX: 1.0-beta-2
Requires:       plexus-active-collections >= 0:1.0
# XXX: 1.0-alpha-12
Requires:       plexus-archiver >= 0:1.0
# XXX: 1.0-alpha-9-stable-1
Requires:       plexus-container-default >= 0:1.0
Requires:       plexus-interpolation >= 0:1.7
# XXX: 2.0.1
Requires:       plexus-utils >= 0:1.5.15
BuildRequires:  easymock-classextension >= 0:1.2
# XXX: 1.0-FCS
BuildRequires:  jaxen >= 0:1.0
BuildRequires:  jdom >= 0:1.0
BuildRequires:  junit >= 0:3.8.1
BuildRequires:  maven-archiver >= 0:2.4
BuildRequires:  maven2 >= 0:2.0.4
BuildRequires:  maven-shared-file-management >= 0:1.1
BuildRequires:  maven-shared-common-artifact-filters >= 0:1.1
# XXX: 1.0-beta-2
BuildRequires:  maven-shared-filtering >= 0:1.0
# XXX: 1.0-alpha-1
BuildRequires:  maven-shared-plugin-testing-tools >= 0:1.0
# XXX: 1.0-alpha-2
BuildRequires:  maven-shared-repository-builder >= 0:1.0
BuildRequires:  maven-shared-io >= 0:1.1
# XXX: 1.0-alpha-1
BuildRequires:  maven-shared-test-tools >= 0:1.0
# XXX: 1.0-beta-2
BuildRequires:  plexus-active-collections >= 0:1.0
# XXX: 1.0-alpha-12
BuildRequires:  plexus-archiver >= 0:1.0
# XXX: 1.0-alpha-9-stable-1
BuildRequires:  plexus-container-default >= 0:1.0
BuildRequires:  plexus-interpolation >= 0:1.7
# XXX: 2.0.1
BuildRequires:  plexus-utils >= 0:1.5.15
# XXX: 1.0-FCS
BuildRequires:  saxpath >= 0:1.0
BuildRequires:  modello-maven-plugin >= 0:1.0
BuildRequires:  plexus-maven-plugin >= 0:1.3.8
BuildRequires:  java-devel
BuildRequires:  jpackage-utils
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
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%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

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n maven-assembly-plugin-%{namedversion}

mkdir -p target/classes/
cp -pr src/main/resources/META-INF/ target/classes/

perl -pi -e 's|<maven>.*</maven>|<maven>2.0.8</maven>|;' pom.xml

%build
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mvn-jpp -e -Dmaven.repo.local=$MAVEN_REPO_LOCAL -Dmaven.test.failure.ignore install javadoc:javadoc

%install
rm -rf %{buildroot}

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

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

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

%post
%update_maven_depmap

%postun
%update_maven_depmap

%clean
rm -rf %{buildroot}

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

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

%changelog
* Fri Sep 16 2011 David Walluck <dwalluck at redhat.com> 2.2-1_beta_5
- fix for JPackage

* 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




More information about the JPackage-commits mailing list