File sblim-cim-client2.spec of Package sblim-cim-client2
#
# spec file for package sblim-cim-client2 (Version 2.0.9.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define project_folder %{name}-%{version}-src
%define archive_folder build
# -----------------------------------------------------------------------------
Name: sblim-cim-client2
Version: 2.0.9.1
Release: 1
License: Other uncritical OpenSource License
Url: http://sblim.sourceforge.net/
Group: Development/Libraries/Java
Summary: Java CIM Client library
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %{name}-%{version}-src.zip
BuildArch: noarch
BuildRequires: java-devel unzip
BuildRequires: jpackage-utils >= 1.5.32
BuildRequires: ant >= 1.6
Requires: jpackage-utils >= 1.5.32
Obsoletes: sblim-cim-client <= 1.3.5
Provides: sblim-cim-client
%description
The purpose of this package is to provide a CIM Client Class Library
for Java applications. It complies to the DMTF standard CIM Operations
over HTTP and intends to be compatible with JCP JSR48 once it becomes
available. To learn more about DMTF visit http://www.dmtf.org. More
infos about the Java Community Process and JSR48 can be found at
http://www.jcp.org and http://www.jcp.org/en/jsr/detail?id=48.
%package javadoc
License: Other uncritical OpenSource License
Summary: Javadoc for sblim-cim-client2
Group: Development/Libraries/Java
%description javadoc
Javadoc for sblim-cim-client2.
%package manual
License: Other uncritical OpenSource License
Summary: Manual and sample code for sblim-cim-client2
Group: Development/Libraries/Java
%description manual
Manual and sample code for sblim-cim-client2.
%prep
%setup -q -n %{project_folder}
dos2unixConversion() {
fileName=$1
%{__sed} -i 's/\r//g' "$fileName"
}
dosFiles2unix() {
fileList=$1
for fileName in $fileList; do
dos2unixConversion $fileName
done
}
dosFiles2unix 'COPYING NEWS README ChangeLog sblim-cim-client2.properties sblim-slp-client2.properties'
for i in smpl/org/sblim/*/{example,samples}/*.{java,xml}; do
[ -f "$i" ] && dos2unixConversion "$i"
done
# -----------------------------------------------------------------------------
%build
# export CLASSPATH=$(build-classpath)
export ANT_OPTS="-Xmx256m"
ant \
-Dbuild.compiler=modern \
-DManifest.version=%{version}\
package java-doc
# -----------------------------------------------------------------------------
%install
# --- documentation ---
dstDocDir=$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
install -d $dstDocDir
install --mode=644 ChangeLog COPYING README NEWS $dstDocDir
# --- samples (also into _docdir) ---
cp -pr smpl/org $dstDocDir
# --- config files ---
confDir=$RPM_BUILD_ROOT%{_sysconfdir}/java
install -d $confDir
install --mode=664 sblim-cim-client2.properties sblim-slp-client2.properties $confDir
# --- jar ---
install -d $RPM_BUILD_ROOT%{_javadir}
install %{archive_folder}/lib/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(
cd $RPM_BUILD_ROOT%{_javadir} &&
ln -sf %{name}-%{version}.jar %{name}.jar;
)
# --- javadoc ---
install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr %{archive_folder}/doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
# -----------------------------------------------------------------------------
%files
%defattr(0644,root,root,0755)
%config %{_sysconfdir}/java/sblim-cim-client2.properties
%config %{_sysconfdir}/java/sblim-slp-client2.properties
%dir %{_docdir}/%{name}-%{version}
%doc %{_docdir}/%{name}-%{version}/COPYING
%doc %{_docdir}/%{name}-%{version}/README
%doc %{_docdir}/%{name}-%{version}/ChangeLog
%doc %{_docdir}/%{name}-%{version}/NEWS
%{_javadir}/%{name}.jar
%{_javadir}/%{name}-%{version}.jar
%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%files manual
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}/org
# -----------------------------------------------------------------------------
%changelog
* Tue May 26 2009 mhrusecky@suse.cz
- version update (2.0.9.1)
* Bugs:
- 2790035 Export instance to mof, wrong syntax
- fixed end of lines
* Fri Feb 20 2009 mhrusecky@suse.cz
- version update (2.0.9)
* Bugs:
- 2414503 SLPConfig : parseList not returning populated list
- 2412389 Test case failure: Java5 Complier : CIMDateTimeAbsoluteTest
- 2382763 HTTP header field Accept-Language does not include *
- 2372030 Add property to control synchronized SSL handshaking
- 2315151 Jsr48IndicationSample does not work
- 2227442 Add missing serialVersionUID
- 2210455 Enhance javadoc, fix potential null pointers
- 2204488 Fix / clean code to remove compiler warnings
* Version 2.0.8 bugs:
- 2093708 HTTP 400 - Bad Request, CIMError: request-not-valid
- 2087969 VALUE.ARRAY used in request for array of references
- 2087975 can't set the pPropagated in WBEMClient.enumerateClasses()
- 2038305 SAXException SBLIM Java Client V2.0.7
- 2034342 HttpClient not closed on cimclient close
- 2013628 SAXException when listing classes
- 2002599 M-POST not supported in java-client
* Mon Sep 01 2008 anosek@suse.cz
- new package prepared for SLES11 (fate#304369)
* based on spec file by JPackage project