File cmpi-bindings.spec of Package cmpi-bindings

#
# spec file for package cmpi-bindings (Version 0.4.0)
#
# Copyright (c) 2008 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/
#

# nodebuginfo

Url:            http://omc-project.com

Name:           cmpi-bindings
Version:        0.4.0
Release:        2
License:        BSD 3-Clause; EPL 1.0
Summary:        Adapter to write and run CMPI-type CIM providers
Group:          Development/Libraries/Other
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# We need swig threads support.
BuildRequires:  cmake gcc-c++ perl python-devel ruby-devel swig >= 1.3.34
BuildRequires:  sblim-sfcb
Source:         %{name}-%{version}rc1.tar.bz2
Prefix:         /usr

%description
Adapter to write and run CMPI-type CIM providers



Authors:
--------
    Klaus Kaempf
    Bart Whiteley

%prep
%setup -q -n %{name}-%{version}rc1

%build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \
      -DLIB=%{_lib} \
      -DCMAKE_VERBOSE_MAKEFILE=TRUE \
      -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \
      -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \
      -DCMAKE_BUILD_TYPE=Release \
      -DCMAKE_SKIP_RPATH=1 \
      ..
make %{?jobs:-j %jobs}

%install
cd build
make install DESTDIR=$RPM_BUILD_ROOT

%clean
%{__rm} -rf %{buildroot}

%package -n cmpi-bindings-ruby
License:        BSD 3-Clause; EPL 1.0
Summary:        Adapter to write and run CMPI-type CIM providers in Ruby
Group:          Development/Languages/Ruby
# for the debug package. we dont use debug_package_requires here as it would enforce to install both packages.
Provides:       %{name} = %{version}-%{release}

%description -n cmpi-bindings-ruby
This allows to write and run CMPI-type CIM providers in Ruby



Authors:
--------
    Klaus Kaempf
    Bart Whiteley

%files -n cmpi-bindings-ruby
%defattr(-,root,root,-)
%{_libdir}/cmpi/librbCmpiProvider.so
%if 0%{?sles_version} == 10 
%{_libdir}/ruby/site_ruby/%{rb_ver}/cmpi_rbwbem_bindings.rb
%else
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/cmpi_rbwbem_bindings.rb
%endif

%package -n cmpi-bindings-pywbem
License:        BSD 3-Clause; EPL 1.0
Summary:        Adapter to write and run CMPI-type CIM providers in Python
Group:          Development/Languages/Python
# for the debug package. we dont use debug_package_requires here as it would enforce to install both packages.
Provides:       %{name} = %{version}-%{release}
#define some macros missing on fedora
%if 0%{?fedora_version}
%{!?py_sitedir: %define py_sitedir %(%__python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?py_requires: %define py_requires Requires: python}
%endif
%{py_requires}

%description -n cmpi-bindings-pywbem
This allows to write and run CMPI-type CIM providers in Python



Authors:
--------
    Klaus Kaempf
    Bart Whiteley

%files -n cmpi-bindings-pywbem
%defattr(-,root,root,-)
%{_libdir}/cmpi/libpyCmpiProvider.so
%{py_sitedir}/cmpi_pywbem_bindings.py
%{py_sitedir}/cmpi_pywbem_bindings.pyc
%{py_sitedir}/cmpi.py
%{py_sitedir}/cmpi.pyc

%package -n cmpi-bindings-perl
License:        BSD 3-Clause; EPL 1.0
Requires:       perl = %{perl_version}
Summary:        Adapter to write and run CMPI-type CIM providers in Perl
Group:          Development/Libraries/Other
# for the debug package. we dont use debug_package_requires here as it would enforce to install both packages.
Provides:       %{name} = %{version}-%{release}

%description -n cmpi-bindings-perl
Adapter to write and run CMPI-type CIM providers in Perl



Authors:
--------
    Klaus Kaempf
    Bart Whiteley

%files -n cmpi-bindings-perl
%defattr(-,root,root,-)
%{_libdir}/cmpi/libplCmpiProvider.so
%{perl_vendorlib}/cmpi_plwbem_bindings.pl
%{perl_vendorlib}/cmpi.pm

%changelog
* Fri Nov 07 2008 bwhiteley@suse.de
- Better handling of import errors.
- Code cleanup.
* Thu Oct 23 2008 npaxton@novell.com
- Update to latest code, prep for release for python bindings
- Indication support in python
- Bump version to 0.4.0
* Thu Oct 16 2008 kkaempf@suse.de
- Complete Ruby bindings.
- Small runtime improvement for Python.
- Bump version to 0.3.0
* Mon Sep 29 2008 kkaempf@suse.de
- refactor cmpi_provider_{python,ruby}.c,
  move common lines (75%%) to cmpi_provider.c and target language
  specific lines (25%%) to target_{python,ruby}.c
* Sat Sep 27 2008 bwhiteley@suse.de
- Update to latest code.
- Better error handling.
* Fri Sep 19 2008 kkaempf@suse.de
- rename .py filename to reflect 'pywbem' dependency.
- fix build for SLE10 in OpenSUSE build service.
* Tue Sep 16 2008 mrueckert@suse.de
- provide the main package for the debug package. we dont use
  debug_package_requires here as it would enforce to install both
  packages.
* Mon Sep 15 2008 bwhiteley@suse.de 
- Refactered broker wrapping.
- Lots of cleanup.
* Thu Sep 11 2008 kkaempf@suse.de
- Support Python threads, do proper locking
- Bump version to 0.2.0
* Tue Sep 02 2008 kkaempf@suse.de
- Initial package.