LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File glassfish-gmbal.spec of Package glassfish-gmbal (Project Java:base)

Name:               glassfish-gmbal
Version:            3.2.0b003
Release:            0
Summary:            GlassFish MBean Annotation Library
Source0:            %{name}-%{version}.tar.gz
URL:                http://kenai.com/hg/gmbal~master
Group:              Development/Libraries/Java
License:            CDDL+GPL
BuildRoot:          %{_tmppath}/build-%{name}-%{version}
BuildArch:          noarch
#
BuildRequires:      java(org.glassfish.external:management-api)
BuildRequires:      java(org.glassfish.pfl:pfl-basic)
BuildRequires:      java(org.glassfish.pfl:pfl-tf)
BuildRequires:      java(org.glassfish.pfl:pfl-tf-tools)
BuildRequires:      java(org.glassfish.pfl:pfl-basic-tools)
#
BuildRequires:      java-devel >= 1.6.0
BuildRequires:      ant junit ant-junit jpackage-utils
#
Provides:           java(org.glassfish.gmbal:gmbal)
Requires:           java(org.glassfish.external:management-api)
Requires:           java(org.glassfish.pfl:pfl-basic)
Requires:           java(org.glassfish.pfl:pfl-tf)
Requires:           java(org.glassfish.pfl:pfl-tf-tools)
Requires:           java(org.glassfish.pfl:pfl-basic-tools)
%description
The GlassFish MBean Annotation Library (gmbal, pronounced "Gumball") is a
library for using annotations to create Open MBeans.
There is similar functionality in JSR 255 for JDK 7, but gmbal only requires
JDK 5.
Gmbal also supports JSR 77 ObjectNames and the GlassFish Version 3 AMX 
requirements for MBeans. AS a consequence, gmbal-enabled classes will be fully
manageable in GlassFish v3 using the standard GlassFish v3 admin tools, while
still being manageable with generic MBean tools when not run under GlassFish v3.

%prep
%setup -q

%build
rm lib/*.jar
# nuke the maven stuff from ant
cat <<EOF > build.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="GlassFish MBean Annotation Library (gmbal)" default="default" basedir=".">
  <description>Builds, tests, and runs the gmbal project.</description>
  <import file="nbproject/build-impl.xml"/>
</project>
EOF

export CLASSPATH=$(build-classpath glassfish/management-api glassfish/pfl)
echo "javac.classpath=$(build-classpath glassfish/management-api glassfish/pfl junit ant-junit)" >> nbproject/build.properties
echo "javac.classpath=$(build-classpath glassfish/management-api glassfish/pfl junit ant-junit)" >> nbproject/project.properties
ant

%install
%{__mkdir_p} %{buildroot}%{_javadir}/glassfish
%{__install} -m0644 dist/gmbal.jar %{buildroot}%{_javadir}/glassfish/gmbal.jar
ln -s %{_javadir}/glassfish/gmbal.jar  %{buildroot}%{_javadir}/glassfish-gmbal.jar

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%dir %{_javadir}/glassfish
%{_javadir}/glassfish/gmbal.jar
%{_javadir}/glassfish-gmbal.jar

%changelog