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