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