1f03e8b
# Conditionals to help breaking eclipse <-> xbean dependency cycle
1f03e8b
# when bootstrapping for new architectures
0bc30a9
%bcond_without equinox
760f6fa
%bcond_without groovy
d328709
%bcond_without spring
1f03e8b
e9ea394
Name:           xbean
09968fd
Version:        4.8
0615fa0
Release:        1%{?dist}
e9ea394
Summary:        Java plugin based web server
e9ea394
License:        ASL 2.0
e9ea394
URL:            http://geronimo.apache.org/xbean/
695e146
BuildArch:      noarch
e9ea394
fe19d1b
Source0:        http://repo2.maven.org/maven2/org/apache/%{name}/%{name}/%{version}/%{name}-%{version}-source-release.zip
e9ea394
d1b1121
# Compatibility with Eclipse Luna (rhbz#1087461)
695e146
Patch1:         0002-Port-to-Eclipse-Luna-OSGi.patch
695e146
Patch2:         0003-Port-to-QDox-2.0.patch
6eb71d5
Stanislav Ochotnicky b76f3fd
BuildRequires:  maven-local
f250f11
BuildRequires:  mvn(commons-logging:commons-logging-api)
f250f11
BuildRequires:  mvn(log4j:log4j:1.2.12)
f250f11
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
f250f11
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
f250f11
BuildRequires:  mvn(org.osgi:org.osgi.core)
f250f11
BuildRequires:  mvn(org.ow2.asm:asm)
f250f11
BuildRequires:  mvn(org.ow2.asm:asm-commons)
f250f11
BuildRequires:  mvn(org.slf4j:slf4j-api)
f250f11
1f03e8b
%if %{with equinox}
f250f11
BuildRequires:  mvn(org.eclipse:osgi)
1f03e8b
%endif
f250f11
760f6fa
%if %{with groovy}
760f6fa
BuildRequires:  mvn(org.codehaus.groovy:groovy-all)
760f6fa
%endif
760f6fa
1f03e8b
%if %{with spring}
f250f11
BuildRequires:  mvn(ant:ant)
f250f11
BuildRequires:  mvn(commons-logging:commons-logging)
f250f11
BuildRequires:  mvn(com.thoughtworks.qdox:qdox)
f250f11
BuildRequires:  mvn(org.apache.maven:maven-archiver)
f250f11
BuildRequires:  mvn(org.apache.maven:maven-artifact)
f250f11
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
f250f11
BuildRequires:  mvn(org.apache.maven:maven-project)
f250f11
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
f250f11
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
f250f11
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)
f250f11
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
f250f11
BuildRequires:  mvn(org.springframework:spring-beans)
f250f11
BuildRequires:  mvn(org.springframework:spring-context)
f250f11
BuildRequires:  mvn(org.springframework:spring-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
695e146
%if %{with equinox}
695e146
%patch1 -p1
695e146
%endif
695e146
%patch2 -p1
6eb71d5
c6daae2
%pom_remove_parent
6b26146
%pom_remove_dep mx4j:mx4j
e9ea394
0615fa0
# Unshade ASM
0615fa0
%pom_remove_dep -r :xbean-asm6-shaded
b690c49
%pom_remove_dep -r :xbean-finder-shaded
0615fa0
%pom_disable_module xbean-asm6-shaded
b690c49
%pom_disable_module xbean-finder-shaded
0615fa0
%pom_add_dep org.apache.xbean:xbean-asm-util:%{version} xbean-reflect
0615fa0
%pom_xpath_remove pom:optional xbean-reflect xbean-asm-util
0615fa0
%pom_xpath_remove 'pom:scope[text()="provided"]' xbean-reflect xbean-asm-util
0615fa0
sed -i 's/org\.apache\.xbean\.asm6/org.objectweb.asm/g' `find xbean-reflect -name '*.java'`
49bfa05
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
695e146
%if %{without equinox}
f250f11
  %pom_remove_dep :xbean-bundleutils xbean-finder
f250f11
  rm -r xbean-finder/src/main/java/org/apache/xbean/finder{,/archive}/Bundle*
f250f11
  %pom_disable_module xbean-bundleutils
1f03e8b
%endif
df929fb
760f6fa
%if %{without groovy}
760f6fa
%pom_disable_module xbean-telnet
760f6fa
%endif
760f6fa
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
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
09968fd
* Thu Apr 19 2018 Michael Simacek <msimacek@redhat.com> - 4.8-1
09968fd
- Update to upstream version 4.8
09968fd
0615fa0
* Tue Mar 13 2018 Michael Simacek <msimacek@redhat.com> - 4.6-1
0615fa0
- Update to upstream version 4.6
0615fa0
641e6c0
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.5-9
641e6c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
641e6c0
c85251e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5-8
c85251e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c85251e
5bcb859
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5-7
5bcb859
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5bcb859
760f6fa
* Wed Feb  1 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5-6
760f6fa
- Introduce groovy build conditional
760f6fa
f250f11
* Wed Feb 01 2017 Michael Simacek <msimacek@redhat.com> - 4.5-5
f250f11
- Fix build with conditionals
f250f11
7780cbd
* Wed Feb 01 2017 Michael Simacek <msimacek@redhat.com> - 4.5-4
7780cbd
- Port to current QDox
7780cbd
3b718cb
* Thu Jun 16 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5-3
3b718cb
- Add missing build-requires
3b718cb
49bfa05
* Thu May 12 2016 Michael Simacek <msimacek@redhat.com> - 4.5-2
49bfa05
- Enable xbean-asm-util
49bfa05
6abf102
* Mon May 02 2016 Michael Simacek <msimacek@redhat.com> - 4.5-1
6abf102
- Update to upstream version 4.5
6abf102
651154e
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.4-2
651154e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
651154e
b690c49
* Tue Nov 24 2015 Michael Simacek <msimacek@redhat.com> - 4.4-1
b690c49
- Update to upstream version 4.4
b690c49
- Rebase patches
b690c49
- Remove obsolete groovy patch
b690c49
de40555
* Mon Jul 13 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3-1
de40555
- Update to upstream version 4.3
de40555
7a731c2
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-2
7a731c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7a731c2
8874c82
* Wed Apr  1 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2-1
8874c82
- Update to upstream version 4.2
8874c82
9695710
* Thu Feb  5 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.1-2
9695710
- Fix patch unshading ASM
9695710
695e146
* Fri Nov 21 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.1-1
695e146
- Update to upstream version 4.1
695e146
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