File libcmpiutil.spec of Package libcmpiutil

#
# spec file for package libcmpiutil (Version 0.5)
#
# 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/
#

# norootforbuild


Name:           libcmpiutil
BuildRequires:  bison flex libxml2-devel pkg-config sblim-cmpi-devel
Url:            http://libvirt.org/CIM/
License:        LGPL v2.1 or later
Group:          Development/Libraries/C and C++
AutoReqProv:    yes
Version:        0.5
Release:        15
Summary:        Library of utility functions for CMPI providers
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Libcmpiutil is a library of utility functions for CMPI providers.  The
goal is to reduce the amount of repetitive work done in most CMPI
providers by encapsulating common procedures with more "normal" APIs. 
This extends from operations like getting typed instance properties to
standardizing method dispatch and argument checking.



Authors:
--------
    Dan Smith <danms@us.ibm.com>

%package devel
License:        LGPL v2.1 or later
Summary:        Library of utility functions for CMPI providers
Group:          Development/Libraries/C and C++
Requires:       sblim-cmpi-devel
Requires:       pkg-config
Requires:       %{name} = %{version}-%{release}

%description devel
Libcmpiutil is a library of utility functions for CMPI providers.  The
goal is to reduce the amount of repetitive work done in most CMPI
providers by encapsulating common procedures with more "normal" APIs. 
This extends from operations like getting typed instance properties to
standardizing method dispatch and argument checking.



Authors:
--------
    Dan Smith <danms@us.ibm.com>

%prep
%setup -q
chmod -x *.c *.y *.h *.l

%build
export CFLAGS="$RPM_OPT_FLAGS"
%configure --enable-static=no
make

%install
%makeinstall
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la}

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files 
%defattr(-, root, root, -)
%doc doc/doxygen.conf doc/mainpage README COPYING
%{_libdir}/lib*.so.*

%files devel
%defattr(-, root, root, -)
%{_libdir}/lib*.so
%dir %{_includedir}/libcmpiutil
%{_includedir}/libcmpiutil/*.h
%{_libdir}/pkgconfig/libcmpiutil.pc
%doc doc/SubmittingPatches

%changelog
* Thu Oct 23 2008 jfehlig@novell.com
- Updated to head of libcmpiutil, c/s 85:5fbf96fedcf7
  bnc#437816
* Mon Jul 28 2008 jfehlig@novell.com
- Updated to head of libcmpiutil, 0.5 pre-release.
  - fixes for indication enable/disable
* Fri Jul 18 2008 jfehlig@novell.com
- Removed ExclusiveArch restriction
* Thu Jun 26 2008 jfehlig@novell.com
- Updated to official 0.4 release
* Thu May 01 2008 jfehlig@novell.com
- Initial creation of package
openSUSE Build Service is sponsored by