rpms/maven-shade-plugin/devel import.log, NONE, 1.1 maven-shade-plugin.depmap, NONE, 1.1 maven-shade-plugin.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Stanislav Ochotnicky sochotni at fedoraproject.org
Tue Jul 13 08:25:51 UTC 2010


Author: sochotni

Update of /cvs/pkgs/rpms/maven-shade-plugin/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv9626/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log maven-shade-plugin.depmap maven-shade-plugin.spec 
Log Message:
Initial import of maven-shade-plugin



--- NEW FILE import.log ---
maven-shade-plugin-1_3_3-2_fc13:HEAD:maven-shade-plugin-1.3.3-2.fc13.src.rpm:1279009483


--- NEW FILE maven-shade-plugin.depmap ---
<dependencies>
  <dependency>
      <maven>
        <groupId>asm</groupId>
        <artifactId>asm-commons</artifactId>
        <version>3.2</version>
      </maven>
      <jpp>
        <groupId>JPP/objectweb-asm</groupId>
        <artifactId>asm-commons</artifactId>
        <version>3.2</version>
      </jpp>
  </dependency>
  <dependency>
      <maven>
        <groupId>asm</groupId>
        <artifactId>asm</artifactId>
        <version>3.2</version>
      </maven>
      <jpp>
        <groupId>JPP/objectweb-asm</groupId>
        <artifactId>asm</artifactId>
        <version>3.2</version>
      </jpp>
  </dependency>
  <dependency>
      <maven>
        <groupId>asm</groupId>
        <artifactId>asm-tree</artifactId>
        <version>3.2</version>
      </maven>
      <jpp>
        <groupId>JPP/objectweb-asm</groupId>
        <artifactId>asm-tree</artifactId>
        <version>3.2</version>
      </jpp>
  </dependency>
</dependencies>


--- NEW FILE maven-shade-plugin.spec ---
Name:           maven-shade-plugin
Version:        1.3.3
Release:        2%{?dist}
Summary:        This plugin provides the capability to package the artifact in an uber-jar

Group:          Development/Libraries
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/%{name}
# svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-shade-plugin-1.3.3
# tar caf maven-shade-plugin-1.3.3.tar.xz maven-shade-plugin-1.3.3
Source0:        %{name}-%{version}.tar.xz 
Source1:        %{name}.depmap
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch: noarch

BuildRequires: java-devel >= 1:1.6.0
BuildRequires: jpackage-utils
BuildRequires: plexus-utils
BuildRequires: ant-nodeps
BuildRequires: maven2
BuildRequires: maven-wagon
BuildRequires: maven-enforcer-plugin
BuildRequires: plexus-container-default
BuildRequires: maven-install-plugin
BuildRequires: maven-compiler-plugin
BuildRequires: maven-plugin-plugin
BuildRequires: maven-resources-plugin
BuildRequires: maven-surefire-maven-plugin
BuildRequires: maven-surefire-provider-junit
BuildRequires: maven-jar-plugin
BuildRequires: maven-javadoc-plugin
BuildRequires: maven-shared-plugin-testing-harness
Requires: ant-nodeps
Requires: maven2
Requires: jpackage-utils
Requires: java >= 1:1.6.0
Requires(post): jpackage-utils
Requires(postun): jpackage-utils 

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

%description
This plugin provides the capability to package the artifact in an
uber-jar, including its dependencies and to shade - i.e. rename - the
packages of some of the dependencies.


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

%description javadoc
%{summary}.


%prep
%setup -q #You may need to update this according to your Source0
rm src/test/jars/plexus-utils-1.4.1.jar
ln -s $(build-classpath plexus/utils) src/test/jars/plexus-utils-1.4.1.jar

%build
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL
# we skip test because even with binary mvn release these fail for
# various reasons.
mvn-jpp -e \
        -Dmaven2.jpp.mode=true \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        -Dmaven2.jpp.depmap.file="%{SOURCE1}" \
        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)

# poms
install -Dpm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom

%add_to_maven_depmap org.apache.maven.plugins %{name} %{version} JPP %{name}

# javadoc
install -dm 755 %{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
* Thu Jul  8 2010 Stanislav Ochotnicky <sochotnicky at redhat.com> - 1.3.3-2
- Replace plexus utils jar with symlink
- Create MAVEN_REPO_LOCAL dir before calling maven

* Tue Jun 22 2010 Stanislav Ochotnicky <sochotnicky at redhat.com> - 1.3.3-1
- Initial package


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/maven-shade-plugin/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	12 Jul 2010 17:31:16 -0000	1.1
+++ .cvsignore	13 Jul 2010 08:25:50 -0000	1.2
@@ -0,0 +1 @@
+maven-shade-plugin-1.3.3.tar.xz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/maven-shade-plugin/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	12 Jul 2010 17:31:16 -0000	1.1
+++ sources	13 Jul 2010 08:25:51 -0000	1.2
@@ -0,0 +1 @@
+46dd6e20eeaaef244fd8476c1c4f8858  maven-shade-plugin-1.3.3.tar.xz



More information about the scm-commits mailing list