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