Blame SPECS/maven-release.spec

4a15ab
%global pkg_name maven-release
4a15ab
%{?scl:%scl_package %{pkg_name}}
4a15ab
%{?maven_find_provides_and_requires}
4a15ab
4a15ab
Name:           %{?scl_prefix}%{pkg_name}
4a15ab
Version:        2.2.1
4a15ab
Release:        12.16%{?dist}
4a15ab
Summary:        Release a project updating the POM and tagging in the SCM
4a15ab
4a15ab
License:        ASL 2.0
4a15ab
URL:            http://maven.apache.org/plugins/maven-release-plugin/
4a15ab
Source0:        http://repo1.maven.org/maven2/org/apache/maven/release/%{pkg_name}/%{version}/%{pkg_name}-%{version}-source-release.zip
4a15ab
# Remove deps needed for tests, till jmock gets packaged
4a15ab
Patch1:         002-mavenrelease-fixbuild.patch
4a15ab
Patch2:         003-fixing-migration-to-component-metadata.patch
4a15ab
Patch3:         maven-release-MNG-3954.patch
4a15ab
4a15ab
BuildArch:      noarch
4a15ab
4a15ab
BuildRequires:  %{?scl_prefix_java_common}javapackages-tools
4a15ab
BuildRequires:  %{?scl_prefix}maven-local
4a15ab
BuildRequires:  %{?scl_prefix}maven-scm-test
4a15ab
BuildRequires:  %{?scl_prefix}maven-antrun-plugin
4a15ab
BuildRequires:  %{?scl_prefix}maven-jar-plugin
4a15ab
BuildRequires:  %{?scl_prefix}maven-javadoc-plugin
4a15ab
BuildRequires:  %{?scl_prefix}maven-source-plugin
4a15ab
BuildRequires:  %{?scl_prefix}maven-compiler-plugin
4a15ab
BuildRequires:  %{?scl_prefix}maven-install-plugin
4a15ab
BuildRequires:  %{?scl_prefix}maven-plugin-plugin
4a15ab
BuildRequires:  %{?scl_prefix}maven-resources-plugin
4a15ab
BuildRequires:  %{?scl_prefix}maven-site-plugin
4a15ab
BuildRequires:  %{?scl_prefix}maven-plugin-testing-harness
4a15ab
BuildRequires:  %{?scl_prefix}plexus-containers-component-metadata
4a15ab
BuildRequires:  %{?scl_prefix}plexus-utils
4a15ab
BuildRequires:  %{?scl_prefix}maven-surefire-plugin
4a15ab
BuildRequires:  %{?scl_prefix}maven-enforcer-plugin
4a15ab
BuildRequires:  %{?scl_prefix_java_common}jaxen
4a15ab
4a15ab
4a15ab
%description
4a15ab
This plugin is used to release a project with Maven, saving a lot of 
4a15ab
repetitive, manual work. Releasing a project is made in two steps: 
4a15ab
prepare and perform.
4a15ab
4a15ab
4a15ab
%package manager
4a15ab
Summary:        Release a project updating the POM and tagging in the SCM
4a15ab
Requires:       %{name} = %{version}-%{release}
4a15ab
4a15ab
%description manager
4a15ab
This package contains %{pkg_name}-manager needed by %{pkg_name}-plugin.
4a15ab
4a15ab
4a15ab
%package plugin
4a15ab
Summary:        Release a project updating the POM and tagging in the SCM
4a15ab
Requires:       %{name}-manager = %{version}-%{release}
4a15ab
4a15ab
%description plugin
4a15ab
This plugin is used to release a project with Maven, saving a lot of
4a15ab
repetitive, manual work. Releasing a project is made in two steps:
4a15ab
prepare and perform.
4a15ab
4a15ab
4a15ab
%package javadoc
4a15ab
Summary:        Javadocs for %{pkg_name}
4a15ab
Requires:       %{name} = %{version}-%{release}
4a15ab
4a15ab
%description javadoc
4a15ab
This package contains the API documentation for %{pkg_name}.
4a15ab
4a15ab
4a15ab
%prep
4a15ab
%setup -q -n %{pkg_name}-%{version}
4a15ab
%{?scl:scl enable %{scl} - <<"EOF"}
4a15ab
set -e -x
4a15ab
4a15ab
%patch1 -p1
4a15ab
%patch2 -p1
4a15ab
%patch3 -p0
4a15ab
4a15ab
# Jmock and mockito are not present
4a15ab
%pom_remove_dep jmock:
4a15ab
%pom_remove_dep jmock: maven-release-plugin
4a15ab
%pom_remove_dep jmock: maven-release-manager
4a15ab
%pom_remove_dep org.mockito: maven-release-manager
4a15ab
4a15ab
cat > README << EOT
4a15ab
%{pkg_name}-%{version}
4a15ab
4a15ab
This plugin is used to release a project with Maven, saving a lot of
4a15ab
repetitive, manual work. Releasing a project is made in two steps:
4a15ab
prepare and perform.
4a15ab
EOT
4a15ab
4a15ab
%mvn_file ":%{pkg_name}-{*}" %{pkg_name}-@1
4a15ab
4a15ab
%mvn_package :maven-release maven-release
4a15ab
%mvn_package ":maven-release-{*}" maven-release-@1
4a15ab
%{?scl:EOF}
4a15ab
4a15ab
4a15ab
%build
4a15ab
%{?scl:scl enable %{scl} - <<"EOF"}
4a15ab
set -e -x
4a15ab
# Skip tests because we don't have dependencies (jmock)
4a15ab
%mvn_build -f
4a15ab
%{?scl:EOF}
4a15ab
4a15ab
%install
4a15ab
%{?scl:scl enable %{scl} - <<"EOF"}
4a15ab
set -e -x
4a15ab
%mvn_install
4a15ab
%{?scl:EOF}
4a15ab
4a15ab
%files -f .mfiles-maven-release
4a15ab
%dir %{_mavenpomdir}/%{pkg_name}
4a15ab
%doc README LICENSE NOTICE
4a15ab
4a15ab
%files manager -f .mfiles-maven-release-manager
4a15ab
%doc LICENSE NOTICE
4a15ab
4a15ab
%files plugin -f .mfiles-maven-release-plugin
4a15ab
%doc LICENSE NOTICE
4a15ab
4a15ab
%files javadoc -f .mfiles-javadoc
4a15ab
%doc LICENSE NOTICE
4a15ab
4a15ab
4a15ab
%changelog
4a15ab
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 2.2.1-12.16
4a15ab
- Fix BR on maven-local & co.
4a15ab
4a15ab
* Wed Jan 20 2016 Michal Srb <msrb@redhat.com> - 2.2.1-12.15
4a15ab
- Fix FTBFS
4a15ab
4a15ab
* Mon Jan 11 2016 Michal Srb <msrb@redhat.com> - 2.2.1-12.14
4a15ab
- maven33 rebuild #2
4a15ab
4a15ab
* Sat Jan 09 2016 Michal Srb <msrb@redhat.com> - 2.2.1-12.13
4a15ab
- maven33 rebuild
4a15ab
4a15ab
* Thu Jan 15 2015 Michal Srb <msrb@redhat.com> - 2.2.1-12.12
4a15ab
- Fix directory ownership
4a15ab
4a15ab
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 2.2.1-12.11
4a15ab
- Mass rebuild 2015-01-13
4a15ab
4a15ab
* Tue Jan 06 2015 Michael Simacek <msimacek@redhat.com> - 2.2.1-12.10
4a15ab
- Mass rebuild 2015-01-06
4a15ab
4a15ab
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.1-12.9
4a15ab
- Mass rebuild 2014-05-26
4a15ab
4a15ab
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.1-12.8
4a15ab
- Mass rebuild 2014-02-19
4a15ab
4a15ab
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.1-12.7
4a15ab
- Rebuild to get rid of auto-requires on java-devel
4a15ab
4a15ab
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.1-12.6
4a15ab
- Mass rebuild 2014-02-18
4a15ab
4a15ab
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.1-12.5
4a15ab
- Remove requires on java
4a15ab
4a15ab
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.1-12.4
4a15ab
- Rebuild to fix incorrect auto-requires
4a15ab
4a15ab
* Fri Feb 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.1-12.3
4a15ab
- SCL-ize build-requires
4a15ab
4a15ab
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.1-12.2
4a15ab
- Rebuild to regenerate auto-requires
4a15ab
4a15ab
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.1-12.1
4a15ab
- First maven30 software collection build
4a15ab
4a15ab
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.2.1-12
4a15ab
- Mass rebuild 2013-12-27
4a15ab
4a15ab
* Mon Aug 26 2013 Michal Srb <msrb@redhat.com> - 2.2.1-11
4a15ab
- Migrate away from mvn-rpmbuild (Resolves: #997504)
4a15ab
4a15ab
* Tue Jul 30 2013 Tomas Radej <tradej@redhat.com> - 2.2.1-10
4a15ab
- Removed Jmock + mockito
4a15ab
4a15ab
* Wed Jul 17 2013 Tomas Radej <tradej@redhat.com> - 2.2.1-9
4a15ab
- Installed LICENSE and NOTICE
4a15ab
4a15ab
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.1-8
4a15ab
- Rebuild to regenerate API documentation
4a15ab
- Resolves: CVE-2013-1571
4a15ab
4a15ab
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-7
4a15ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4a15ab
4a15ab
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.2.1-6
4a15ab
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
4a15ab
- Replace maven BuildRequires with maven-local
4a15ab
4a15ab
* Mon Sep 17 2012 Jaromir Capik <jcapik@redhat.com> - 2.2.1-5
4a15ab
- Fixing incomplete migration to component metadata
4a15ab
4a15ab
* Tue Aug  7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.1-4
4a15ab
- Remove BR: maven-scm-test
4a15ab
4a15ab
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-3
4a15ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4a15ab
4a15ab
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2
4a15ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4a15ab
4a15ab
* Tue Nov 29 2011 Alexander Kurtakov <akurtako@redhat.com> 2.2.1-1
4a15ab
- Update to latest upstream release.
4a15ab
- Adapt to current guidelines.
4a15ab
4a15ab
* Tue Jul 26 2011 Guido Grazioli <guido.grazioli@gmail.com> - 2.2-3
4a15ab
- Reinclude maven-scm-test in BRs
4a15ab
4a15ab
* Tue Jul 26 2011 Guido Grazioli <guido.grazioli@gmail.com> - 2.2-2
4a15ab
- Import patch provided by Jaromír Cápík (#725088)
4a15ab
4a15ab
* Mon Jul 18 2011 Guido Grazioli <guido.grazioli@gmail.com> - 2.2-1
4a15ab
- Update to 2.2
4a15ab
- Update to current guidelines
4a15ab
- Build with maven 3
4a15ab
4a15ab
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-3
4a15ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4a15ab
4a15ab
* Mon Jan 3 2011 Alexander Kurtakov <akurtako@redhat.com> 2.0-2
4a15ab
- Drop tomcat5 BRs.
4a15ab
- Drop versioned jars.
4a15ab
4a15ab
* Mon Sep 13 2010 Guido Grazioli <guido.grazioli@gmail.com> - 2.0-1
4a15ab
- Update to upstream 2.0
4a15ab
4a15ab
* Sat Sep 11 2010 Guido Grazioli <guido.grazioli@gmail.com> - 2.0-0.659858svn.4
4a15ab
- Fix build requires
4a15ab
- Use javadoc:aggregate goal
4a15ab
4a15ab
* Tue May 25 2010 Guido Grazioli <guido.grazioli@gmail.com> - 2.0-0.659858svn.3
4a15ab
- Fix build requires
4a15ab
4a15ab
* Mon May 10 2010 Guido Grazioli <guido.grazioli@gmail.com> - 2.0-0.659858svn.2
4a15ab
- Fix release tag
4a15ab
- Better macro usage
4a15ab
4a15ab
* Mon Apr 26 2010 Guido Grazioli <guido.grazioli@gmail.com> - 2.0-0.659858svn.1
4a15ab
- Install maven-release-parent pom in dedicated package
4a15ab
- Patch maven-release-plugin to skip helpmojo goal
4a15ab
- Patch to skip tests depending on (unpackaged) jmock
4a15ab
4a15ab
* Fri Apr 16 2010 Guido Grazioli <guido.grazioli@gmail.com> - 2.0-0.659858svn
4a15ab
- Initial packaging