File sblim-cmpi-devel.spec of Package sblim-cmpi-devel

#
# spec file for package sblim-cmpi-devel (Version 2.0.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/
#


BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        SBLIM CMPI Provider Development Support

Name:           sblim-cmpi-devel
Version:        2.0.1
Release:        5
Group:          Development/Libraries/C and C++
Url:            http://sblim.sf.net/
License:        Eclipse Public License 1.0
BuildRequires:  doxygen gcc-c++
Provides:       cmpi-devel
Conflicts:      tog-pegasus
Requires:       libcmpiCppImpl0
Source0:        http://prdownloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2
Source1:        Doxyfile
Patch:          %{name}.diff
Patch1:         %{name}-1.0.4-fix-string.dif
# PATCH-FIX-UPSTREAM sblim-cmpi-devel-2.0.1-typo.patch [upstream tracker 2688794 ] mhrusecky@suse.cz -- Fixed typo in cmpi/cmpidt.h
# https://sourceforge.net/tracker/index.php?func=detail&aid=2688794&group_id=128809&atid=712784
Patch2:         %{name}-2.0.1-typo.patch

%description
This packages provides the C and C++ CMPI header files needed by
provider developers and can be used standalone. If used for C++
provider development it is also necessary to have tog-pegasus-devel
installed.



%package -n libcmpiCppImpl0
License:        Eclipse Public License 1.0
Summary:        SBLIM CMPI Provider Development Support
Group:          Development/Libraries/C and C++
Conflicts:      tog-pegasus

%description -n libcmpiCppImpl0
This packages provides the C and C++ CMPI header files needed by
provider developers and can be used standalone. If used for C++
provider development it is also necessary to have tog-pegasus-devel
installed.



%prep
%setup -T -b 0 -n %{name}-%{version}
%patch
%patch1
%patch2
cp %{_sourcedir}/Doxyfile %{_builddir}/%{name}-%{version}/
mkdir %{_builddir}/%{name}-%{version}/autodocs

%build
%{suse_update_config -f}
autoreconf --verbose --force --install
%configure
make %{?_smp_mflags}
doxygen Doxyfile

%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/%{_libdir}/libcmpiCppImpl.a
rm -f $RPM_BUILD_ROOT/%{_libdir}/libcmpiCppImpl.la
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}-%{version}
cp -r autodocs/ $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT 

%files
%defattr(-,root,root)
%doc %{_defaultdocdir}/%{name}
%{_includedir}/cmpi
%{_libdir}/libcmpiCppImpl.so

%files -n libcmpiCppImpl0
%defattr(-,root,root)
%{_libdir}/libcmpiCppImpl.so.0*

%post -n libcmpiCppImpl0 -p /sbin/ldconfig

%postun -n libcmpiCppImpl0 -p /sbin/ldconfig

%changelog
* Mon May 11 2009 mhrusecky@suse.cz
- fixed typo in cmpidt.h
- adding conflict with tog-pegasus to spec file
* Fri May 08 2009 mc@suse.de
- fix CmpiString
- add Doxygen file and create autodocs
- build and package c++ wrapper library
* Tue Mar 10 2009 ro@suse.de
- fix filelist
* Fri Mar 06 2009 kkaempf@suse.de
- Update to 2.0.1
- Don't run ldconfig
- Fix docdir
* Sun May 18 2008 aj@suse.de
- Do not clean build root in install section.
* Fri May 02 2008 bwhiteley@suse.de
- First checkin
openSUSE Build Service is sponsored by