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