Blame SPECS/xbean.spec

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