a0e79e
%bcond_with bootstrap
a0e79e
a0e79e
Name:           plexus-containers
a0e79e
Version:        2.1.1
a0e79e
Release:        2%{?dist}
a0e79e
Summary:        Containers for Plexus
a0e79e
# Most of the files are either under ASL 2.0 or MIT
a0e79e
# The following files are under xpp:
a0e79e
# plexus-component-metadata/src/main/java/org/codehaus/plexus/metadata/merge/Driver.java
a0e79e
# plexus-component-metadata/src/main/java/org/codehaus/plexus/metadata/merge/MXParser.java
a0e79e
License:        ASL 2.0 and MIT and xpp
a0e79e
URL:            https://github.com/codehaus-plexus/plexus-containers
a0e79e
BuildArch:      noarch
a0e79e
ExclusiveArch:  %{java_arches} noarch
a0e79e
a0e79e
Source0:        https://github.com/codehaus-plexus/%{name}/archive/%{name}-%{version}.tar.gz
a0e79e
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
a0e79e
Source2:        LICENSE.MIT
a0e79e
a0e79e
%if %{with bootstrap}
a0e79e
BuildRequires:  javapackages-bootstrap-openjdk8
a0e79e
%else
a0e79e
BuildRequires:  maven-local-openjdk8
a0e79e
BuildRequires:  mvn(com.google.guava:guava)
a0e79e
BuildRequires:  mvn(com.thoughtworks.qdox:qdox)
a0e79e
BuildRequires:  mvn(junit:junit)
a0e79e
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
a0e79e
BuildRequires:  mvn(org.apache.maven:maven-core)
a0e79e
BuildRequires:  mvn(org.apache.maven:maven-model)
a0e79e
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
a0e79e
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
a0e79e
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
a0e79e
BuildRequires:  mvn(org.apache.xbean:xbean-reflect)
a0e79e
BuildRequires:  mvn(org.codehaus.plexus:plexus-classworlds)
a0e79e
BuildRequires:  mvn(org.codehaus.plexus:plexus:pom:)
a0e79e
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
a0e79e
BuildRequires:  mvn(org.jdom:jdom2)
a0e79e
BuildRequires:  mvn(org.ow2.asm:asm)
a0e79e
%endif
a0e79e
a0e79e
%description
a0e79e
The Plexus project seeks to create end-to-end developer tools for
a0e79e
writing applications. At the core is the container, which can be
a0e79e
embedded or for a full scale application server. There are many
a0e79e
reusable components for hibernate, form processing, jndi, i18n,
a0e79e
velocity, etc. Plexus also includes an application server which
a0e79e
is like a J2EE application server, without all the baggage.
a0e79e
a0e79e
%package component-metadata
a0e79e
Summary:        Component metadata from %{name}
a0e79e
a0e79e
%description component-metadata
a0e79e
%{summary}.
a0e79e
a0e79e
%package component-annotations
a0e79e
Summary:        Component API from %{name}
a0e79e
a0e79e
%description -n %{?module_prefix}%{name}-component-annotations
a0e79e
%{summary}.
a0e79e
a0e79e
%package container-default
a0e79e
Summary:        Default Container from %{name}
a0e79e
a0e79e
%description container-default
a0e79e
%{summary}.
a0e79e
a0e79e
%{?javadoc_package}
a0e79e
a0e79e
%prep
a0e79e
%setup -q -n %{name}-%{name}-%{version}
a0e79e
a0e79e
cp %{SOURCE1} .
a0e79e
cp %{SOURCE2} .
a0e79e
a0e79e
%pom_remove_plugin -r :maven-site-plugin
a0e79e
a0e79e
# Generate OSGI info
a0e79e
%pom_xpath_inject "pom:project" "
a0e79e
    <packaging>bundle</packaging>
a0e79e
    <build>
a0e79e
      <plugins>
a0e79e
        <plugin>
a0e79e
          <groupId>org.apache.felix</groupId>
a0e79e
          <artifactId>maven-bundle-plugin</artifactId>
a0e79e
          <extensions>true</extensions>
a0e79e
          <configuration>
a0e79e
            <instructions>
a0e79e
              <_nouses>true</_nouses>
a0e79e
              <Export-Package>org.codehaus.plexus.component.annotations.*</Export-Package>
a0e79e
            </instructions>
a0e79e
          </configuration>
a0e79e
        </plugin>
a0e79e
      </plugins>
a0e79e
    </build>" plexus-component-annotations
a0e79e
a0e79e
# plexus-component-api has been merged into plexus-container-default
a0e79e
%mvn_alias ":plexus-container-default" "org.codehaus.plexus:containers-component-api"
a0e79e
a0e79e
# keep compat symlink for maven's sake
a0e79e
%mvn_file ":plexus-component-annotations" %{name}/plexus-component-annotations plexus/containers-component-annotations
a0e79e
a0e79e
# remove some broken tests
a0e79e
rm plexus-component-metadata/src/test/java/org/codehaus/plexus/metadata/merge/ComponentsXmlMergerTest.java
a0e79e
rm plexus-component-metadata/src/test/java/org/codehaus/plexus/metadata/DefaultComponentDescriptorWriterTest.java
a0e79e
a0e79e
%build
a0e79e
%mvn_build -s
a0e79e
a0e79e
%install
a0e79e
%mvn_install
a0e79e
a0e79e
# plexus-containers pom goes into main package
a0e79e
%files -f .mfiles-plexus-containers
a0e79e
%license LICENSE-2.0.txt LICENSE.MIT
a0e79e
a0e79e
%files component-annotations -f .mfiles-plexus-component-annotations
a0e79e
%license LICENSE-2.0.txt LICENSE.MIT
a0e79e
a0e79e
%files container-default -f .mfiles-plexus-container-default
a0e79e
%license LICENSE-2.0.txt LICENSE.MIT
a0e79e
a0e79e
%files component-metadata -f .mfiles-plexus-component-metadata
a0e79e
%license LICENSE-2.0.txt LICENSE.MIT
a0e79e
a0e79e
%changelog
a0e79e
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-2
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
a0e79e
a0e79e
* Fri Apr 29 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.1-1
a0e79e
- Update to upstream version 2.1.1
a0e79e
a0e79e
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 2.1.0-9
a0e79e
- Rebuilt for java-17-openjdk as system jdk
a0e79e
a0e79e
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-8
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
a0e79e
a0e79e
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-7
a0e79e
- Second attempt - Rebuilt for
a0e79e
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
a0e79e
a0e79e
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.0-6
a0e79e
- Bootstrap build
a0e79e
- Non-bootstrap build
a0e79e
a0e79e
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a0e79e
a0e79e
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a0e79e
a0e79e
* Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 2.1.0-3
a0e79e
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
a0e79e
a0e79e
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a0e79e
a0e79e
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.0-2
a0e79e
- Build with OpenJDK 8
a0e79e
a0e79e
* Wed Nov 20 2019 Marian Koncek <mkoncek@redhat.com> - 2.1.0-1
a0e79e
- Update to upstream version 2.1.0
a0e79e
a0e79e
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.0-2
a0e79e
- Mass rebuild for javapackages-tools 201902
a0e79e
a0e79e
* Thu Oct 24 2019 Fabio Valentini <decathorpe@gmail.com> - 2.1.0-1
a0e79e
- Update to version 2.1.0.
a0e79e
a0e79e
* Tue Aug 20 2019 Fabio Valentini <decathorpe@gmail.com> - 2.0.0-1
a0e79e
- Update to version 2.0.0.
a0e79e
a0e79e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-10
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a0e79e
a0e79e
* Thu May 30 2019 Marian Koncek <mkoncek@redhat.com> - 2.0.0-1
a0e79e
- Update to upstream version 2.0.0
a0e79e
a0e79e
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.7.1-9
a0e79e
- Mass rebuild for javapackages-tools 201901
a0e79e
a0e79e
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-9
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a0e79e
a0e79e
* Tue Jul 31 2018 Michael Simacek <msimacek@redhat.com> - 1.7.1-8
a0e79e
- Fix license tag
a0e79e
- Include missing license files
a0e79e
a0e79e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-7
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a0e79e
a0e79e
* Wed Apr 18 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.7.1-6
a0e79e
- Remove legaty Obsoletes/Provides
a0e79e
a0e79e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-5
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a0e79e
a0e79e
* Mon Feb 05 2018 Michael Simacek <msimacek@redhat.com> - 1.7.1-4
a0e79e
- Use guava20
a0e79e
a0e79e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-3
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a0e79e
a0e79e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-2
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a0e79e
a0e79e
* Fri Jan 20 2017 Michael Simacek <msimacek@redhat.com> - 1.7.1-1
a0e79e
- Update to upstream version 1.7.1
a0e79e
a0e79e
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-6
a0e79e
- Regenerate build-requires
a0e79e
a0e79e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-5
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a0e79e
a0e79e
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-4
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a0e79e
a0e79e
* Wed Apr  1 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-3
a0e79e
- Update upstream URL
a0e79e
a0e79e
* Thu Feb  5 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-2
a0e79e
- Add runtime dependenty on ASM5
a0e79e
a0e79e
* Mon Oct 27 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-1
a0e79e
- Update to upstream version 1.6
a0e79e
a0e79e
* Mon Oct  6 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5.5-20
a0e79e
- Obsolete plexus-container-default
a0e79e
a0e79e
* Wed Sep 24 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5.5-19
a0e79e
- Remove verioned build-requires on maven-javadoc-plugin
a0e79e
a0e79e
* Fri Jul 04 2014 Mat Booth <mat.booth@redhat.com> - 1.5.5-18
a0e79e
- Port to lastest objectweb-asm
a0e79e
a0e79e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-17
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a0e79e
a0e79e
* Fri May 30 2014 Michal Srb <msrb@redhat.com> - 1.5.5-16
a0e79e
- Drop empty .mfiles
a0e79e
a0e79e
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.5-15
a0e79e
- Use Requires: java-headless rebuild (#1067528)
a0e79e
a0e79e
* Thu Dec  5 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5.5-14
a0e79e
- Update to Plexus Classworlds 2.5, resolves: rhbz#1015124
a0e79e
- Require xbean >= 3.14, resolves: rhbz#1038607
a0e79e
a0e79e
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-13
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a0e79e
a0e79e
* Tue Jul 23 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5.5-12
a0e79e
- Generate OSGi metadata
a0e79e
- Resolves: rhbz#987116
a0e79e
- Bump maven-javadoc-plugin version to 2.9.1
a0e79e
a0e79e
* Fri Mar 22 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5.5-11
a0e79e
- Correctly place plexus-containers POM in the main package
a0e79e
a0e79e
* Thu Mar 21 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.5-11
a0e79e
- Add compat symlinks to keep Maven working
a0e79e
a0e79e
* Wed Mar 20 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.5-10
a0e79e
- Update to latest packaging guidelines
a0e79e
- Remove several unneeded buildrequires
a0e79e
a0e79e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-9
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a0e79e
a0e79e
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.5.5-8
a0e79e
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
a0e79e
- Replace maven BuildRequires with maven-local
a0e79e
a0e79e
* Wed Nov 14 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.5-7
a0e79e
- Fix license tag (Plexus license was replaced by MIT some time ago)
a0e79e
- Update javadoc plugin BR version
a0e79e
a0e79e
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-6
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a0e79e
a0e79e
* Fri Feb 17 2012 Deepak Bhole <dbhole@redhat.com> - 1.5.5-5
a0e79e
- Resolves rhbz#791339
a0e79e
- Applied fix from Omair Majid <omajid at redhat dot com> to build with Java 7
a0e79e
a0e79e
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-4
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a0e79e
a0e79e
* Tue Jun 28 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.5-3
a0e79e
- Fix maven3 build
a0e79e
- Use new add_maven_depmap macro
a0e79e
a0e79e
* Mon Feb 28 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.5-2
a0e79e
- Remove unneeded env var definitions
a0e79e
a0e79e
* Fri Feb 25 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.5-1
a0e79e
- Update to latest upstream
a0e79e
- Remove obsolete patches
a0e79e
- Use maven 3 to build
a0e79e
- Packaging fixes
a0e79e
- Versionless jars & javadocs
a0e79e
a0e79e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.4-5
a0e79e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a0e79e
a0e79e
* Mon Oct 11 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.4-4
a0e79e
- Add plexus-cli to component-metadata Requires
a0e79e
a0e79e
* Wed Sep  8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.4-3
a0e79e
- Use javadoc:aggregate
a0e79e
- Merge javadoc subpackages into one -javadoc
a0e79e
a0e79e
* Thu Jul 15 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.4-2
a0e79e
- Fix maven depmaps
a0e79e
a0e79e
* Tue Jul 13 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5.4-1
a0e79e
- Version bump
a0e79e
- Add new sub-packages
a0e79e
- Cleanups
a0e79e
a0e79e
* Thu Aug 20 2009 Andrew Overholt <overholt@redhat.com> 0:1.0-0.1.a34.7
a0e79e
- Clean up javadoc post/postun
a0e79e
- Build with ant
a0e79e
- Remove gcj support
a0e79e
- Clean up groups
a0e79e
a0e79e
* Fri May 15 2009 Fernando Nasser <fnasser@redhat.com> 1.0-0.1.a34.6
a0e79e
- Fix license
a0e79e
a0e79e
* Tue Apr 28 2009 Yong Yang <yyang@redhat.com> 1.0-0.1.a34.5
a0e79e
- Add BRs maven2-plugin-surfire*, maven-doxia*
a0e79e
- Merge from RHEL-4-EP-5 1.0-0.1.a34.2, add plexus-containers-sourcetarget.patch
a0e79e
- Rebuild with new maven2 2.0.8 built in non-bootstrap mode
a0e79e
a0e79e
* Mon Mar 16 2009 Yong Yang <yyang@redhat.com> 1.0-0.1.a34.4
a0e79e
- rebuild with new maven2 2.0.8 built in bootstrap mode
a0e79e
a0e79e
* Wed Feb 04 2009 Yong Yang <yyang@redhat.com> - 1.0-0.1.a34.3
a0e79e
- re-build with maven
a0e79e
a0e79e
* Wed Feb 04 2009 Yong Yang <yyang@redhat.com> - 1.0-0.1.a34.2
a0e79e
- fix bulding with ant
a0e79e
- temporarily buid with ant
a0e79e
a0e79e
* Wed Jan 14 2009 Yong Yang <yyang@redhat.com> - 1.0-0.1.a34.1jpp.2
a0e79e
- re-build with maven
a0e79e
- disabled assert in plexus-container-default/.../UriConverter.java???
a0e79e
a0e79e
* Tue Jan 13 2009 Yong Yang <yyang@redhat.com> - 1.0-0.1.a34.1jpp.1
a0e79e
- Imported into devel from dbhole's maven 2.0.8 packages
a0e79e
a0e79e
* Tue Apr 08 2008 Deepak Bhole <dbhole@redhat.com> 1.0-0.1.a34.0jpp.1
a0e79e
- Initial build with original base spec from JPackage