2997bd
Name:           xbean
2997bd
Version:        3.13
8f0208
Release:        6%{?dist}
2997bd
Summary:        Java plugin based web server
2997bd
License:        ASL 2.0
2997bd
URL:            http://geronimo.apache.org/xbean/
2997bd
Source0:        http://repo2.maven.org/maven2/org/apache/%{name}/%{name}/%{version}/%{name}-%{version}-source-release.zip
2997bd
BuildArch:      noarch
2997bd
2997bd
# Patch for XBEAN-255 from upstream revisions 1538850, 1539053 and
2997bd
# 1539056.  Removes unnecessary doPrivleged() calls which can cause
2997bd
# problems.
2997bd
Patch0:         %{name}-XBEAN-255.patch
2997bd
2997bd
BuildRequires:  maven-local
2997bd
BuildRequires:  mvn(asm:asm)
2997bd
BuildRequires:  mvn(asm:asm-commons)
2997bd
BuildRequires:  mvn(commons-logging:commons-logging-api)
2997bd
BuildRequires:  mvn(junit:junit)
2997bd
BuildRequires:  mvn(log4j:log4j)
2997bd
BuildRequires:  mvn(org.apache.felix:felix-parent)
2997bd
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
2997bd
BuildRequires:  mvn(org.apache.felix:org.apache.felix.framework)
2997bd
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
2997bd
BuildRequires:  mvn(org.osgi:org.osgi.core)
2997bd
BuildRequires:  mvn(org.slf4j:slf4j-api)
2997bd
2997bd
%description
2997bd
The goal of XBean project is to create a plugin based server
2997bd
analogous to Eclipse being a plugin based IDE. XBean will be able to
2997bd
discover, download and install server plugins from an Internet based
2997bd
repository. In addition, we include support for multiple IoC systems,
2997bd
support for running with no IoC system, JMX without JMX code,
2997bd
lifecycle and class loader management, and a rock solid Spring
2997bd
integration.
2997bd
2997bd
%package        javadoc
2997bd
Summary:        API documentation for %{name}
2997bd
2997bd
%description    javadoc
2997bd
This package provides %{summary}.
2997bd
2997bd
%prep
2997bd
%setup -q
2997bd
%patch0
2997bd
2997bd
# build failing on this due to doxia-sitetools problems
2997bd
rm src/site/site.xml
2997bd
2997bd
%pom_remove_parent
2997bd
%pom_remove_dep mx4j:mx4j
2997bd
%pom_remove_dep :xbean-asm-shaded xbean-reflect
2997bd
2997bd
# These aren't needed for now
2997bd
%pom_disable_module xbean-asm-shaded
2997bd
%pom_disable_module xbean-finder-shaded
2997bd
%pom_disable_module xbean-telnet
2997bd
2997bd
# Prevent modules depending on springframework from building.
2997bd
%pom_remove_dep org.springframework:
2997bd
%pom_disable_module xbean-blueprint
2997bd
%pom_disable_module xbean-classloader
2997bd
%pom_disable_module xbean-spring
2997bd
%pom_disable_module maven-xbean-plugin
2997bd
2997bd
# Replace generic OSGi dependencies with Apache Felix
2997bd
%pom_remove_dep :org.osgi.core xbean-bundleutils
2997bd
%pom_remove_dep org.eclipse:osgi xbean-bundleutils
2997bd
%pom_add_dep org.apache.felix:org.apache.felix.framework xbean-bundleutils
2997bd
rm -rf xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/equinox/
2997bd
2997bd
# Fix dependency on xbean-asm-shaded to original objectweb-asm
2997bd
sed -i 's/org.apache.xbean.asm/org.objectweb.asm/' \
2997bd
    xbean-reflect/src/main/java/org/apache/xbean/recipe/XbeanAsmParameterNameLoader.java
2997bd
2997bd
# Fix ant groupId
2997bd
find -name pom.xml -exec sed -i "s|<groupId>ant</groupId>|<groupId>org.apache.ant</groupId>|" {} \;
2997bd
# Fix cglib artifactId
2997bd
find -name pom.xml -exec sed -i "s|<artifactId>cglib-nodep</artifactId>|<artifactId>cglib</artifactId>|" {} \;
2997bd
2997bd
%build
2997bd
%mvn_build -f
2997bd
2997bd
%install
2997bd
%mvn_install
2997bd
2997bd
%files -f .mfiles
2997bd
%doc LICENSE NOTICE
2997bd
%dir %{_javadir}/%{name}
2997bd
2997bd
%files javadoc -f .mfiles-javadoc
2997bd
%doc LICENSE NOTICE
2997bd
2997bd
%changelog
8f0208
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.13-6
8f0208
- Mass rebuild 2013-12-27
8f0208
2997bd
* Thu Nov  7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.13-5
2997bd
- Add patch for XBEAN-255
2997bd
2997bd
* Tue Aug 27 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.13-4
2997bd
- Expand conditionals
2997bd
- Migrate away from mvn-rpmbuild
2997bd
2997bd
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.13-3
2997bd
- Rebuild to regenerate API documentation
2997bd
- Resolves: CVE-2013-1571
2997bd
2997bd
* Mon Apr 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.13-2
2997bd
- Remove unneeded BR: maven-idea-plugin
2997bd
2997bd
* Fri Mar 15 2013 Michal Srb <msrb@redhat.com> - 3.13-1
2997bd
- Update to upstream version 3.13
2997bd
2997bd
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.12-6
2997bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2997bd
2997bd
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.12-5
2997bd
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
2997bd
- Replace maven BuildRequires with maven-local
2997bd
2997bd
* Mon Dec 17 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.12-4
2997bd
- Enable xbean-spring, resolves rhbz#887496
2997bd
- Disable xbean-blueprint due to FTBFS
2997bd
2997bd
* Mon Oct 22 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.12-3
2997bd
- Replace eclipse-rcp requires with eclipse-equinox-osgi
2997bd
- Reenable Equinox
2997bd
2997bd
* Tue Oct 16 2012 gil cattaneo <puntogil@libero.it> - 3.12-2
2997bd
- Enable xbean-blueprint and xbean-classloader modules
2997bd
2997bd
* Wed Oct 10 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.12-1
2997bd
- Update to upstream version 3.12
2997bd
2997bd
* Wed Oct 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 3.11.1-8
2997bd
- Revert previous changes.
2997bd
2997bd
* Wed Oct 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 3.11.1-7
2997bd
- Disable parts dependent on Eclipse (for bootstraping purpose).
2997bd
2997bd
* Wed Oct 10 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.11.1-6
2997bd
- Implement equinox and spring conditionals
2997bd
2997bd
* Mon Sep  3 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.11.1-5
2997bd
- Fix eclipse requires
2997bd
2997bd
* Mon Aug 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.11.1-4
2997bd
- Fix felix-framework enabling patch
2997bd
2997bd
* Mon Aug  6 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.11.1-3
2997bd
- Enable xbean-spring
2997bd
- Enable maven-xbean-plugin
2997bd
- Remove RPM bug workaround
2997bd
2997bd
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.11.1-2
2997bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2997bd
2997bd
* Fri Jul 13 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.11.1-1
2997bd
- Update to the upstream version 3.11.1
2997bd
- Force use of Equinox instead of Felix
2997bd
- Convert patch to POM macros
2997bd
2997bd
* Thu May  3 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.8-5
2997bd
- Remove mx4j from deps (javax.management provided by JDK 1.5+)
2997bd
2997bd
* Tue Apr 24 2012 Alexander Kurtakov <akurtako@redhat.com> 3.8-4
2997bd
- BR felix-framework instead of felix-osgi-core.
2997bd
2997bd
* Tue Apr 24 2012 Alexander Kurtakov <akurtako@redhat.com> 3.8-3
2997bd
- Do not build equinox specific parts for RHEL.
2997bd
2997bd
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8-2
2997bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2997bd
2997bd
* Tue Dec  6 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.8-1
2997bd
- Update to latest upstream version
2997bd
- Build with maven 3
2997bd
- Packaging & guidelines fixes
2997bd
2997bd
* Sat May 28 2011 Marek Goldmann <mgoldman@redhat.com> - 3.7-7
2997bd
- Added xbean-finder and xbean-bundleutils submodules
2997bd
2997bd
* Fri Mar  4 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-6
2997bd
- Add comment for removing javadoc
2997bd
- Fix maven 3 build
2997bd
2997bd
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7-5
2997bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2997bd
2997bd
* Mon Dec  6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-4
2997bd
- Fix pom filename (Resolves rhbz#655827)
2997bd
- Add depmap for main pom file
2997bd
- Fixes according to new guidelines (versionless jars, javadocs)
2997bd
2997bd
* Fri Jul 30 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-3
2997bd
- Use javadoc:aggregate to generate javadocs
2997bd
2997bd
* Fri Jul  9 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-2
2997bd
- Add license to javadoc subpackage
2997bd
2997bd
* Mon Jun 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-1
2997bd
- First release