Blame SPECS/buildnumber-maven-plugin.spec

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