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

#
# spec file for package sblim-cmpi-devel (Version 2.0.1)
#
# Copyright (c) 2010 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:        6
Group:          Development/Libraries/C and C++
Url:            http://sblim.sf.net/
License:        Other uncritical OpenSource License ; "EPL 1.0 ..." ; EPL 1.0
BuildRequires:  doxygen gcc-c++
Provides:       cmpi-devel
Conflicts:      tog-pegasus
Source0:        http://prdownloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2
Source1:        Doxyfile
%if 0%{?mandriva_version}
Patch:          %{name}.diff-mandriva
%else
Patch:          %{name}.diff
%endif
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 sblim-cmpi-c++-devel
License:        "Eclipse Public License 1.0 ..." ; Eclipse Public License 1.0
Summary:        SBLIM CMPI Provider Development Support
Group:          Development/Libraries/C and C++
Requires:       libcmpiCppImpl0 %{name}
Conflicts:      tog-pegasus

%description -n sblim-cmpi-c++-devel
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:        Other uncritical OpenSource License ; "EPL 1.0 ..." ; EPL 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.


%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
%define cmpi_docdir %_docdir/%{name}-%{version}
%else
%define cmpi_docdir %_docdir/%{name}
%endif

%prep
%setup -T -b 0 -n %{name}-%{version}
%if 0%{?suse_version} || 0%{?mandriva_version}
# adapt docdir
%patch
%endif
%patch1
%patch2
cp %{_sourcedir}/Doxyfile %{_builddir}/%{name}-%{version}/
mkdir %{_builddir}/%{name}-%{version}/autodocs

%build
%if 0%{?suse_version}
%{suse_update_config -f}
%endif
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/%{cmpi_docdir}
cp -r autodocs/ $RPM_BUILD_ROOT/%{cmpi_docdir}

%clean
rm -rf $RPM_BUILD_ROOT 

%files
%defattr(-,root,root)
%doc %{cmpi_docdir}
%dir %{_includedir}/cmpi
%{_includedir}/cmpi/[a-z]*

%files -n sblim-cmpi-c++-devel
%defattr(-,root,root)
%{_libdir}/libcmpiCppImpl.so
%dir %{_includedir}/cmpi
%{_includedir}/cmpi/[A-Z]*

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

%post -n libcmpiCppImpl0 -p /sbin/ldconfig

%postun -n libcmpiCppImpl0 -p /sbin/ldconfig

%changelog
openSUSE Build Service is sponsored by