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