|
|
5ffa41c |
Name: buildnumber-maven-plugin
|
|
weli |
db0f874 |
Version: 1.2
|
|
Stanislav Ochotnicky |
16b7a07 |
Release: 2%{?dist}
|
|
|
5ffa41c |
Summary: Build Number Maven Plugin
|
|
|
5ffa41c |
|
|
|
5ffa41c |
Group: Development/Libraries
|
|
|
c8dbe79 |
License: MIT and ASL 2.0
|
|
weli |
db0f874 |
URL: http://svn.codehaus.org/mojo/tags/buildnumber-maven-plugin-1.2
|
|
|
5ffa41c |
|
|
weli |
db0f874 |
# svn export http://svn.codehaus.org/mojo/tags/buildnumber-maven-plugin-1.2 buildnumber-maven-plugin
|
|
weli |
db0f874 |
# tar caf buildnumber-maven-plugin-1.2.tar.xz buildnumber-maven-plugin
|
|
weli |
db0f874 |
Source0: buildnumber-maven-plugin-1.2.tar.xz
|
|
Stanislav Ochotnicky |
b6a4842 |
Source1: %{name}-depmap.xml
|
|
|
c8dbe79 |
Source2: http://www.apache.org/licenses/LICENSE-2.0.txt
|
|
|
5ffa41c |
|
|
Stanislav Ochotnicky |
b6a4842 |
BuildArch: noarch
|
|
|
5ffa41c |
|
|
|
5ffa41c |
# Basic stuff
|
|
|
5ffa41c |
BuildRequires: jpackage-utils
|
|
|
5ffa41c |
BuildRequires: java-devel >= 1:1.6.0
|
|
|
5ffa41c |
|
|
|
5ffa41c |
# Maven and its dependencies
|
|
Stanislav Ochotnicky |
16b7a07 |
BuildRequires: maven-local
|
|
|
d33070c |
BuildRequires: maven2-common-poms
|
|
|
5ffa41c |
BuildRequires: maven-plugin-plugin
|
|
|
cf4c5a0 |
BuildRequires: maven-idea-plugin
|
|
|
cf4c5a0 |
BuildRequires: maven-resources-plugin
|
|
|
5ffa41c |
BuildRequires: maven-compiler-plugin
|
|
|
5ffa41c |
BuildRequires: maven-install-plugin
|
|
|
cf4c5a0 |
BuildRequires: maven-javadoc-plugin
|
|
|
5ffa41c |
BuildRequires: maven-jar-plugin
|
|
|
cf4c5a0 |
BuildRequires: maven-enforcer-plugin
|
|
|
cf4c5a0 |
BuildRequires: maven-invoker-plugin
|
|
|
5ffa41c |
BuildRequires: maven-doxia
|
|
|
5ffa41c |
BuildRequires: maven-doxia-tools
|
|
|
5ffa41c |
BuildRequires: maven-doxia-sitetools
|
|
|
5ffa41c |
BuildRequires: maven-surefire-provider-junit
|
|
|
cf9463d |
BuildRequires: maven-surefire-plugin
|
|
|
5ffa41c |
BuildRequires: maven-plugin-cobertura
|
|
|
cf4c5a0 |
BuildRequires: plexus-containers-component-javadoc
|
|
Stanislav Ochotnicky |
85e31ae |
BuildRequires: plexus-containers-container-default
|
|
Stanislav Ochotnicky |
85e31ae |
BuildRequires: plexus-utils
|
|
|
5ffa41c |
BuildRequires: jna
|
|
Stanislav Ochotnicky |
4198fed |
BuildRequires: mojo-parent
|
|
Stanislav Ochotnicky |
85e31ae |
BuildRequires: maven-project
|
|
Stanislav Ochotnicky |
85e31ae |
BuildRequires: maven-scm
|
|
Stanislav Ochotnicky |
85e31ae |
|
|
|
5ffa41c |
|
|
|
5ffa41c |
Requires: java
|
|
|
cf9463d |
Requires: maven
|
|
Stanislav Ochotnicky |
85e31ae |
Requires: maven-project
|
|
Stanislav Ochotnicky |
85e31ae |
Requires: maven-scm
|
|
|
f80da2e |
Requires: jna
|
|
|
5ffa41c |
Requires: jpackage-utils
|
|
Stanislav Ochotnicky |
4198fed |
Requires: mojo-parent
|
|
Stanislav Ochotnicky |
85e31ae |
Requires: plexus-containers-container-default
|
|
Stanislav Ochotnicky |
85e31ae |
Requires: plexus-utils
|
|
|
5ffa41c |
|
|
|
5ffa41c |
%description
|
|
Stanislav Ochotnicky |
b6a4842 |
This mojo is designed to get a unique build number for each time you build
|
|
Stanislav Ochotnicky |
b6a4842 |
your project. So while your version may remain constant at 1.0-SNAPSHOT
|
|
Stanislav Ochotnicky |
b6a4842 |
for many iterations until release, you will have a build number that can
|
|
Stanislav Ochotnicky |
b6a4842 |
uniquely identify each build during that time. The build number is obtained
|
|
Stanislav Ochotnicky |
b6a4842 |
from scm, and in particular, at this time, from svn. You can then place that
|
|
|
5ffa41c |
build number in metadata, which can be accessed from your app, if desired.
|
|
|
5ffa41c |
|
|
Stanislav Ochotnicky |
b6a4842 |
The mojo also has a couple of extra functions to ensure you get the proper
|
|
Stanislav Ochotnicky |
b6a4842 |
build number. First, your local repository is checked to make sure it is
|
|
Stanislav Ochotnicky |
b6a4842 |
up to date. Second, your local repository is automatically updated, so that
|
|
Stanislav Ochotnicky |
b6a4842 |
you get the latest build number. Both these functions can be suppressed,
|
|
|
5ffa41c |
if desired.
|
|
|
5ffa41c |
|
|
Stanislav Ochotnicky |
b6a4842 |
Optionally, you can configure this mojo to produce a revision based on a
|
|
Stanislav Ochotnicky |
b6a4842 |
timestamp, or on a sequence, without requiring any interaction with an
|
|
|
5ffa41c |
SCM system. Note that currently, the only supported SCM is subversion.
|
|
|
5ffa41c |
|
|
|
5ffa41c |
|
|
|
5ffa41c |
%package javadoc
|
|
|
5ffa41c |
Group: Documentation
|
|
|
5ffa41c |
Summary: Javadoc for %{name}
|
|
|
5ffa41c |
Requires: jpackage-utils
|
|
|
5ffa41c |
|
|
|
5ffa41c |
%description javadoc
|
|
|
5ffa41c |
API documentation for %{name}.
|
|
|
5ffa41c |
|
|
|
5ffa41c |
%prep
|
|
|
5ffa41c |
%setup -q -n %{name}
|
|
|
c8dbe79 |
cp -p %{SOURCE2} .
|
|
|
5ffa41c |
|
|
|
b59e6aa |
%pom_remove_dep com.google.code.maven-scm-provider-svnjava:maven-scm-provider-svnjava
|
|
|
b59e6aa |
%pom_remove_dep org.tmatesoft.svnkit:svnkit
|
|
|
5ffa41c |
|
|
|
5ffa41c |
%build
|
|
Stanislav Ochotnicky |
b6a4842 |
|
|
Stanislav Ochotnicky |
b6a4842 |
# tests skipped due to invoker problems with local repository tests
|
|
Stanislav Ochotnicky |
b6a4842 |
mvn-rpmbuild -DskipTests=true \
|
|
|
6e96888 |
-Dmaven.test.skip=true \
|
|
|
b59e6aa |
-Dmaven.compile.target=1.5 \
|
|
|
b59e6aa |
install javadoc:aggregate
|
|
|
5ffa41c |
|
|
|
5ffa41c |
%install
|
|
|
5ffa41c |
|
|
|
5ffa41c |
# jars
|
|
|
5ffa41c |
install -d -m 0755 %{buildroot}%{_javadir}
|
|
Stanislav Ochotnicky |
b6a4842 |
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
5ffa41c |
|
|
|
5ffa41c |
|
|
|
5ffa41c |
# poms
|
|
|
5ffa41c |
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
|
5ffa41c |
install -pm 644 pom.xml \
|
|
|
5ffa41c |
%{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
5ffa41c |
|
|
Stanislav Ochotnicky |
85e31ae |
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
|
Stanislav Ochotnicky |
85e31ae |
|
|
|
5ffa41c |
# javadoc
|
|
Stanislav Ochotnicky |
b6a4842 |
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
Stanislav Ochotnicky |
b6a4842 |
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}
|
|
Stanislav Ochotnicky |
b6a4842 |
|
|
|
5ffa41c |
|
|
|
5ffa41c |
%files
|
|
|
c8dbe79 |
%doc LICENSE.txt LICENSE-2.0.txt
|
|
Stanislav Ochotnicky |
85e31ae |
%{_javadir}/%{name}.jar
|
|
Stanislav Ochotnicky |
85e31ae |
%{_mavenpomdir}/JPP-%{name}.pom
|
|
Stanislav Ochotnicky |
85e31ae |
%{_mavendepmapfragdir}/%{name}
|
|
|
5ffa41c |
|
|
|
5ffa41c |
%files javadoc
|
|
|
c8dbe79 |
%doc LICENSE.txt LICENSE-2.0.txt
|
|
|
5ffa41c |
%{_javadocdir}/%{name}
|
|
|
5ffa41c |
|
|
|
5ffa41c |
%changelog
|
|
Stanislav Ochotnicky |
16b7a07 |
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.2-2
|
|
Stanislav Ochotnicky |
16b7a07 |
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
Stanislav Ochotnicky |
16b7a07 |
- Replace maven BuildRequires with maven-local
|
|
Stanislav Ochotnicky |
16b7a07 |
|
|
weli |
db0f874 |
* Tue Jan 29 2013 David Xie <david.scriptfan@gmail.com> - 1.2-1
|
|
weli |
db0f874 |
- Upgrade to 1.2
|
|
weli |
db0f874 |
|
|
|
c8dbe79 |
* Thu Aug 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1-2
|
|
|
c8dbe79 |
- Install ASL 2.0 license
|
|
|
c8dbe79 |
- Remove rpm bug workaround
|
|
|
c8dbe79 |
|
|
|
b59e6aa |
* Wed Jul 25 2012 Tomas Radej <tradej@redhat.com> - 1.1-1
|
|
|
b59e6aa |
- Updated to latest upstream version
|
|
|
b59e6aa |
- Replaced patches with pom macros
|
|
|
b59e6aa |
|
|
|
6243aab |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-6
|
|
|
6243aab |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
6243aab |
|
|
Stanislav Ochotnicky |
3ad71dd |
* Fri Feb 10 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0-5
|
|
Stanislav Ochotnicky |
3ad71dd |
- Remove dependency on svnkit
|
|
Stanislav Ochotnicky |
3ad71dd |
|
|
|
dad66c3 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
|
|
|
dad66c3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
dad66c3 |
|
|
Stanislav Ochotnicky |
85e31ae |
* Thu Jun 30 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0-3
|
|
Stanislav Ochotnicky |
85e31ae |
- Add missing (Build)Requires
|
|
Stanislav Ochotnicky |
85e31ae |
- Use new add_maven_depmap macro
|
|
Stanislav Ochotnicky |
85e31ae |
|
|
|
cf9463d |
* Wed Jun 8 2011 Alexander Kurtakov <akurtako@redhat.com> 1.0-2
|
|
|
cf9463d |
- Do not require maven2.
|
|
|
cf9463d |
- Guidelines fixes.
|
|
|
cf9463d |
|
|
Stanislav Ochotnicky |
b6a4842 |
* Mon Apr 18 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0-1
|
|
Stanislav Ochotnicky |
b6a4842 |
- Update to latest upstream
|
|
Stanislav Ochotnicky |
b6a4842 |
- Build with maven 3
|
|
Stanislav Ochotnicky |
b6a4842 |
- Tweaks according to new guidelines
|
|
Stanislav Ochotnicky |
b6a4842 |
- Versionless jars & javadocs
|
|
Stanislav Ochotnicky |
b6a4842 |
|
|
|
675be08 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.11.b4
|
|
|
675be08 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
675be08 |
|
|
Stanislav Ochotnicky |
4198fed |
* Thu Nov 11 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0-0.10.b4
|
|
Stanislav Ochotnicky |
4198fed |
- Added mojo-parent to BR/R
|
|
Stanislav Ochotnicky |
4198fed |
|
|
|
cf4c5a0 |
* Wed Sep 1 2010 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.9.b4
|
|
|
cf4c5a0 |
- Fix build and use new maven plugins names.
|
|
|
cf4c5a0 |
|
|
|
d33070c |
* Thu Jun 17 2010 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.8.b4
|
|
|
d33070c |
- BR maven2-common-poms.
|
|
|
d33070c |
|
|
|
8c418f8 |
* Thu Jun 17 2010 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.7.b4
|
|
|
8c418f8 |
- Disable it-tests and changes plugin.
|
|
|
8c418f8 |
|
|
|
6e96888 |
* Thu Jun 17 2010 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.6.b4
|
|
|
6e96888 |
- Skip tests to be able to rebuild.
|
|
|
6e96888 |
|
|
|
f80da2e |
* Thu Jun 17 2010 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.5.b4
|
|
|
f80da2e |
- Add missing requires.
|
|
|
f80da2e |
|
|
|
5ffa41c |
* Thu May 27 2010 Weinan Li <weli@redhat.com> - 1.0-0.4.b4
|
|
|
5ffa41c |
- License.txt and Readme.txt added as %doc
|
|
|
5ffa41c |
|
|
|
5ffa41c |
* Thu May 27 2010 Weinan Li <weli@redhat.com> - 1.0-0.3.b4
|
|
|
5ffa41c |
- Fix javadoc dangling-relative-symlink
|
|
|
5ffa41c |
|
|
|
5ffa41c |
* Wed May 26 2010 Weinan Li <weli@redhat.com> - 1.0-0.2.b4
|
|
|
5ffa41c |
- Add requires on jpackage-utils for javadoc subpackage
|
|
|
5ffa41c |
- Add standard jpackage-utils requires on main package
|
|
|
5ffa41c |
- Use global instead of define
|
|
|
5ffa41c |
- Fix license to MIT
|
|
|
5ffa41c |
- fix incoherent-version-in-changelog
|
|
|
5ffa41c |
|
|
|
5ffa41c |
* Mon May 24 2010 Weinan Li <weli@redhat.com> - 1.0-0.1.b4
|
|
|
f80da2e |
- Initial package
|