Blame SPECS/xbean.spec

4ee2b5
%{?scl:%scl_package xbean}
4ee2b5
%{!?scl:%global pkg_name %{name}}
4ee2b5
4ee2b5
# Conditionals to help breaking eclipse <-> xbean dependency cycle
4ee2b5
# when bootstrapping for new architectures
4ee2b5
%bcond_without equinox
4ee2b5
%bcond_without groovy
4ee2b5
%bcond_without spring
4ee2b5
4ee2b5
Name:           %{?scl_prefix}xbean
4ee2b5
Version:        4.5
4ee2b5
Release:        7.2%{?dist}
4ee2b5
Summary:        Java plugin based web server
4ee2b5
License:        ASL 2.0
4ee2b5
URL:            http://geronimo.apache.org/xbean/
4ee2b5
BuildArch:      noarch
4ee2b5
4ee2b5
Source0:        http://repo2.maven.org/maven2/org/apache/%{pkg_name}/%{pkg_name}/%{version}/%{pkg_name}-%{version}-source-release.zip
4ee2b5
4ee2b5
# Fix dependency on xbean-asm4-shaded to original objectweb-asm
4ee2b5
Patch0:         0001-Unshade-ASM.patch
4ee2b5
# Compatibility with Eclipse Luna (rhbz#1087461)
4ee2b5
Patch1:         0002-Port-to-Eclipse-Luna-OSGi.patch
4ee2b5
Patch2:         0003-Port-to-QDox-2.0.patch
4ee2b5
4ee2b5
BuildRequires:  %{?scl_prefix}maven-local
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(commons-logging:commons-logging-api)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(log4j:log4j:1.2.12)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(org.apache.felix:maven-bundle-plugin)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.plugins:maven-source-plugin)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(org.osgi:org.osgi.core)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(org.ow2.asm:asm)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(org.ow2.asm:asm-commons)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(org.slf4j:slf4j-api)
4ee2b5
4ee2b5
%if %{with equinox}
4ee2b5
BuildRequires:  mvn(org.eclipse:osgi)
4ee2b5
%endif
4ee2b5
4ee2b5
%if %{with groovy}
4ee2b5
BuildRequires:  mvn(org.codehaus.groovy:groovy-all)
4ee2b5
%endif
4ee2b5
4ee2b5
%if %{with spring}
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(ant:ant)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(commons-logging:commons-logging)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(com.thoughtworks.qdox:qdox)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-archiver)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-artifact)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-plugin-api)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-project)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.plugins:maven-antrun-plugin)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.plugins:maven-plugin-plugin)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(org.codehaus.plexus:plexus-archiver)
4ee2b5
BuildRequires:  %{?scl_prefix}mvn(org.codehaus.plexus:plexus-utils)
4ee2b5
BuildRequires:  mvn(org.springframework:spring-beans)
4ee2b5
BuildRequires:  mvn(org.springframework:spring-context)
4ee2b5
BuildRequires:  mvn(org.springframework:spring-web)
4ee2b5
%endif
4ee2b5
4ee2b5
%description
4ee2b5
The goal of XBean project is to create a plugin based server
4ee2b5
analogous to Eclipse being a plugin based IDE. XBean will be able to
4ee2b5
discover, download and install server plugins from an Internet based
4ee2b5
repository. In addition, we include support for multiple IoC systems,
4ee2b5
support for running with no IoC system, JMX without JMX code,
4ee2b5
lifecycle and class loader management, and a rock solid Spring
4ee2b5
integration.
4ee2b5
4ee2b5
%if %{with spring}
4ee2b5
# For now blueprint module fails to compile. Disable it.
4ee2b5
%if 0
4ee2b5
4ee2b5
%package        blueprint
4ee2b5
Summary:        Schema-driven namespace handler for Apache Aries Blueprint
4ee2b5
4ee2b5
%description    blueprint
4ee2b5
This package provides %{summary}.
4ee2b5
%endif
4ee2b5
4ee2b5
%package        classloader
4ee2b5
Summary:        A flexibie multi-parent classloader
4ee2b5
4ee2b5
%description    classloader
4ee2b5
This package provides %{summary}.
4ee2b5
4ee2b5
%package        spring
4ee2b5
Summary:        Schema-driven namespace handler for spring contexts
4ee2b5
Requires:       %{name} = %{version}-%{release}
4ee2b5
4ee2b5
%description    spring
4ee2b5
This package provides %{summary}.
4ee2b5
4ee2b5
%package        -n %{?scl_prefix}maven-%{pkg_name}-plugin
4ee2b5
Summary:        XBean plugin for Apache Maven
4ee2b5
4ee2b5
%description    -n %{?scl_prefix}maven-%{pkg_name}-plugin
4ee2b5
This package provides %{summary}.
4ee2b5
%endif
4ee2b5
4ee2b5
%package        javadoc
4ee2b5
Summary:        API documentation for %{pkg_name}
4ee2b5
4ee2b5
%description    javadoc
4ee2b5
This package provides %{summary}.
4ee2b5
4ee2b5
%prep
4ee2b5
%setup -n %{pkg_name}-%{version} -q
4ee2b5
# build failing on this due to doxia-sitetools problems
4ee2b5
rm src/site/site.xml
4ee2b5
4ee2b5
%patch0 -p1
4ee2b5
%if %{with equinox}
4ee2b5
%patch1 -p1
4ee2b5
%endif
4ee2b5
%patch2 -p1
4ee2b5
4ee2b5
%pom_remove_parent
4ee2b5
%pom_remove_dep mx4j:mx4j
4ee2b5
4ee2b5
%pom_remove_dep -r :xbean-asm5-shaded
4ee2b5
%pom_remove_dep -r :xbean-finder-shaded
4ee2b5
%pom_disable_module xbean-asm5-shaded
4ee2b5
%pom_disable_module xbean-finder-shaded
4ee2b5
4ee2b5
%pom_xpath_remove pom:scope xbean-asm-util
4ee2b5
%pom_xpath_remove pom:optional xbean-asm-util
4ee2b5
4ee2b5
# Prevent modules depending on springframework from building.
4ee2b5
%if %{without spring}
4ee2b5
   %pom_remove_dep org.springframework:
4ee2b5
   #%%pom_disable_module xbean-blueprint
4ee2b5
   %pom_disable_module xbean-classloader
4ee2b5
   %pom_disable_module xbean-spring
4ee2b5
   %pom_disable_module maven-xbean-plugin
4ee2b5
%else
4ee2b5
   %mvn_package :xbean-classloader classloader
4ee2b5
   %mvn_package :xbean-spring spring
4ee2b5
   %mvn_package :maven-xbean-plugin maven-xbean-plugin
4ee2b5
%endif
4ee2b5
# blueprint FTBFS, disable for now
4ee2b5
%pom_disable_module xbean-blueprint
4ee2b5
4ee2b5
%if %{without equinox}
4ee2b5
  %pom_remove_dep :xbean-bundleutils xbean-finder
4ee2b5
  rm -r xbean-finder/src/main/java/org/apache/xbean/finder{,/archive}/Bundle*
4ee2b5
  %pom_disable_module xbean-bundleutils
4ee2b5
%endif
4ee2b5
4ee2b5
%if %{without groovy}
4ee2b5
%pom_disable_module xbean-telnet
4ee2b5
%endif
4ee2b5
4ee2b5
# maven-xbean-plugin invocation makes no sense as there are no namespaces
4ee2b5
%pom_remove_plugin :maven-xbean-plugin xbean-classloader
4ee2b5
4ee2b5
# As auditing tool RAT is useful for upstream only.
4ee2b5
%pom_remove_plugin :apache-rat-plugin
4ee2b5
4ee2b5
# disable copy of internal aries-blueprint
4ee2b5
sed -i "s|<Private-Package>|
4ee2b5
sed -i "s|</Private-Package>|</Private-Package-->|" xbean-blueprint/pom.xml
4ee2b5
4ee2b5
%build
4ee2b5
%mvn_build -f
4ee2b5
4ee2b5
%install
4ee2b5
%mvn_install
4ee2b5
4ee2b5
%files -f .mfiles
4ee2b5
%doc LICENSE NOTICE
4ee2b5
%dir %{_javadir}/%{pkg_name}
4ee2b5
4ee2b5
%if %{with spring}
4ee2b5
%if 0
4ee2b5
4ee2b5
%files blueprint -f .mfiles-blueprint
4ee2b5
%doc LICENSE NOTICE %{pkg_name}-blueprint/target/restaurant.xsd*
4ee2b5
%endif
4ee2b5
4ee2b5
%files classloader -f .mfiles-classloader
4ee2b5
%doc LICENSE NOTICE
4ee2b5
4ee2b5
%files spring -f .mfiles-spring
4ee2b5
%doc LICENSE NOTICE
4ee2b5
4ee2b5
%files -n %{?scl_prefix}maven-%{pkg_name}-plugin -f .mfiles-maven-%{pkg_name}-plugin
4ee2b5
%doc LICENSE NOTICE
4ee2b5
%endif
4ee2b5
4ee2b5
%files javadoc -f .mfiles-javadoc
4ee2b5
%doc LICENSE NOTICE
4ee2b5
4ee2b5
%changelog
4ee2b5
* Thu Jun 22 2017 Michael Simacek <msimacek@redhat.com> - 4.5-7.2
4ee2b5
- Mass rebuild 2017-06-22
4ee2b5
4ee2b5
* Wed Jun 21 2017 Java Maintainers <java-maint@redhat.com> - 4.5-7.1
4ee2b5
- Automated package import and SCL-ization
4ee2b5
4ee2b5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5-7
4ee2b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4ee2b5
4ee2b5
* Wed Feb  1 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5-6
4ee2b5
- Introduce groovy build conditional
4ee2b5
4ee2b5
* Wed Feb 01 2017 Michael Simacek <msimacek@redhat.com> - 4.5-5
4ee2b5
- Fix build with conditionals
4ee2b5
4ee2b5
* Wed Feb 01 2017 Michael Simacek <msimacek@redhat.com> - 4.5-4
4ee2b5
- Port to current QDox
4ee2b5
4ee2b5
* Thu Jun 16 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5-3
4ee2b5
- Add missing build-requires
4ee2b5
4ee2b5
* Thu May 12 2016 Michael Simacek <msimacek@redhat.com> - 4.5-2
4ee2b5
- Enable xbean-asm-util
4ee2b5
4ee2b5
* Mon May 02 2016 Michael Simacek <msimacek@redhat.com> - 4.5-1
4ee2b5
- Update to upstream version 4.5
4ee2b5
4ee2b5
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.4-2
4ee2b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4ee2b5
4ee2b5
* Tue Nov 24 2015 Michael Simacek <msimacek@redhat.com> - 4.4-1
4ee2b5
- Update to upstream version 4.4
4ee2b5
- Rebase patches
4ee2b5
- Remove obsolete groovy patch
4ee2b5
4ee2b5
* Mon Jul 13 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3-1
4ee2b5
- Update to upstream version 4.3
4ee2b5
4ee2b5
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2-2
4ee2b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4ee2b5
4ee2b5
* Wed Apr  1 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2-1
4ee2b5
- Update to upstream version 4.2
4ee2b5
4ee2b5
* Thu Feb  5 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.1-2
4ee2b5
- Fix patch unshading ASM
4ee2b5
4ee2b5
* Fri Nov 21 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.1-1
4ee2b5
- Update to upstream version 4.1
4ee2b5
4ee2b5
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.17-2
4ee2b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4ee2b5
4ee2b5
* Mon Apr 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.17-1
4ee2b5
- Update to upstream version 3.17
4ee2b5
- Add patch for Eclipse Luna
4ee2b5
4ee2b5
* Thu Dec  5 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.16-1
4ee2b5
- Update to upstream version 3.16
4ee2b5
4ee2b5
* Thu Aug 08 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.13-4
4ee2b5
- Update to latest packaging guidelines
4ee2b5
4ee2b5
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.13-3
4ee2b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4ee2b5
4ee2b5
* Mon Apr 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.13-2
4ee2b5
- Remove unneeded BR: maven-idea-plugin
4ee2b5
4ee2b5
* Fri Mar 15 2013 Michal Srb <msrb@redhat.com> - 3.13-1
4ee2b5
- Update to upstream version 3.13
4ee2b5
4ee2b5
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.12-6
4ee2b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4ee2b5
4ee2b5
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.12-5
4ee2b5
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
4ee2b5
- Replace maven BuildRequires with maven-local
4ee2b5
4ee2b5
* Mon Dec 17 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.12-4
4ee2b5
- Enable xbean-spring, resolves rhbz#887496
4ee2b5
- Disable xbean-blueprint due to FTBFS
4ee2b5
4ee2b5
* Mon Oct 22 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.12-3
4ee2b5
- Replace eclipse-rcp requires with eclipse-equinox-osgi
4ee2b5
- Reenable Equinox
4ee2b5
4ee2b5
* Tue Oct 16 2012 gil cattaneo <puntogil@libero.it> - 3.12-2
4ee2b5
- Enable xbean-blueprint and xbean-classloader modules
4ee2b5
4ee2b5
* Wed Oct 10 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.12-1
4ee2b5
- Update to upstream version 3.12
4ee2b5
4ee2b5
* Wed Oct 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 3.11.1-8
4ee2b5
- Revert previous changes.
4ee2b5
4ee2b5
* Wed Oct 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 3.11.1-7
4ee2b5
- Disable parts dependent on Eclipse (for bootstraping purpose).
4ee2b5
4ee2b5
* Wed Oct 10 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.11.1-6
4ee2b5
- Implement equinox and spring conditionals
4ee2b5
4ee2b5
* Mon Sep  3 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.11.1-5
4ee2b5
- Fix eclipse requires
4ee2b5
4ee2b5
* Mon Aug 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.11.1-4
4ee2b5
- Fix felix-framework enabling patch
4ee2b5
4ee2b5
* Mon Aug  6 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.11.1-3
4ee2b5
- Enable xbean-spring
4ee2b5
- Enable maven-xbean-plugin
4ee2b5
- Remove RPM bug workaround
4ee2b5
4ee2b5
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.11.1-2
4ee2b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4ee2b5
4ee2b5
* Fri Jul 13 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.11.1-1
4ee2b5
- Update to the upstream version 3.11.1
4ee2b5
- Force use of Equinox instead of Felix
4ee2b5
- Convert patch to POM macros
4ee2b5
4ee2b5
* Thu May  3 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.8-5
4ee2b5
- Remove mx4j from deps (javax.management provided by JDK 1.5+)
4ee2b5
4ee2b5
* Tue Apr 24 2012 Alexander Kurtakov <akurtako@redhat.com> 3.8-4
4ee2b5
- BR felix-framework instead of felix-osgi-core.
4ee2b5
4ee2b5
* Tue Apr 24 2012 Alexander Kurtakov <akurtako@redhat.com> 3.8-3
4ee2b5
- Do not build equinox specific parts for RHEL.
4ee2b5
4ee2b5
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8-2
4ee2b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4ee2b5
4ee2b5
* Tue Dec  6 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.8-1
4ee2b5
- Update to latest upstream version
4ee2b5
- Build with maven 3
4ee2b5
- Packaging & guidelines fixes
4ee2b5
4ee2b5
* Sat May 28 2011 Marek Goldmann <mgoldman@redhat.com> - 3.7-7
4ee2b5
- Added xbean-finder and xbean-bundleutils submodules
4ee2b5
4ee2b5
* Fri Mar  4 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-6
4ee2b5
- Add comment for removing javadoc
4ee2b5
- Fix maven 3 build
4ee2b5
4ee2b5
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7-5
4ee2b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4ee2b5
4ee2b5
* Mon Dec  6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-4
4ee2b5
- Fix pom filename (Resolves rhbz#655827)
4ee2b5
- Add depmap for main pom file
4ee2b5
- Fixes according to new guidelines (versionless jars, javadocs)
4ee2b5
4ee2b5
* Fri Jul 30 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-3
4ee2b5
- Use javadoc:aggregate to generate javadocs
4ee2b5
4ee2b5
* Fri Jul  9 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-2
4ee2b5
- Add license to javadoc subpackage
4ee2b5
4ee2b5
* Mon Jun 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-1
4ee2b5
- First release