4ae8c4
4ae8c4
%global with_maven 1
4ae8c4
4ae8c4
%global parent plexus
4ae8c4
%global subname containers
4ae8c4
4ae8c4
# this needs to be exact version of maven-javadoc-plugin for
4ae8c4
# integration tests
4ae8c4
%global javadoc_plugin_version 2.9
4ae8c4
4ae8c4
Name:           %{parent}-%{subname}
4ae8c4
Version:        1.5.5
4ae8c4
Release:        14%{?dist}
4ae8c4
Summary:        Containers for Plexus
4ae8c4
License:        ASL 2.0 and MIT
4ae8c4
URL:            http://plexus.codehaus.org/
4ae8c4
# svn export \
4ae8c4
#  http://svn.codehaus.org/plexus/plexus-containers/tags/plexus-containers-1.5.5
4ae8c4
# tar caf plexus-containers-1.5.5.tar.xz plexus-containers-1.5.5
4ae8c4
Source0:        %{name}-%{version}.tar.xz
4ae8c4
Source1:        plexus-container-default-build.xml
4ae8c4
Source2:        plexus-component-annotations-build.xml
4ae8c4
Source3:        plexus-containers-settings.xml
4ae8c4
4ae8c4
Patch0:         0001-Fix-test-oom.patch
4ae8c4
4ae8c4
BuildArch:      noarch
4ae8c4
4ae8c4
BuildRequires:  maven-local
4ae8c4
BuildRequires:  maven-invoker-plugin
4ae8c4
BuildRequires:  maven-javadoc-plugin = %{javadoc_plugin_version}
4ae8c4
BuildRequires:  maven-resources-plugin
4ae8c4
BuildRequires:  maven-site-plugin
4ae8c4
BuildRequires:  maven-shared-invoker
4ae8c4
BuildRequires:  maven-release
4ae8c4
BuildRequires:  maven-plugin-plugin
4ae8c4
BuildRequires:  plexus-classworlds
4ae8c4
BuildRequires:  plexus-utils
4ae8c4
BuildRequires:  plexus-cli
4ae8c4
BuildRequires:  xbean
4ae8c4
BuildRequires:  guava
4ae8c4
4ae8c4
Requires:       plexus-classworlds >= 2.2.3
4ae8c4
Requires:       plexus-utils
4ae8c4
Requires:       xbean
4ae8c4
Requires:       guava
4ae8c4
4ae8c4
4ae8c4
%description
4ae8c4
The Plexus project seeks to create end-to-end developer tools for
4ae8c4
writing applications. At the core is the container, which can be
4ae8c4
embedded or for a full scale application server. There are many
4ae8c4
reusable components for hibernate, form processing, jndi, i18n,
4ae8c4
velocity, etc. Plexus also includes an application server which
4ae8c4
is like a J2EE application server, without all the baggage.
4ae8c4
4ae8c4
%package component-metadata
4ae8c4
Summary:        Component metadata from %{name}
4ae8c4
4ae8c4
%description component-metadata
4ae8c4
%{summary}.
4ae8c4
4ae8c4
%package component-javadoc
4ae8c4
Summary:        Javadoc component from %{name}
4ae8c4
4ae8c4
%description component-javadoc
4ae8c4
%{summary}.
4ae8c4
4ae8c4
%package component-annotations
4ae8c4
Summary:        Component API from %{name}
4ae8c4
4ae8c4
%description component-annotations
4ae8c4
%{summary}.
4ae8c4
4ae8c4
%package container-default
4ae8c4
Summary:        Default Container from %{name}
4ae8c4
Provides:       plexus-containers-component-api = %{version}-%{release}
4ae8c4
4ae8c4
%description container-default
4ae8c4
%{summary}.
4ae8c4
4ae8c4
%package javadoc
4ae8c4
Summary:        API documentation for all plexus-containers packages
4ae8c4
Group:          Documentation
4ae8c4
Provides:       %{name}-component-annotations-javadoc = %{version}-%{release}
4ae8c4
Obsoletes:      %{name}-component-annotations-javadoc < %{version}-%{release}
4ae8c4
Provides:       %{name}-component-javadoc-javadoc = %{version}-%{release}
4ae8c4
Obsoletes:      %{name}-component-javadoc-javadoc < %{version}-%{release}
4ae8c4
Provides:       %{name}-component-metadata-javadoc = %{version}-%{release}
4ae8c4
Obsoletes:      %{name}-component-metadata-javadoc < %{version}-%{release}
4ae8c4
Provides:       %{name}-container-default-javadoc = %{version}-%{release}
4ae8c4
Obsoletes:      %{name}-container-default-javadoc < %{version}-%{release}
4ae8c4
4ae8c4
%description javadoc
4ae8c4
%{summary}.
4ae8c4
4ae8c4
%prep
4ae8c4
%setup -q -n plexus-containers-%{version}
4ae8c4
4ae8c4
cp %{SOURCE1} plexus-container-default/build.xml
4ae8c4
cp %{SOURCE2} plexus-component-annotations/build.xml
4ae8c4
4ae8c4
%patch0 -p1
4ae8c4
4ae8c4
# For Maven 3 compat
4ae8c4
%pom_add_dep org.apache.maven:maven-core plexus-component-metadata
4ae8c4
4ae8c4
# Remove dependency on system-scoped tools.jar
4ae8c4
%pom_remove_dep com.sun:tools plexus-component-javadoc
4ae8c4
%pom_add_dep com.sun:tools plexus-component-javadoc
4ae8c4
4ae8c4
# to prevent ant from failing
4ae8c4
mkdir -p plexus-component-annotations/src/test/java
4ae8c4
4ae8c4
# integration tests fix
4ae8c4
sed -i "s|<version>2.3</version>|<version> %{javadoc_plugin_version}</version>|" plexus-component-javadoc/src/it/basic/pom.xml
4ae8c4
4ae8c4
# plexus-component-api has been merged into plexus-container-default
4ae8c4
%mvn_alias ":plexus-container-default" "org.codehaus.plexus:containers-component-api"
4ae8c4
4ae8c4
# keep compat symlink for maven's sake
4ae8c4
%mvn_file ":plexus-component-annotations" %{name}/plexus-component-annotations plexus/containers-component-annotations
4ae8c4
4ae8c4
%build
4ae8c4
%mvn_build -f -s
4ae8c4
4ae8c4
%install
4ae8c4
%mvn_install
4ae8c4
4ae8c4
4ae8c4
# plexus-containers pom goes into main package
4ae8c4
%files -f .mfiles -f .mfiles-plexus-containers
4ae8c4
%files component-annotations -f .mfiles-plexus-component-annotations
4ae8c4
%files container-default -f .mfiles-plexus-container-default
4ae8c4
%files component-metadata -f .mfiles-plexus-component-metadata
4ae8c4
%files component-javadoc -f .mfiles-plexus-component-javadoc
4ae8c4
4ae8c4
%files javadoc -f .mfiles-javadoc
4ae8c4
4ae8c4
%changelog
4ae8c4
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.5.5-14
4ae8c4
- Mass rebuild 2013-12-27
4ae8c4
4ae8c4
* Wed Nov 13 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5.5-13
4ae8c4
- Remove dependency on system-scoped tools.jar
4ae8c4
4ae8c4
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5.5-12
4ae8c4
- Rebuild to regenerate API documentation
4ae8c4
- Resolves: CVE-2013-1571
4ae8c4
4ae8c4
* Fri Mar 22 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5.5-11
4ae8c4
- Correctly place plexus-containers POM in the main package
4ae8c4
4ae8c4
* Thu Mar 21 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.5-11
4ae8c4
- Add compat symlinks to keep Maven working
4ae8c4
4ae8c4
* Wed Mar 20 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.5-10
4ae8c4
- Update to latest packaging guidelines
4ae8c4
- Remove several unneeded buildrequires
4ae8c4
4ae8c4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-9
4ae8c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4ae8c4
4ae8c4
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.5.5-8
4ae8c4
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
4ae8c4
- Replace maven BuildRequires with maven-local
4ae8c4
4ae8c4
* Wed Nov 14 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.5-7
4ae8c4
- Fix license tag (Plexus license was replaced by MIT some time ago)
4ae8c4
- Update javadoc plugin BR version
4ae8c4
4ae8c4
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-6
4ae8c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4ae8c4
4ae8c4
* Fri Feb 17 2012 Deepak Bhole <dbhole@redhat.com> - 1.5.5-5
4ae8c4
- Resolves rhbz#791339
4ae8c4
- Applied fix from Omair Majid <omajid at redhat dot com> to build with Java 7
4ae8c4
4ae8c4
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-4
4ae8c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4ae8c4
4ae8c4
* Tue Jun 28 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.5-3
4ae8c4
- Fix maven3 build
4ae8c4
- Use new add_maven_depmap macro
4ae8c4
4ae8c4
* Mon Feb 28 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.5-2
4ae8c4
- Remove unneeded env var definitions
4ae8c4
4ae8c4
* Fri Feb 25 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.5-1
4ae8c4
- Update to latest upstream
4ae8c4
- Remove obsolete patches
4ae8c4
- Use maven 3 to build
4ae8c4
- Packaging fixes
4ae8c4
- Versionless jars & javadocs
4ae8c4
4ae8c4
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.4-5
4ae8c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4ae8c4
4ae8c4
* Mon Oct 11 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.4-4
4ae8c4
- Add plexus-cli to component-metadata Requires
4ae8c4
4ae8c4
* Wed Sep  8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.4-3
4ae8c4
- Use javadoc:aggregate
4ae8c4
- Merge javadoc subpackages into one -javadoc
4ae8c4
4ae8c4
* Thu Jul 15 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.4-2
4ae8c4
- Fix maven depmaps
4ae8c4
4ae8c4
* Tue Jul 13 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.4-1
4ae8c4
- Version bump
4ae8c4
- Add new sub-packages
4ae8c4
- Cleanups
4ae8c4
4ae8c4
* Thu Aug 20 2009 Andrew Overholt <overholt@redhat.com> 0:1.0-0.1.a34.7
4ae8c4
- Clean up javadoc post/postun
4ae8c4
- Build with ant
4ae8c4
- Remove gcj support
4ae8c4
- Clean up groups
4ae8c4
4ae8c4
* Fri May 15 2009 Fernando Nasser <fnasser@redhat.com> 1.0-0.1.a34.6
4ae8c4
- Fix license
4ae8c4
4ae8c4
* Tue Apr 28 2009 Yong Yang <yyang@redhat.com> 1.0-0.1.a34.5
4ae8c4
- Add BRs maven2-plugin-surfire*, maven-doxia*
4ae8c4
- Merge from RHEL-4-EP-5 1.0-0.1.a34.2, add plexus-containers-sourcetarget.patch
4ae8c4
- Rebuild with new maven2 2.0.8 built in non-bootstrap mode
4ae8c4
4ae8c4
* Mon Mar 16 2009 Yong Yang <yyang@redhat.com> 1.0-0.1.a34.4
4ae8c4
- rebuild with new maven2 2.0.8 built in bootstrap mode
4ae8c4
4ae8c4
* Wed Feb 04 2009 Yong Yang <yyang@redhat.com> - 1.0-0.1.a34.3
4ae8c4
- re-build with maven
4ae8c4
4ae8c4
* Wed Feb 04 2009 Yong Yang <yyang@redhat.com> - 1.0-0.1.a34.2
4ae8c4
- fix bulding with ant
4ae8c4
- temporarily buid with ant
4ae8c4
4ae8c4
* Wed Jan 14 2009 Yong Yang <yyang@redhat.com> - 1.0-0.1.a34.1jpp.2
4ae8c4
- re-build with maven
4ae8c4
- disabled assert in plexus-container-default/.../UriConverter.java???
4ae8c4
4ae8c4
* Tue Jan 13 2009 Yong Yang <yyang@redhat.com> - 1.0-0.1.a34.1jpp.1
4ae8c4
- Imported into devel from dbhole's maven 2.0.8 packages
4ae8c4
4ae8c4
* Tue Apr 08 2008 Deepak Bhole <dbhole@redhat.com> 1.0-0.1.a34.0jpp.1
4ae8c4
- Initial build with original base spec from JPackage