2010-07-13 08:21:01 +00:00
|
|
|
Name: xbean
|
2012-07-13 13:12:37 +00:00
|
|
|
Version: 3.11.1
|
2010-07-13 08:21:01 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2012-07-22 04:25:27 +00:00
|
|
|
Release: 2%{?dist}
|
2010-07-13 08:21:01 +00:00
|
|
|
Summary: Java plugin based web server
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: http://geronimo.apache.org/xbean/
|
|
|
|
|
|
|
|
# unfortunately no source/binary releases are being made lately, just
|
|
|
|
# tags in repos and binary releases in maven repositories
|
2011-12-06 14:51:00 +00:00
|
|
|
# svn export http://svn.apache.org/repos/asf/geronimo/xbean/tags/xbean-3.8
|
|
|
|
# tar caf xbean-3.8.tar.xz xbean-3.8
|
2010-07-13 08:21:01 +00:00
|
|
|
Source0: xbean-%{version}.tar.xz
|
|
|
|
Source1: xbean.depmap
|
|
|
|
|
|
|
|
BuildRequires: java-devel
|
|
|
|
BuildRequires: apache-commons-beanutils
|
|
|
|
BuildRequires: apache-commons-logging
|
|
|
|
BuildRequires: objectweb-asm
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: qdox
|
|
|
|
BuildRequires: slf4j
|
2011-12-06 14:51:00 +00:00
|
|
|
BuildRequires: maven
|
2010-07-13 08:21:01 +00:00
|
|
|
BuildRequires: maven-plugin-bundle
|
|
|
|
BuildRequires: maven-antrun-plugin
|
|
|
|
BuildRequires: maven-compiler-plugin
|
2011-12-06 14:51:00 +00:00
|
|
|
BuildRequires: maven-dependency-plugin
|
2010-07-13 08:21:01 +00:00
|
|
|
BuildRequires: maven-idea-plugin
|
|
|
|
BuildRequires: maven-install-plugin
|
|
|
|
BuildRequires: maven-javadoc-plugin
|
|
|
|
BuildRequires: maven-resources-plugin
|
2012-04-24 11:44:26 +00:00
|
|
|
BuildRequires: maven-surefire-plugin
|
2010-07-13 08:21:01 +00:00
|
|
|
BuildRequires: maven-site-plugin
|
2011-03-04 11:55:42 +00:00
|
|
|
BuildRequires: maven-shade-plugin
|
2012-04-24 11:44:26 +00:00
|
|
|
%if !0%{?rhel:1}
|
2011-12-06 14:51:00 +00:00
|
|
|
BuildRequires: eclipse-rcp
|
2012-04-24 11:44:26 +00:00
|
|
|
%endif
|
2010-07-13 08:21:01 +00:00
|
|
|
|
|
|
|
Requires: java
|
2012-07-13 13:12:37 +00:00
|
|
|
Requires: jpackage-utils
|
2010-07-13 08:21:01 +00:00
|
|
|
Requires: apache-commons-logging
|
2012-07-13 13:12:37 +00:00
|
|
|
Requires: objectweb-asm
|
|
|
|
Requires: slf4j
|
|
|
|
Requires: eclipse-rcp
|
2010-07-13 08:21:01 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The goal of XBean project is to create a plugin based server
|
|
|
|
analogous to Eclipse being a plugin based IDE. XBean will be able to
|
|
|
|
discover, download and install server plugins from an Internet based
|
|
|
|
repository. In addition, we include support for multiple IoC systems,
|
|
|
|
support for running with no IoC system, JMX without JMX code,
|
|
|
|
lifecycle and class loader management, and a rock solid Spring
|
|
|
|
integration.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
Requires: jpackage-utils
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
# build failing on this due to doxia-sitetools problems
|
|
|
|
rm src/site/site.xml
|
|
|
|
|
2012-07-13 10:37:33 +00:00
|
|
|
%pom_xpath_remove "pom:parent"
|
|
|
|
%pom_remove_dep org.springframework:
|
|
|
|
%pom_remove_dep mx4j:mx4j
|
|
|
|
%pom_remove_dep :xbean-asm-shaded xbean-reflect
|
|
|
|
|
|
|
|
# Prevent modules depending on springframework from building.
|
|
|
|
%pom_disable_module xbean-asm-shaded
|
|
|
|
%pom_disable_module xbean-blueprint
|
|
|
|
%pom_disable_module xbean-classloader
|
|
|
|
%pom_disable_module xbean-finder-shaded
|
|
|
|
%pom_disable_module xbean-spring
|
|
|
|
%pom_disable_module xbean-telnet
|
|
|
|
%pom_disable_module maven-xbean-plugin
|
2010-07-13 08:21:01 +00:00
|
|
|
|
2012-07-13 10:37:33 +00:00
|
|
|
%pom_xpath_inject "pom:build/pom:plugins" "
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<source>1.5</source>
|
|
|
|
<target>1.5</target>
|
|
|
|
</configuration>
|
|
|
|
</plugin>"
|
2012-04-24 11:44:26 +00:00
|
|
|
|
2012-07-13 13:12:37 +00:00
|
|
|
# Force use of Equinox
|
|
|
|
%pom_remove_dep :org.osgi.core xbean-bundleutils
|
|
|
|
%pom_remove_dep org.eclipse:osgi xbean-bundleutils
|
|
|
|
%pom_xpath_inject "pom:project/pom:dependencies" "
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.osgi</groupId>
|
|
|
|
<artifactId>org.eclipse.osgi</artifactId>
|
|
|
|
<version>any</version>
|
|
|
|
</dependency>" xbean-bundleutils
|
|
|
|
|
|
|
|
|
2010-07-13 08:21:01 +00:00
|
|
|
# Fix dependency on xbean-asm-shaded to original objectweb-asm
|
|
|
|
sed -i 's/org.apache.xbean.asm/org.objectweb.asm/' \
|
|
|
|
xbean-reflect/src/main/java/org/apache/xbean/recipe/XbeanAsmParameterNameLoader.java
|
|
|
|
|
2012-04-24 11:44:26 +00:00
|
|
|
# Do not build equinox specific part for rhel.
|
|
|
|
%if 0%{?rhel} > 6
|
|
|
|
rm -fr xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/equinox/
|
|
|
|
sed -i "s|<groupId>org.eclipse|<groupId>org.apache.felix|g" xbean-bundleutils/pom.xml
|
|
|
|
sed -i "s|<artifactId>osgi|<artifactId>org.apache.felix.framework|g" xbean-bundleutils/pom.xml
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2010-07-13 08:21:01 +00:00
|
|
|
%build
|
2011-12-06 14:51:00 +00:00
|
|
|
mvn-rpmbuild -e \
|
|
|
|
-Dmaven.local.depmap.file="%{SOURCE1}" \
|
|
|
|
-Dmaven.test.skip=true \
|
2010-07-30 14:03:19 +00:00
|
|
|
install javadoc:aggregate
|
2010-07-13 08:21:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
# for every module we want to be built
|
2011-05-30 09:05:53 +00:00
|
|
|
for sub in bundleutils finder reflect naming classpath; do
|
2010-07-13 08:21:01 +00:00
|
|
|
# install jar
|
|
|
|
install -Dpm 644 %{name}-${sub}/target/%{name}-${sub}-%{version}.jar \
|
2010-12-06 16:43:59 +00:00
|
|
|
$RPM_BUILD_ROOT/%{_javadir}/xbean/%{name}-${sub}.jar;
|
2010-07-13 08:21:01 +00:00
|
|
|
|
|
|
|
# intall pom
|
2010-12-06 16:43:59 +00:00
|
|
|
install -Dpm 644 %{name}-${sub}/pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP.%{name}-%{name}-${sub}.pom
|
2010-07-13 08:21:01 +00:00
|
|
|
|
|
|
|
# maven depmap
|
2011-12-06 14:51:00 +00:00
|
|
|
%add_maven_depmap JPP.%{name}-%{name}-${sub}.pom %{name}/%{name}-${sub}.jar
|
2010-07-13 08:21:01 +00:00
|
|
|
done
|
2010-07-30 14:03:19 +00:00
|
|
|
|
2010-12-06 16:43:59 +00:00
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
|
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
2010-07-13 08:21:01 +00:00
|
|
|
|
|
|
|
# parent pom
|
2010-12-06 16:43:59 +00:00
|
|
|
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP.%{name}-main.pom
|
2011-12-06 14:51:00 +00:00
|
|
|
%add_maven_depmap JPP.%{name}-main.pom
|
2010-07-13 08:21:01 +00:00
|
|
|
|
2010-12-06 16:43:59 +00:00
|
|
|
%pre javadoc
|
2011-03-04 11:55:42 +00:00
|
|
|
# workaround for rpm bug, can be removed in F-17
|
2010-12-06 16:43:59 +00:00
|
|
|
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
|
|
|
|
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
|
2010-07-13 08:21:01 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc LICENSE NOTICE
|
2010-12-06 16:43:59 +00:00
|
|
|
%{_mavenpomdir}/*.pom
|
2010-07-13 08:21:01 +00:00
|
|
|
%{_mavendepmapfragdir}/%{name}
|
|
|
|
%{_javadir}/%{name}
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%doc LICENSE
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|
2012-07-22 04:25:27 +00:00
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.11.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-07-13 13:12:37 +00:00
|
|
|
* Fri Jul 13 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.11.1-1
|
|
|
|
- Update to the upstream version 3.11.1
|
|
|
|
- Force use of Equinox instead of Felix
|
|
|
|
- Convert patch to POM macros
|
|
|
|
|
2012-05-03 13:55:22 +00:00
|
|
|
* Thu May 3 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.8-5
|
|
|
|
- Remove mx4j from deps (javax.management provided by JDK 1.5+)
|
|
|
|
|
2012-04-24 11:58:21 +00:00
|
|
|
* Tue Apr 24 2012 Alexander Kurtakov <akurtako@redhat.com> 3.8-4
|
|
|
|
- BR felix-framework instead of felix-osgi-core.
|
|
|
|
|
2012-04-24 11:44:26 +00:00
|
|
|
* Tue Apr 24 2012 Alexander Kurtakov <akurtako@redhat.com> 3.8-3
|
|
|
|
- Do not build equinox specific parts for RHEL.
|
|
|
|
|
2012-01-14 08:37:34 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-12-06 14:51:00 +00:00
|
|
|
* Tue Dec 6 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.8-1
|
|
|
|
- Update to latest upstream version
|
|
|
|
- Build with maven 3
|
|
|
|
- Packaging & guidelines fixes
|
|
|
|
|
2011-05-30 09:05:53 +00:00
|
|
|
* Sat May 28 2011 Marek Goldmann <mgoldman@redhat.com> - 3.7-7
|
|
|
|
- Added xbean-finder and xbean-bundleutils submodules
|
|
|
|
|
2011-03-04 11:55:42 +00:00
|
|
|
* Fri Mar 4 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-6
|
|
|
|
- Add comment for removing javadoc
|
|
|
|
- Fix maven 3 build
|
|
|
|
|
2011-02-08 03:36:53 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-12-06 16:43:59 +00:00
|
|
|
* Mon Dec 6 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-4
|
|
|
|
- Fix pom filename (Resolves rhbz#655827)
|
|
|
|
- Add depmap for main pom file
|
|
|
|
- Fixes according to new guidelines (versionless jars, javadocs)
|
|
|
|
|
2010-07-30 14:03:19 +00:00
|
|
|
* Fri Jul 30 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-3
|
|
|
|
- Use javadoc:aggregate to generate javadocs
|
|
|
|
|
2010-07-13 08:21:01 +00:00
|
|
|
* Fri Jul 9 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-2
|
|
|
|
- Add license to javadoc subpackage
|
|
|
|
|
|
|
|
* Mon Jun 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.7-1
|
|
|
|
- First release
|