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
|
2011-12-21 15:34:55 +00:00
|
|
|
Version: 2.3.6
|
|
|
|
Release: 1%{?dist}
|
2009-09-09 18:45:59 +00:00
|
|
|
Summary: Maven Bundle Plugin
|
|
|
|
|
|
|
|
Group: Development/Tools
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: http://felix.apache.org
|
2011-11-10 11:23:33 +00:00
|
|
|
Source0: http://apache.tradebit.com/pub/felix/%{site_name}-%{version}-source-release.tar.gz
|
|
|
|
|
|
|
|
Patch0: %{site_name}-unbundling.patch
|
2011-12-21 15:34:55 +00:00
|
|
|
Patch1: %{site_name}-unreported-exception.patch
|
2011-11-10 11:23:33 +00:00
|
|
|
|
2011-12-21 15:34:55 +00:00
|
|
|
BuildRequires: aqute-bndlib >= 1.50.0
|
2009-09-09 18:45:59 +00:00
|
|
|
BuildRequires: plexus-utils >= 1.4.5
|
|
|
|
BuildRequires: felix-osgi-obr
|
|
|
|
BuildRequires: kxml
|
2011-02-10 22:07:13 +00:00
|
|
|
BuildRequires: maven
|
2009-09-09 18:45:59 +00:00
|
|
|
BuildRequires: maven-shared-dependency-tree >= 1.1-3
|
|
|
|
BuildRequires: maven-wagon >= 1.0-0.2.b2
|
2010-09-09 20:42:57 +00:00
|
|
|
BuildRequires: maven-compiler-plugin
|
2011-11-10 11:23:33 +00:00
|
|
|
BuildRequires: maven-install-plugin
|
|
|
|
BuildRequires: maven-jar-plugin
|
|
|
|
BuildRequires: maven-javadoc-plugin
|
|
|
|
BuildRequires: maven-plugin-plugin
|
2010-09-09 20:42:57 +00:00
|
|
|
BuildRequires: maven-resources-plugin
|
|
|
|
BuildRequires: maven-surefire-plugin >= 2.3
|
2011-02-10 21:58:11 +00:00
|
|
|
BuildRequires: maven-surefire-provider-junit4 >= 2.3
|
2009-09-09 19:10:21 +00:00
|
|
|
BuildRequires: maven-doxia-sitetools
|
2011-11-10 11:23:33 +00:00
|
|
|
BuildRequires: maven-shared-osgi
|
2010-12-15 19:25:33 +00:00
|
|
|
BuildRequires: felix-parent
|
2011-11-10 11:23:33 +00:00
|
|
|
BuildRequires: felix-bundlerepository
|
|
|
|
|
2011-12-21 15:34:55 +00:00
|
|
|
Requires: aqute-bndlib >= 1.50.0
|
2009-09-09 18:45:59 +00:00
|
|
|
Requires: plexus-utils >= 1.4.5
|
|
|
|
Requires: felix-osgi-obr
|
|
|
|
Requires: kxml
|
2011-06-16 23:59:43 +00:00
|
|
|
Requires: maven
|
2010-09-09 20:42:57 +00:00
|
|
|
Requires: maven-archiver
|
2009-09-18 09:33:40 +00:00
|
|
|
Requires: maven-shared-dependency-tree
|
|
|
|
Requires: maven-wagon
|
2011-11-10 11:23:33 +00:00
|
|
|
Requires: maven-shared-osgi
|
2009-09-18 09:33:40 +00:00
|
|
|
Requires: plexus-archiver
|
|
|
|
Requires: plexus-containers-container-default
|
2010-12-15 19:25:33 +00:00
|
|
|
Requires: felix-parent
|
2011-11-10 11:23:33 +00:00
|
|
|
Requires: felix-bundlerepository
|
2009-09-09 18:45:59 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
Group: Documentation
|
|
|
|
Summary: Javadoc for %{name}
|
2010-12-15 19:25:33 +00:00
|
|
|
Requires: jpackage-utils
|
2009-09-09 18:45:59 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
2011-11-10 11:23:33 +00:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
# remove bundled stuff
|
|
|
|
rm -rf src/main/java/org/apache/maven
|
2011-10-11 15:05:45 +00:00
|
|
|
|
2009-09-09 18:45:59 +00:00
|
|
|
%build
|
2011-11-10 11:23:33 +00:00
|
|
|
# tests can't be built (seems like a MavenProjectStub incompatibility with MavenProject)
|
|
|
|
mvn-rpmbuild install javadoc:aggregate -Dmaven.test.skip=true
|
2009-09-09 18:45:59 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
|
|
|
install -d -m 0755 %{buildroot}%{_javadir}
|
2011-11-10 11:23:33 +00:00
|
|
|
install -m 644 target/maven-bundle-plugin-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
2009-09-09 18:45:59 +00:00
|
|
|
|
|
|
|
# poms
|
2011-06-16 23:59:43 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
2011-11-10 11:23:33 +00:00
|
|
|
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
2009-09-09 18:45:59 +00:00
|
|
|
|
|
|
|
# javadoc
|
2010-12-15 19:28:29 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
2010-12-15 19:25:33 +00:00
|
|
|
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
|
2009-09-09 18:45:59 +00:00
|
|
|
rm -rf target/site/api*
|
|
|
|
|
2011-11-10 11:23:33 +00:00
|
|
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
|
|
|
|
2009-09-09 18:45:59 +00:00
|
|
|
%files
|
2011-12-21 15:34:55 +00:00
|
|
|
%doc LICENSE NOTICE DEPENDENCIES
|
2011-11-10 11:23:33 +00:00
|
|
|
%{_javadir}/%{name}.jar
|
|
|
|
%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
|
%{_mavendepmapfragdir}/%{name}
|
2009-09-09 18:45:59 +00:00
|
|
|
|
|
|
|
%files javadoc
|
2011-12-21 15:34:55 +00:00
|
|
|
%doc LICENSE
|
2009-09-09 18:45:59 +00:00
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|
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.
|