1f03e8
# Conditionals to help breaking eclipse <-> xbean dependency cycle
1f03e8
# when bootstrapping for new architectures
1f03e8
%if 0%{?fedora}
0bc30a
%bcond_without equinox
d32870
%bcond_without spring
1f03e8
%endif
1f03e8
e9ea39
Name:           xbean
5975bb
Version:        3.17
e9ea39
BuildArch:      noarch
e9ea39
c53430
Release:        2%{?dist}
e9ea39
Summary:        Java plugin based web server
e9ea39
e9ea39
License:        ASL 2.0
e9ea39
URL:            http://geronimo.apache.org/xbean/
e9ea39
fe19d1
Source0:        http://repo2.maven.org/maven2/org/apache/%{name}/%{name}/%{version}/%{name}-%{version}-source-release.zip
e9ea39
6eb71d
# Fix dependency on xbean-asm4-shaded to original objectweb-asm
6eb71d
Patch0:         %{name}-asm4-unshade.patch
d1b112
# Compatibility with Eclipse Luna (rhbz#1087461)
d1b112
Patch1:         %{name}-luna.patch
6eb71d
e9ea39
BuildRequires:  java-devel
e9ea39
BuildRequires:  apache-commons-beanutils
e9ea39
BuildRequires:  apache-commons-logging
e9ea39
BuildRequires:  objectweb-asm
e9ea39
BuildRequires:  ant
e9ea39
BuildRequires:  qdox
e9ea39
BuildRequires:  slf4j
Stanislav Ochotnicky b76f3f
BuildRequires:  maven-local
e9ea39
BuildRequires:  maven-plugin-bundle
e9ea39
BuildRequires:  maven-antrun-plugin
e9ea39
BuildRequires:  maven-compiler-plugin
Stanislav Ochotnicky abc71d
BuildRequires:  maven-dependency-plugin
e9ea39
BuildRequires:  maven-install-plugin
e9ea39
BuildRequires:  maven-javadoc-plugin
e9ea39
BuildRequires:  maven-resources-plugin
46f8c2
BuildRequires:  maven-surefire-plugin
e9ea39
BuildRequires:  maven-site-plugin
Stanislav Ochotnicky 8c7505
BuildRequires:  maven-shade-plugin
1f03e8
%if %{with equinox}
0bc30a
BuildRequires:  eclipse-equinox-osgi
1f03e8
%else
1f03e8
BuildRequires:  felix-framework
1f03e8
%endif
1f03e8
%if %{with spring}
7b4e68
BuildRequires:  apache-commons-jexl
7b4e68
BuildRequires:  aries-blueprint
7b4e68
# test deps BuildRequires:  cglib
7b4e68
BuildRequires:  felix-osgi-compendium
7b4e68
BuildRequires:  felix-osgi-core
7b4e68
BuildRequires:  geronimo-annotation
7b4e68
BuildRequires:  pax-logging
7b4e68
c6daae
BuildRequires:  maven-archiver
c6daae
BuildRequires:  maven-plugin-plugin
c6daae
BuildRequires:  maven-project
c6daae
BuildRequires:  plexus-archiver
c6daae
BuildRequires:  plexus-utils
c6daae
BuildRequires:  springframework
c6daae
BuildRequires:  springframework-beans
c6daae
BuildRequires:  springframework-context
c6daae
BuildRequires:  springframework-web
46f8c2
%endif
e9ea39
e9ea39
%description
e9ea39
The goal of XBean project is to create a plugin based server
e9ea39
analogous to Eclipse being a plugin based IDE. XBean will be able to
e9ea39
discover, download and install server plugins from an Internet based
e9ea39
repository. In addition, we include support for multiple IoC systems,
e9ea39
support for running with no IoC system, JMX without JMX code,
e9ea39
lifecycle and class loader management, and a rock solid Spring
e9ea39
integration.
e9ea39
1f03e8
%if %{with spring}
d32870
# For now blueprint module fails to compile. Disable it.
d32870
%if 0
7b4e68
%package        blueprint
7b4e68
Summary:        Schema-driven namespace handler for Apache Aries Blueprint
7b4e68
7b4e68
%description    blueprint
7b4e68
This package provides %{summary}.
d32870
%endif
7b4e68
7b4e68
%package        classloader
7b4e68
Summary:        A flexibie multi-parent classloader
7b4e68
7b4e68
%description    classloader
7b4e68
This package provides %{summary}.
7b4e68
c6daae
%package        spring
c6daae
Summary:        Schema-driven namespace handler for spring contexts
c6daae
Requires:       %{name} = %{version}-%{release}
c6daae
c6daae
%description    spring
c6daae
This package provides %{summary}.
c6daae
c6daae
%package        -n maven-%{name}-plugin
c6daae
Summary:        XBean plugin for Apache Maven
c6daae
c6daae
%description    -n maven-%{name}-plugin
c6daae
This package provides %{summary}.
c6daae
%endif
c6daae
e9ea39
%package        javadoc
e9ea39
Summary:        API documentation for %{name}
e9ea39
e9ea39
%description    javadoc
c6daae
This package provides %{summary}.
e9ea39
e9ea39
%prep
e9ea39
%setup -q
e9ea39
# build failing on this due to doxia-sitetools problems
e9ea39
rm src/site/site.xml
e9ea39
6eb71d
%patch0
d1b112
%patch1
6eb71d
c6daae
%pom_remove_parent
6b2614
%pom_remove_dep mx4j:mx4j
5975bb
%pom_remove_dep :xbean-asm5-shaded xbean-reflect
6b2614
c6daae
# These aren't needed for now
5975bb
%pom_disable_module xbean-asm5-shaded
6b2614
%pom_disable_module xbean-finder-shaded
6b2614
%pom_disable_module xbean-telnet
e9ea39
c6daae
# Prevent modules depending on springframework from building.
1f03e8
%if %{without spring}
c6daae
   %pom_remove_dep org.springframework:
d32870
   #%%pom_disable_module xbean-blueprint
7b4e68
   %pom_disable_module xbean-classloader
c6daae
   %pom_disable_module xbean-spring
c6daae
   %pom_disable_module maven-xbean-plugin
Stanislav Ochotnicky b9433e
%else
Stanislav Ochotnicky b9433e
   %mvn_package :xbean-classloader classloader
Stanislav Ochotnicky b9433e
   %mvn_package :xbean-spring spring
Stanislav Ochotnicky b9433e
   %mvn_package :maven-xbean-plugin maven-xbean-plugin
1f03e8
%endif
d32870
# blueprint FTBFS, disable for now
d32870
%pom_disable_module xbean-blueprint
d32870
1f03e8
# Replace generic OSGi dependencies with either Equinox or Felix
df929f
%pom_remove_dep :org.osgi.core xbean-bundleutils
df929f
%pom_remove_dep org.eclipse:osgi xbean-bundleutils
1f03e8
%if %{with equinox}
1f03e8
  %pom_add_dep org.eclipse.osgi:org.eclipse.osgi xbean-bundleutils
1f03e8
%else
1f03e8
  rm -rf xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/equinox/
1f03e8
  %pom_add_dep org.apache.felix:org.apache.felix.framework xbean-bundleutils
1f03e8
%endif
df929f
6eb71d
# maven-xbean-plugin invocation makes no sense as there are no namespaces
6eb71d
%pom_remove_plugin :maven-xbean-plugin xbean-classloader
df929f
6eb71d
# As auditing tool RAT is useful for upstream only.
6eb71d
%pom_remove_plugin :apache-rat-plugin
e9ea39
7b4e68
# disable copy of internal aries-blueprint
7b4e68
sed -i "s|<Private-Package>|
7b4e68
sed -i "s|</Private-Package>|</Private-Package-->|" xbean-blueprint/pom.xml
7b4e68
c6daae
# Fix ant groupId
c6daae
find -name pom.xml -exec sed -i "s|<groupId>ant</groupId>|<groupId>org.apache.ant</groupId>|" {} \;
7b4e68
# Fix cglib artifactId
7b4e68
find -name pom.xml -exec sed -i "s|<artifactId>cglib-nodep</artifactId>|<artifactId>cglib</artifactId>|" {} \;
46f8c2
e9ea39
%build
Stanislav Ochotnicky b9433e
%mvn_build -f
e9ea39
e9ea39
%install
Stanislav Ochotnicky b9433e
%mvn_install
e9ea39
Stanislav Ochotnicky b9433e
%files -f .mfiles
e9ea39
%doc LICENSE NOTICE
c6daae
%dir %{_javadir}/%{name}
c6daae
1f03e8
%if %{with spring}
d32870
%if 0
Stanislav Ochotnicky b9433e
%files blueprint -f .mfiles-blueprint
7b4e68
%doc LICENSE NOTICE %{name}-blueprint/target/restaurant.xsd*
d32870
%endif
7b4e68
Stanislav Ochotnicky b9433e
%files classloader -f .mfiles-classloader
7b4e68
%doc LICENSE NOTICE
7b4e68
Stanislav Ochotnicky b9433e
%files spring -f .mfiles-spring
c6daae
%doc LICENSE NOTICE
c6daae
Stanislav Ochotnicky b9433e
%files -n maven-%{name}-plugin -f .mfiles-maven-%{name}-plugin
c6daae
%doc LICENSE NOTICE
c6daae
%endif
e9ea39
Stanislav Ochotnicky b9433e
%files javadoc -f .mfiles-javadoc
c6daae
%doc LICENSE NOTICE
e9ea39
e9ea39
%changelog
c53430
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.17-2
c53430
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c53430
5975bb
* Mon Apr 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.17-1
5975bb
- Update to upstream version 3.17
d1b112
- Add patch for Eclipse Luna
5975bb
6eb71d
* Thu Dec  5 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.16-1
6eb71d
- Update to upstream version 3.16
6eb71d
Stanislav Ochotnicky b9433e
* Thu Aug 08 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.13-4
Stanislav Ochotnicky b9433e
- Update to latest packaging guidelines
Stanislav Ochotnicky b9433e
53770c
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.13-3
53770c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
53770c
d5006b
* Mon Apr 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.13-2
d5006b
- Remove unneeded BR: maven-idea-plugin
d5006b
fe19d1
* Fri Mar 15 2013 Michal Srb <msrb@redhat.com> - 3.13-1
fe19d1
- Update to upstream version 3.13
fe19d1
79bc1e
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.12-6
79bc1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
79bc1e
Stanislav Ochotnicky b76f3f
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.12-5
Stanislav Ochotnicky b76f3f
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky b76f3f
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky b76f3f
d32870
* Mon Dec 17 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.12-4
d32870
- Enable xbean-spring, resolves rhbz#887496
d32870
- Disable xbean-blueprint due to FTBFS
d32870
0bc30a
* Mon Oct 22 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.12-3
0bc30a
- Replace eclipse-rcp requires with eclipse-equinox-osgi
0bc30a
- Reenable Equinox
0bc30a
7b4e68
* Tue Oct 16 2012 gil cattaneo <puntogil@libero.it> - 3.12-2
7b4e68
- Enable xbean-blueprint and xbean-classloader modules
7b4e68
5d710c
* Wed Oct 10 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.12-1
5d710c
- Update to upstream version 3.12
5d710c
Krzysztof Daniel 813651
* Wed Oct 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 3.11.1-8
Krzysztof Daniel 813651
- Revert previous changes.
Krzysztof Daniel 813651
Krzysztof Daniel 0886a0
* Wed Oct 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 3.11.1-7
Krzysztof Daniel 0886a0
- Disable parts dependent on Eclipse (for bootstraping purpose).
Krzysztof Daniel 0886a0
1f03e8
* Wed Oct 10 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.11.1-6
1f03e8
- Implement equinox and spring conditionals
1f03e8
1d6ef5
* Mon Sep  3 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.11.1-5
1d6ef5
- Fix eclipse requires
1d6ef5
8b7e70
* Mon Aug 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.11.1-4
8b7e70
- Fix felix-framework enabling patch
8b7e70
c6daae
* Mon Aug  6 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.11.1-3
c6daae
- Enable xbean-spring
c6daae
- Enable maven-xbean-plugin
c6daae
- Remove RPM bug workaround
c6daae
1faa51
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.11.1-2
1faa51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1faa51
df929f
* Fri Jul 13 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.11.1-1
df929f
- Update to the upstream version 3.11.1
df929f
- Force use of Equinox instead of Felix
df929f
- Convert patch to POM macros
df929f
Stanislav Ochotnicky 351792
* Thu May  3 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.8-5
Stanislav Ochotnicky 351792
- Remove mx4j from deps (javax.management provided by JDK 1.5+)
Stanislav Ochotnicky 351792
ccd6fe
* Tue Apr 24 2012 Alexander Kurtakov <akurtako@redhat.com> 3.8-4
ccd6fe
- BR felix-framework instead of felix-osgi-core.
ccd6fe
46f8c2
* Tue Apr 24 2012 Alexander Kurtakov <akurtako@redhat.com> 3.8-3
46f8c2
- Do not build equinox specific parts for RHEL.
46f8c2
887926
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8-2
887926
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
887926
Stanislav Ochotnicky abc71d
* Tue Dec  6 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.8-1
Stanislav Ochotnicky abc71d
- Update to latest upstream version
Stanislav Ochotnicky abc71d
- Build with maven 3
Stanislav Ochotnicky abc71d
- Packaging & guidelines fixes
Stanislav Ochotnicky abc71d
Stanislav Ochotnicky 566be5
* Sat May 28 2011 Marek Goldmann <mgoldman@redhat.com> - 3.7-7
Stanislav Ochotnicky 566be5
- Added xbean-finder and xbean-bundleutils submodules
Stanislav Ochotnicky 566be5
Stanislav Ochotnicky 8c7505
* Fri Mar  4 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-6
Stanislav Ochotnicky 8c7505
- Add comment for removing javadoc
Stanislav Ochotnicky 8c7505
- Fix maven 3 build
Stanislav Ochotnicky 8c7505
0d21c6
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7-5
0d21c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0d21c6
Stanislav Ochotnicky bfa0c2
* Mon Dec  6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-4
Stanislav Ochotnicky bfa0c2
- Fix pom filename (Resolves rhbz#655827)
Stanislav Ochotnicky bfa0c2
- Add depmap for main pom file
Stanislav Ochotnicky bfa0c2
- Fixes according to new guidelines (versionless jars, javadocs)
Stanislav Ochotnicky bfa0c2
Stanislav Ochotnicky a12bb0
* Fri Jul 30 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-3
Stanislav Ochotnicky a12bb0
- Use javadoc:aggregate to generate javadocs
Stanislav Ochotnicky a12bb0
e9ea39
* Fri Jul  9 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-2
e9ea39
- Add license to javadoc subpackage
e9ea39
e9ea39
* Mon Jun 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-1
e9ea39
- First release