rpms/buildnumber-maven-plugin/devel buildnumber-maven-plugin-depmap.xml, NONE, 1.1 buildnumber-maven-plugin-pom.patch, NONE, 1.1 buildnumber-maven-plugin.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Weinan Li
weli at fedoraproject.org
Fri May 28 06:06:25 UTC 2010
Author: weli
Update of /cvs/pkgs/rpms/buildnumber-maven-plugin/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv23324/devel
Modified Files:
.cvsignore sources
Added Files:
buildnumber-maven-plugin-depmap.xml
buildnumber-maven-plugin-pom.patch
buildnumber-maven-plugin.spec import.log
Log Message:
* Thu May 27 2010 Weinan Li <weli at redhat.com> - 1.0-0.4.b4
- License.txt and Readme.txt added as %doc
* Thu May 27 2010 Weinan Li <weli at redhat.com> - 1.0-0.3.b4
- Fix javadoc dangling-relative-symlink
* Wed May 26 2010 Weinan Li <weli at redhat.com> - 1.0-0.2.b4
- Add requires on jpackage-utils for javadoc subpackage
- Add standard jpackage-utils requires on main package
- Use global instead of define
- Fix license to MIT
- fix incoherent-version-in-changelog
* Mon May 24 2010 Weinan Li <weli at redhat.com> - 1.0-0.1.b4
- Initial package
--- NEW FILE buildnumber-maven-plugin-depmap.xml ---
<dependencies>
<!-- Below are entries for packages in Brew that still don't have POMs.
This will be fixed with time by the Third-Party project. -->
<dependency>
<maven>
<groupId>org.tmatesoft.svnkit</groupId>
<artifactId>svnkit</artifactId>
<version>1.3.1-1</version>
</maven>
<jpp>
<groupId>JPP</groupId>
<artifactId>svnkit</artifactId>
<version>1.3.2</version>
</jpp>
</dependency>
<dependency>
<maven>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>3.2.2</version>
</maven>
<jpp>
<groupId>JPP</groupId>
<artifactId>jna</artifactId>
<version>3.2.4</version>
</jpp>
</dependency>
</dependencies>
buildnumber-maven-plugin-pom.patch:
pom.xml | 13 -------------
1 file changed, 13 deletions(-)
--- NEW FILE buildnumber-maven-plugin-pom.patch ---
--- pom.xml.orig 2010-05-24 11:42:25.000000000 +0800
+++ pom.xml 2010-05-24 12:48:45.000000000 +0800
@@ -134,17 +134,6 @@
<version>${maven.scm.version}</version>
</dependency>
<dependency>
- <groupId>com.google.code.maven-scm-provider-svnjava</groupId>
- <artifactId>maven-scm-provider-svnjava</artifactId>
- <version>1.8</version>
- <exclusions>
- <exclusion>
- <groupId>org.tmatesoft.svnkit</groupId>
- <artifactId>svnkit</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>1.5.6</version>
@@ -169,7 +158,6 @@
</dependencies>
<build>
-
<pluginManagement>
<plugins>
<plugin>
@@ -206,7 +194,6 @@
<execution>
<id>integration-test</id>
<goals>
- <goal>install</goal>
<goal>run</goal>
</goals>
</execution>
--- NEW FILE buildnumber-maven-plugin.spec ---
%global project_version 1.0-beta-4
Name: buildnumber-maven-plugin
Version: 1.0
Release: 0.4.b4%{?dist}
Summary: Build Number Maven Plugin
Group: Development/Libraries
License: MIT
# svn export http://svn.codehaus.org/mojo/tags/buildnumber-maven-plugin-1.0-beta-4 buildnumber-maven-plugin
URL: http://svn.codehaus.org/mojo/tags/buildnumber-maven-plugin-1.0-beta-4
# tar czf buildnumber-maven-plugin-1.0-beta-4.tgz buildnumber-maven-plugin
Source0: buildnumber-maven-plugin-1.0-beta-4.tgz
Source1: %{name}-depmap.xml
Patch0: %{name}-pom.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
# Basic stuff
BuildRequires: jpackage-utils
BuildRequires: java-devel >= 1:1.6.0
# Maven and its dependencies
BuildRequires: maven2
BuildRequires: maven-plugin-plugin
BuildRequires: maven2-plugin-idea
BuildRequires: maven2-plugin-resources
BuildRequires: maven-compiler-plugin
BuildRequires: maven-install-plugin
BuildRequires: maven2-plugin-changes
BuildRequires: maven2-plugin-javadoc
BuildRequires: maven-jar-plugin
BuildRequires: maven2-plugin-enforcer
BuildRequires: maven2-plugin-invoker
BuildRequires: maven-doxia
BuildRequires: maven-doxia-tools
BuildRequires: maven-doxia-sitetools
BuildRequires: maven-surefire-provider-junit
BuildRequires: maven-surefire-maven-plugin
BuildRequires: maven-plugin-cobertura
BuildRequires: svnkit
BuildRequires: jna
Requires: java
Requires: maven2
Requires: jpackage-utils
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
%description
This mojo is designed to get a unique build number for each time you build
your project. So while your version may remain constant at 1.0-SNAPSHOT
for many iterations until release, you will have a build number that can
uniquely identify each build during that time. The build number is obtained
from scm, and in particular, at this time, from svn. You can then place that
build number in metadata, which can be accessed from your app, if desired.
The mojo also has a couple of extra functions to ensure you get the proper
build number. First, your local repository is checked to make sure it is
up to date. Second, your local repository is automatically updated, so that
you get the latest build number. Both these functions can be suppressed,
if desired.
Optionally, you can configure this mojo to produce a revision based on a
timestamp, or on a sequence, without requiring any interaction with an
SCM system. Note that currently, the only supported SCM is subversion.
%package javadoc
Group: Documentation
Summary: Javadoc for %{name}
Requires: jpackage-utils
%description javadoc
API documentation for %{name}.
%prep
%setup -q -n %{name}
%patch0 -p0
%build
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
# The depmap is used by the mvn-jpp command to convert dependencies
# to the locations and versions that are available (if needed)
cp %{SOURCE1} %{name}-depmap.xml
export MAVEN_DEPMAP=$(pwd)/%{name}-depmap.xml
mvn-jpp \
-e \
-Dmaven2.jpp.mode=true \
-Dmaven2.jpp.depmap.file=${MAVEN_DEPMAP} \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
install javadoc:javadoc
%install
rm -rf %{buildroot}
# jars
install -d -m 0755 %{buildroot}%{_javadir}
install -m 644 target/%{name}-%{project_version}.jar %{buildroot}%{_javadir}/%{name}-%{project_version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{project_version}*; \
do ln -sf ${jar} `echo $jar| sed "s|-%{project_version}||g"`; done)
%add_to_maven_depmap org.codehaus.mojo buildnumber-maven-plugin %{project_version} JPP buildnumber-maven-plugin
# poms
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml \
%{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
# javadoc
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{project_version}
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{project_version}/
ln -s %{name}-%{project_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,-)
%doc LICENSE.txt README.TXT
%{_javadir}/*
%{_mavenpomdir}/*
%{_mavendepmapfragdir}/*
%files javadoc
%defattr(-,root,root,-)
%{_javadocdir}/%{name}-%{project_version}
%{_javadocdir}/%{name}
%changelog
* Thu May 27 2010 Weinan Li <weli at redhat.com> - 1.0-0.4.b4
- License.txt and Readme.txt added as %doc
* Thu May 27 2010 Weinan Li <weli at redhat.com> - 1.0-0.3.b4
- Fix javadoc dangling-relative-symlink
* Wed May 26 2010 Weinan Li <weli at redhat.com> - 1.0-0.2.b4
- Add requires on jpackage-utils for javadoc subpackage
- Add standard jpackage-utils requires on main package
- Use global instead of define
- Fix license to MIT
- fix incoherent-version-in-changelog
* Mon May 24 2010 Weinan Li <weli at redhat.com> - 1.0-0.1.b4
- Initial package
--- NEW FILE import.log ---
buildnumber-maven-plugin-1_0-0_4_b4:HEAD:buildnumber-maven-plugin-1.0-0.4.b4.src.rpm:1275026711
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/buildnumber-maven-plugin/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 27 May 2010 22:52:22 -0000 1.1
+++ .cvsignore 28 May 2010 06:06:21 -0000 1.2
@@ -0,0 +1 @@
+buildnumber-maven-plugin-1.0-beta-4.tgz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/buildnumber-maven-plugin/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 27 May 2010 22:52:22 -0000 1.1
+++ sources 28 May 2010 06:06:23 -0000 1.2
@@ -0,0 +1 @@
+1a5bcd4e71be79c18e9d7978e85e43ba buildnumber-maven-plugin-1.0-beta-4.tgz
More information about the scm-commits
mailing list