File cimple.spec of Package cimple
#
# spec file for package cimple (Version 2.0.16)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cimple
Version: 2.0.24
Release: 0
License: MIT
Summary: CIMPLE is an embeddable CIM provider engine
Url: http://cimple.org
Group: System/Management
Source0: %{name}-%{version}.tar.bz2
Patch1: %{name}-%{version}-ow-adapter.dif
Patch2: %{name}-%{version}-gcc.patch
BuildRequires: gcc-c++
BuildRequires: konkretcmpi
BuildRequires: sblim-cmpi-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
CIMPLE is an embeddable CIM provider engine. It is used to (1) build
providers that will work with a variety of CIM servers and (2) provide
a foundation for implementing CIM-based standards such as WBEM, SMASH,
WSDM, and WS Management.
%package devel
Summary: Header files for CIMPLE : an embeddable CIM provider engine
Group: System/Management
Requires: %{name} = %{version}
Requires: gcc-c++
%description devel
Header files for CIMPLE : an embeddable CIM provider engine. It is used
to (1) build providers that will work with a variety of CIM servers and
(2) provide a foundation for implementing CIM-based standards such as
WBEM, SMASH, WSDM, and WS Management.
%if 0
%package pegasus-adapter
Summary: Pegasus Adapter for CIMPLE providers
Group: System/Management
Requires: %{name} = %{version}
%description pegasus-adapter
The Pegasus Adapter for CIMPLE is a bridge between the native Pegasus
C++ provider interface and CIMPLE providers. Using this adapter,
CIMPLE providers can run under Pegasus without using the CMPI layer.
%endif
%if 0
%package openwbem-adapter
Summary: OpenWBEM Adapter for CIMPLE providers
Group: System/Management
Requires: %{name} = %{version}
%description openwbem-adapter
The OpenWBEM Adapter for CIMPLE is a bridge between the native OpenWBEM
C++ provider interface and CIMPLE providers. Using this adapter,
CIMPLE providers can run under OpenWBEM without using the CMPI layer.
%package openwbem-devel
Summary: Header file for CIMPLE providers using the OpenWBEM Adapter
Group: System/Management
Requires: %{name} = %{version}
Requires: %{name}-devel = %{version}
Requires: %{name}-openwbem-adapter = %{version}
Requires: openwbem-devel
%description openwbem-devel
Header file for building CIMPLE providers that will use the
cimple-openwbem-adapter. This header is only needed by the
module.cpp file (part of a CIMPLE provider).
%package pegasus-devel
Summary: Static library for CIMPLE providers using the Pegasus Adapter
Group: System/Management
Requires: %{name} = %{version}
Requires: %{name}-devel = %{version}
Requires: %{name}-pegasus-adapter = %{version}
Requires: pegasus-devel
%description pegasus-devel
Static library for building CIMPLE providers that
will use the cimple-pegasus-adapter.
%endif
%prep
%setup -q
%patch1 -p0
%patch2 -p1
%build
export CIMPLE_DEBUG=1
./configure \
--libdir=%{_libdir} \
--prefix=%{_prefix} \
--with-cmpi=/usr/include/cmpi
# --with-pegasus=/usr \
# --with-openwbem=/usr
make FLAGS="%{optflags} -fno-strict-aliasing -fPIC" %{?_smp_mflags}
%install
rm -rf %{buildroot}
mkdir %{buildroot}
%if 0%{?suse_version} > 1110
%make_install
%else
DESTDIR=%{buildroot} make install
%endif
rm -r %{buildroot}/%{_prefix}/share
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%{_bindir}/*
#%{_libdir}/libbrevity.so
%{_libdir}/libcimple.so*
%{_libdir}/libcimplecmpiadap.so*
# skip libcimpleowadap.so*
# skip libcimplepegadap.so*
%files devel
%defattr(-, root, root)
%dir %{_includedir}/%{name}
#%{_includedir}/brevity
%{_includedir}/%{name}/[a-z]*
%{_includedir}/%{name}/[A-N]*
# skip OpenWBEM_Adapter.h
%{_includedir}/%{name}/Ops.h
%{_includedir}/%{name}/[P-Z]*
#%{_libdir}/libcimple_s.a
#%{_libdir}/libcimple[a-n]*_s.a
# skip %{_prefix}/lib/libcimpleowadap_s.a
# skip %{_prefix}/lib/libcimplepegadap_s.a
#%{_libdir}/libcimple[q-z]*_s.a
#%files openwbem-adapter
#%defattr(-, root, root)
#%{_libdir}/libcimpleowadap.so*
#%files openwbem-devel
#%defattr(-, root, root)
##%{_libdir}/libcimpleowadap_s.a
#%{_includedir}/%{name}/OpenWBEM_Adapter.h
#%files pegasus-adapter
#%defattr(-, root, root)
#%{_libdir}/libcimplepegadap.so*
%if 0
%files pegasus-devel
%defattr(-, root, root)
#%{_libdir}/libcimplepegadap_s.a
%endif
%changelog -n cimple
* Wed May 21 2008 - npaxton@novell.com
- Modify spec to build with sblim-cmpi-devel for cmpi headers
- not building peg or ow adapters currently
* Thu Feb 21 2008 - mt@suse.de
- Updated to cimple 1.2.0
- Enabled build of pegasus-adapter package
* Mon Nov 5 2007 - mt@suse.de
- Updated to cimple-1.1.0, added ow adapter patch (untested)
* Wed Feb 14 2007 - bwhiteley@suse.de
- use RPM_OPT_FLAGS -fno-strict-aliasing -fPIC in more places
* Wed Feb 14 2007 - meissner@suse.de
- use RPM_OPT_FLAGS -fno-strict-aliasing -fPIC
* Tue Feb 13 2007 - bwhiteley@suse.de
- Pulled CMPI headers into cimple package to eliminate dependency
on tog-pegasus
* Thu Feb 01 2007 - bwhiteley@suse.de
- Added OpenWBEM provider adapter.
- Update to CVS head to get IA64 port
* Tue Oct 10 2006 - bwhiteley@suse.de
- Initial package