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

David Walluck david at ryu.zarb.org
Wed Oct 12 22:52:07 CEST 2011


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

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

--- NEW FILE: maven-clean-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>
Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/maven-clean-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:51:34 -0000	1.1
--- sources	12 Oct 2011 20:52:05 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 4adbf8bf3749d475f90eb73a5cf8f1e9  maven-clean-plugin-2.4.1.tar.bz2

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/maven-clean-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:51:34 -0000	1.1
--- .cvsignore	12 Oct 2011 20:52:05 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ maven-clean-plugin-2.4.1.tar.bz2

--- NEW FILE: maven-clean-plugin.spec ---
Name:           maven-clean-plugin
Version:        2.4.1
Release:        5%{?dist}
Summary:        Maven Clean Plugin

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

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: maven-shared-plugin-testing-harness
Requires: maven2
Requires:       jpackage-utils
Requires:       java
Requires(post):       jpackage-utils
Requires(postun):     jpackage-utils


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

%description
The Maven Clean Plugin is a plugin that removes files generated 
at build-time in a project's directory.

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

%description javadoc
API documentation for %{name}.


%prep
%setup -q 

%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-clean-plugin %{version} JPP maven-clean-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}
rm -rf target/site/api*

%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
* Tue Sep 28 2010 Hui Wang <huwang at redhat.com> - 2.4.1-5
- Adjust BRs

* Thu Sep 02 2010 Hui Wang <huwang at redhat.com> - 2.4.1-4
- Add jpp depmap file
- Rebuild with maven221

* Wed Jul 21 2010 Hui Wang <huwang at redhat.com> - 2.4.1-3
- Fixed mavenpomdir
- Updated BRs
- Fixed source compression format

* Wed May 12 2010 Alexander Kurtakov <akurtako at redhat.com> 2.4.1-2
- Fix review comments.

* Wed May 12 2010 Alexander Kurtakov <akurtako at redhat.com> 2.4.1-1
- Initial package.




More information about the JPackage-commits mailing list