Blame SPECS/buildnumber-maven-plugin.spec

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