Sisyphus repository
Last update: 13 october 2019 | SRPMs: 17513 | Visits: 15261213
en ru br
ALT Linux repos

Group :: Development/Other
RPM: sblim-cim-client2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-java
BuildRequires: unzip
# END SourceDeps(oneline)
BuildRequires: /proc
BuildRequires: jpackage-generic-compat
# see
%define _localstatedir %{_var}
# %%name and %%version is ahead of its definition. Predefining for rpm 4.0 compatibility.
%define name sblim-cim-client2
%define version 2.2.5

%global project_folder %{name}-%{version}-src
%global archive_folder build

Name:           sblim-cim-client2
Version:        2.2.5
Release:        alt1_8jpp8
Summary:        Java CIM Client library

Group:          Development/Other
License:        EPL

BuildArch:      noarch

BuildRequires:  java-devel >= 1.4
BuildRequires:  jpackage-utils >= 0:1.5.32
BuildRequires:  ant >= 0:1.6

Requires:       jpackage-utils >= 0:1.5.32

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
More infos about the Java Community Process and JSR48 can be found at and

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java
Requires:       sblim-cim-client2 = %{version}-%{release}
Requires:       jpackage-utils
BuildArch: noarch

%description javadoc
Javadoc for %{name}.

%package manual
Summary:        Manual and sample code for %{name}
Group:          Development/Java
Requires:       sblim-cim-client2 = %{version}-%{release}
BuildArch: noarch

%description manual
Manual and sample code for %{name}.

%setup -q -n %{project_folder}

dos2unixConversion() {
       sed -i 's/\r//g' "$fileName"

dosFiles2unix() {
       for fileName in $fileList; do
               dos2unixConversion $fileName

dosFiles2unix 'ChangeLog NEWS README COPYING'
dosFiles2unix 'smpl/org/sblim/slp/example/*'
dosFiles2unix 'smpl/org/sblim/cimclient/samples/*'

export ANT_OPTS="-Xmx256m"
ant \
       -Dbuild.compiler=modern \
       package java-doc

# --- documentation ---
install -d $dstDocDir
install --mode=644 ChangeLog COPYING README NEWS $dstDocDir
# --- samples (also into _docdir) ---
cp -pr  smpl/org $dstDocDir
# --- config files ---
install -d $confDir
install --mode=664 $confDir
# --- jar ---
install -d $RPM_BUILD_ROOT%{_javadir}
install %{archive_folder}/lib/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
# --- javadoc ---
install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -pr %{archive_folder}/doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%dir %{_docdir}/%{name}
%config(noreplace) %{_sysconfdir}/java/
%config(noreplace) %{_sysconfdir}/java/
%doc %{_docdir}/%{name}/COPYING
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/ChangeLog
%doc %{_docdir}/%{name}/NEWS

%files javadoc

%files manual
%doc %{_docdir}/%{name}/COPYING
%doc %{_docdir}/%{name}/org


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin