|
|
e9ea394 |
Name: xbean
|
|
Stanislav Ochotnicky |
abc71dd |
Version: 3.8
|
|
|
e9ea394 |
BuildArch: noarch
|
|
|
e9ea394 |
|
|
Stanislav Ochotnicky |
3517920 |
Release: 5%{?dist}
|
|
|
e9ea394 |
Summary: Java plugin based web server
|
|
|
e9ea394 |
|
|
|
e9ea394 |
Group: Development/Libraries
|
|
|
e9ea394 |
License: ASL 2.0
|
|
|
e9ea394 |
URL: http://geronimo.apache.org/xbean/
|
|
|
e9ea394 |
|
|
|
e9ea394 |
# unfortunately no source/binary releases are being made lately, just
|
|
|
e9ea394 |
# tags in repos and binary releases in maven repositories
|
|
Stanislav Ochotnicky |
abc71dd |
# svn export http://svn.apache.org/repos/asf/geronimo/xbean/tags/xbean-3.8
|
|
Stanislav Ochotnicky |
abc71dd |
# tar caf xbean-3.8.tar.xz xbean-3.8
|
|
|
e9ea394 |
Source0: xbean-%{version}.tar.xz
|
|
|
e9ea394 |
Source1: xbean.depmap
|
|
|
e9ea394 |
|
|
|
e9ea394 |
Patch0: pom-%{version}.patch
|
|
|
e9ea394 |
|
|
|
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
|
|
|
ccd6fe5 |
BuildRequires: felix-framework
|
|
Stanislav Ochotnicky |
abc71dd |
BuildRequires: maven
|
|
|
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-idea-plugin
|
|
|
e9ea394 |
BuildRequires: maven-install-plugin
|
|
|
e9ea394 |
BuildRequires: maven-javadoc-plugin
|
|
|
e9ea394 |
BuildRequires: maven-resources-plugin
|
|
|
46f8c21 |
BuildRequires: maven-surefire-plugin
|
|
Stanislav Ochotnicky |
abc71dd |
BuildRequires: maven-surefire-provider-junit4
|
|
|
e9ea394 |
BuildRequires: maven-site-plugin
|
|
Stanislav Ochotnicky |
8c75059 |
BuildRequires: maven-shade-plugin
|
|
|
46f8c21 |
%if !0%{?rhel:1}
|
|
Stanislav Ochotnicky |
abc71dd |
BuildRequires: eclipse-rcp
|
|
|
46f8c21 |
%endif
|
|
|
e9ea394 |
|
|
|
e9ea394 |
Requires: java
|
|
|
e9ea394 |
Requires: objectweb-asm
|
|
|
e9ea394 |
Requires: apache-commons-logging
|
|
|
e9ea394 |
|
|
|
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 |
|
|
|
e9ea394 |
%package javadoc
|
|
|
e9ea394 |
Summary: API documentation for %{name}
|
|
|
e9ea394 |
Group: Documentation
|
|
|
e9ea394 |
Requires: jpackage-utils
|
|
|
e9ea394 |
|
|
|
e9ea394 |
%description javadoc
|
|
|
e9ea394 |
%{summary}.
|
|
|
e9ea394 |
|
|
|
e9ea394 |
%prep
|
|
|
e9ea394 |
%setup -q
|
|
|
e9ea394 |
# build failing on this due to doxia-sitetools problems
|
|
|
e9ea394 |
rm src/site/site.xml
|
|
|
e9ea394 |
|
|
|
e9ea394 |
# removes dependency on springframework and prevents building of
|
|
|
e9ea394 |
# modules depending on it. If other modules are required,
|
|
|
e9ea394 |
# springframework will have to be brought in first
|
|
|
e9ea394 |
%patch0 -p1
|
|
|
e9ea394 |
|
|
|
46f8c21 |
|
|
|
e9ea394 |
# Fix dependency on xbean-asm-shaded to original objectweb-asm
|
|
|
e9ea394 |
sed -i 's/org.apache.xbean.asm/org.objectweb.asm/' \
|
|
|
e9ea394 |
xbean-reflect/src/main/java/org/apache/xbean/recipe/XbeanAsmParameterNameLoader.java
|
|
|
e9ea394 |
|
|
|
46f8c21 |
# Do not build equinox specific part for rhel.
|
|
|
46f8c21 |
%if 0%{?rhel} > 6
|
|
|
46f8c21 |
rm -fr xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/equinox/
|
|
|
46f8c21 |
sed -i "s|<groupId>org.eclipse|<groupId>org.apache.felix|g" xbean-bundleutils/pom.xml
|
|
|
46f8c21 |
sed -i "s|<artifactId>osgi|<artifactId>org.apache.felix.framework|g" xbean-bundleutils/pom.xml
|
|
|
46f8c21 |
%endif
|
|
|
46f8c21 |
|
|
|
46f8c21 |
|
|
|
e9ea394 |
%build
|
|
Stanislav Ochotnicky |
abc71dd |
mvn-rpmbuild -e \
|
|
Stanislav Ochotnicky |
abc71dd |
-Dmaven.local.depmap.file="%{SOURCE1}" \
|
|
Stanislav Ochotnicky |
abc71dd |
-Dmaven.test.skip=true \
|
|
Stanislav Ochotnicky |
a12bb0d |
install javadoc:aggregate
|
|
|
e9ea394 |
|
|
|
e9ea394 |
|
|
|
e9ea394 |
%install
|
|
|
e9ea394 |
# for every module we want to be built
|
|
Stanislav Ochotnicky |
566be54 |
for sub in bundleutils finder reflect naming classpath; do
|
|
|
e9ea394 |
# install jar
|
|
|
e9ea394 |
install -Dpm 644 %{name}-${sub}/target/%{name}-${sub}-%{version}.jar \
|
|
Stanislav Ochotnicky |
bfa0c26 |
$RPM_BUILD_ROOT/%{_javadir}/xbean/%{name}-${sub}.jar;
|
|
|
e9ea394 |
|
|
|
e9ea394 |
# intall pom
|
|
Stanislav Ochotnicky |
bfa0c26 |
install -Dpm 644 %{name}-${sub}/pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP.%{name}-%{name}-${sub}.pom
|
|
|
e9ea394 |
|
|
|
e9ea394 |
# maven depmap
|
|
Stanislav Ochotnicky |
abc71dd |
%add_maven_depmap JPP.%{name}-%{name}-${sub}.pom %{name}/%{name}-${sub}.jar
|
|
|
e9ea394 |
done
|
|
Stanislav Ochotnicky |
a12bb0d |
|
|
Stanislav Ochotnicky |
bfa0c26 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
Stanislav Ochotnicky |
bfa0c26 |
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
e9ea394 |
|
|
|
e9ea394 |
# parent pom
|
|
Stanislav Ochotnicky |
bfa0c26 |
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP.%{name}-main.pom
|
|
Stanislav Ochotnicky |
abc71dd |
%add_maven_depmap JPP.%{name}-main.pom
|
|
|
e9ea394 |
|
|
Stanislav Ochotnicky |
bfa0c26 |
%pre javadoc
|
|
Stanislav Ochotnicky |
8c75059 |
# workaround for rpm bug, can be removed in F-17
|
|
Stanislav Ochotnicky |
bfa0c26 |
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
|
|
Stanislav Ochotnicky |
bfa0c26 |
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
|
|
|
e9ea394 |
|
|
|
e9ea394 |
%files
|
|
|
e9ea394 |
%doc LICENSE NOTICE
|
|
Stanislav Ochotnicky |
bfa0c26 |
%{_mavenpomdir}/*.pom
|
|
|
e9ea394 |
%{_mavendepmapfragdir}/%{name}
|
|
|
e9ea394 |
%{_javadir}/%{name}
|
|
|
e9ea394 |
|
|
|
e9ea394 |
%files javadoc
|
|
|
e9ea394 |
%doc LICENSE
|
|
|
e9ea394 |
%{_javadocdir}/%{name}
|
|
|
e9ea394 |
|
|
|
e9ea394 |
%changelog
|
|
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
|