Blame SPECS/maven-plugin-bundle.spec

ad18db
%{?scl:%scl_package maven-plugin-bundle}
ad18db
%{!?scl:%global pkg_name %{name}}
ad18db
ad18db
%if 0%{?fedora}
ad18db
%bcond_without obr
ad18db
%bcond_without reporting
ad18db
%endif
ad18db
ad18db
%global site_name maven-bundle-plugin
ad18db
ad18db
Name:           %{?scl_prefix}maven-plugin-bundle
ad18db
Version:        3.3.0
ad18db
Release:        1.2%{?dist}
ad18db
Summary:        Maven Bundle Plugin
ad18db
License:        ASL 2.0
ad18db
URL:            http://felix.apache.org
ad18db
BuildArch:      noarch
ad18db
ad18db
Source0:        http://archive.apache.org/dist/felix/%{site_name}-%{version}-source-release.tar.gz
ad18db
ad18db
# Needs polishing to be sent upstream
ad18db
Patch0:         0001-Port-to-current-maven-dependency-tree.patch
ad18db
# New maven-archiver removed some deprecated methods we were using
ad18db
Patch1:         0002-Fix-for-new-maven-archiver.patch
ad18db
# Port to newer Plexus utils
ad18db
Patch2:         0003-Port-to-plexus-utils-3.0.24.patch
ad18db
# Port to newer Maven
ad18db
Patch3:         0004-Use-Maven-3-APIs.patch
ad18db
ad18db
BuildRequires:  %{?scl_prefix}maven-local
ad18db
BuildRequires:  %{?scl_prefix}mvn(biz.aQute.bnd:biz.aQute.bndlib)
ad18db
BuildRequires:  %{?scl_prefix}mvn(org.apache.felix:felix-parent:pom:)
ad18db
BuildRequires:  %{?scl_prefix}mvn(org.apache.felix:org.apache.felix.utils)
ad18db
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-archiver)
ad18db
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-compat)
ad18db
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-core)
ad18db
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.plugins:maven-plugin-plugin)
ad18db
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
ad18db
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.shared:maven-dependency-tree)
ad18db
BuildRequires:  %{?scl_prefix}mvn(org.codehaus.plexus:plexus-utils)
ad18db
BuildRequires:  %{?scl_prefix}mvn(org.osgi:osgi.core)
ad18db
BuildRequires:  %{?scl_prefix}mvn(org.sonatype.plexus:plexus-build-api)
ad18db
%if %{with obr}
ad18db
BuildRequires:  mvn(net.sf.kxml:kxml2)
ad18db
BuildRequires:  mvn(org.apache.felix:org.apache.felix.bundlerepository)
ad18db
BuildRequires:  %{?scl_prefix}mvn(xpp3:xpp3)
ad18db
%endif
ad18db
%if %{with reporting}
ad18db
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.doxia:doxia-core)
ad18db
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.doxia:doxia-sink-api)
ad18db
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.doxia:doxia-site-renderer)
ad18db
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.reporting:maven-reporting-impl)
ad18db
%endif
ad18db
ad18db
%description
ad18db
Provides a maven plugin that supports creating an OSGi bundle
ad18db
from the contents of the compilation classpath along with its
ad18db
resources and dependencies. Plus a zillion other features.
ad18db
ad18db
%package javadoc
ad18db
Summary:        Javadoc for %{pkg_name}
ad18db
ad18db
%description javadoc
ad18db
API documentation for %{pkg_name}.
ad18db
ad18db
%prep
ad18db
%setup -q -n %{site_name}-%{version}
ad18db
ad18db
%patch0 -p1
ad18db
%patch1 -p1
ad18db
%patch2 -p1
ad18db
%patch3 -p1
ad18db
ad18db
find -name '*.jar' -delete
ad18db
ad18db
%pom_change_dep :org.osgi.core :osgi.core
ad18db
ad18db
# Bundled class from old maven-dependency-tree
ad18db
rm -r src/main/java/org/apache/maven/shared/dependency
ad18db
ad18db
# Bundled classes from old maven
ad18db
rm -r src/main/java/org/apache/felix/bundleplugin/pom
ad18db
ad18db
# There is forked version of maven-osgi in
ad18db
# src/{main,test}/java/org/apache/maven
ad18db
ad18db
%if %{with obr}
ad18db
# Deps unbundled from felix-bundlerepository
ad18db
%pom_add_dep xpp3:xpp3
ad18db
%pom_add_dep net.sf.kxml:kxml2
ad18db
%else
ad18db
rm -rf src/main/java/org/apache/felix/obrplugin/
ad18db
%pom_remove_dep :org.apache.felix.bundlerepository
ad18db
%endif
ad18db
ad18db
%if %{without reporting}
ad18db
rm -f src/main/java/org/apache/felix/bundleplugin/baseline/BaselineReport.java
ad18db
%pom_remove_dep :doxia-sink-api
ad18db
%pom_remove_dep :doxia-site-renderer
ad18db
%pom_remove_dep :maven-reporting-impl
ad18db
%endif
ad18db
ad18db
%build
ad18db
# Tests depend on bundled JARs
ad18db
%mvn_build -f
ad18db
ad18db
%install
ad18db
%mvn_install
ad18db
ad18db
%files -f .mfiles
ad18db
%doc LICENSE NOTICE DEPENDENCIES
ad18db
ad18db
%files javadoc -f .mfiles-javadoc
ad18db
%doc LICENSE NOTICE
ad18db
ad18db
%changelog
ad18db
* Thu Jun 22 2017 Michael Simacek <msimacek@redhat.com> - 3.3.0-1.2
ad18db
- Mass rebuild 2017-06-22
ad18db
ad18db
* Wed Jun 21 2017 Java Maintainers <java-maint@redhat.com> - 3.3.0-1.1
ad18db
- Automated package import and SCL-ization
ad18db
ad18db
* Wed Mar 29 2017 Michael Simacek <msimacek@redhat.com> - 3.3.0-1
ad18db
- Update to upstream version 3.3.0
ad18db
ad18db
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-4
ad18db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ad18db
ad18db
* Wed Oct 12 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.0-3
ad18db
- Add conditionals for building without OBR or Maven reports
ad18db
ad18db
* Thu Oct 06 2016 Michael Simacek <msimacek@redhat.com> - 3.2.0-2
ad18db
- Use osgi APIs instead of felix-framework
ad18db
ad18db
* Tue Jul 19 2016 Michael Simacek <msimacek@redhat.com> - 3.2.0-1
ad18db
- Update to upstream version 3.2.0
ad18db
ad18db
* Thu May 26 2016 Michael Simacek <msimacek@redhat.com> - 3.0.1-4
ad18db
- Remove aqute downgrade patch
ad18db
ad18db
* Thu May 12 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0.1-3
ad18db
- Port to plexus-utils 3.0.24
ad18db
ad18db
* Thu Apr 14 2016 Mat Booth <mat.booth@redhat.com> - 3.0.1-2
ad18db
- Fix build against new maven-archiver, which removed some deprecated methods
ad18db
  that this plugin was using
ad18db
ad18db
* Fri Feb 12 2016 Michael Simacek <msimacek@redhat.com> - 3.0.1-1
ad18db
- Update to upstream version 3.0.1
ad18db
ad18db
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.4-2
ad18db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ad18db
ad18db
* Wed Jul 08 2015 Michael Simacek <msimacek@redhat.com> - 2.5.4-1
ad18db
- Update to upstream version 2.5.4
ad18db
ad18db
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.7-15
ad18db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ad18db
ad18db
* Mon Aug  4 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.7-14
ad18db
- Add build-requires on mockito
ad18db
ad18db
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.7-13
ad18db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ad18db
ad18db
* Wed May 21 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.7-12
ad18db
- Update to current packaging guidelines
ad18db
ad18db
* Thu Feb 20 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.7-11
ad18db
- Remove unneeded R and BR: maven-wagon
ad18db
ad18db
* Fri Jul 26 2013 Tomas Radej <tradej@redhat.com> - 2.3.7-10
ad18db
- Fixed release number
ad18db
ad18db
* Wed Jul 17 2013 Tomas Radej <tradej@redhat.com> - 2.3.7-9
ad18db
- Updated source address (error 404)
ad18db
ad18db
* Wed Apr 10 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.7-8
ad18db
- Add missing BR: maven-plugin-testing-harness
ad18db
ad18db
* Mon Mar 11 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.7-7
ad18db
- Re-enable tests
ad18db
ad18db
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.7-6
ad18db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ad18db
ad18db
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.3.7-5
ad18db
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
ad18db
- Replace maven BuildRequires with maven-local
ad18db
ad18db
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.7-4
ad18db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ad18db
ad18db
* Mon May 21 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.3.7-3
ad18db
- Add kxml2 to pom as a dependency
ad18db
ad18db
* Mon Apr 30 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.7-2
ad18db
- Add missing BuildRequires
ad18db
ad18db
* Wed Feb 29 2012 Jaromir Capik <jcapik@redhat.com> 2.3.7-1
ad18db
- Update to 2.3.7
ad18db
ad18db
* Thu Jan 19 2012 Jaromir Capik <jcapik@redhat.com> 2.3.6-3
ad18db
- Bundled maven sources readded (they seem to change the behaviour)
ad18db
ad18db
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.6-2
ad18db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ad18db
ad18db
* Wed Dec 21 2011 Jaromir Capik <jcapik@redhat.com> 2.3.6-1
ad18db
- Update to 2.3.6
ad18db
ad18db
* Mon Dec 19 2011 Jaromir Capik <jcapik@redhat.com> 2.3.5-3
ad18db
- Minimal aqute-bndlib VR set to 1.43.0-2 (older ones are broken)
ad18db
ad18db
* Mon Nov 14 2011 Jaromir Capik <jcapik@redhat.com> 2.3.5-2
ad18db
- OBR plugin readded (it's been merged to the bundle plugin)
ad18db
ad18db
* Mon Oct 24 2011 Jaromir Capik <jcapik@redhat.com> 2.3.5-1
ad18db
- Update to 2.3.5
ad18db
ad18db
* Tue Oct 17 2011 Jaromir Capik <jcapik@redhat.com> 2.0.0-11
ad18db
- aqute-bndlib renamed to aqute-bnd
ad18db
ad18db
* Fri Jun 17 2011 Alexander Kurtakov <akurtako@redhat.com> 2.0.0-10
ad18db
- Do not depend on maven2.
ad18db
ad18db
* Thu Feb 10 2011 Alexander Kurtakov <akurtako@redhat.com> 2.0.0-9
ad18db
- BR maven-surefire-provider-junit4.
ad18db
ad18db
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-8
ad18db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ad18db
ad18db
* Wed Dec 15 2010 Alexander Kurtakov <akurtako@redhat.com> 2.0.0-7
ad18db
- BR/R felix-parent.
ad18db
ad18db
* Thu Sep 9 2010 Alexander Kurtakov <akurtako@redhat.com> 2.0.0-5
ad18db
- Fix BuildRequires.
ad18db
ad18db
* Fri Sep 18 2009 Alexander Kurtakov <akurtako@redhat.com> 2.0.0-4
ad18db
- Add missing Requires.
ad18db
ad18db
* Wed Sep 9 2009 Alexander Kurtakov <akurtako@redhat.com> 2.0.0-3
ad18db
- BR doxia-sitetools.
ad18db
ad18db
* Mon Sep 7 2009 Alexander Kurtakov <akurtako@redhat.com> 2.0.0-2
ad18db
- Fix BR/Rs.
ad18db
ad18db
* Thu Sep 3 2009 Alexander Kurtakov <akurtako@redhat.com> 2.0.0-1
ad18db
- Initial import.