# -*- rpm-spec -*- Summary: CMPI Utility Library Name: libcmpiutil Version: 0.1 Release: 4%{?dist}%{?extra_release} License: LGPLv2+ Group: Development/Libraries Source: libcmpiutil-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root URL: http://libvirt.org/CIM/ BuildRequires: tog-pegasus-devel BuildRequires: flex BuildRequires: bison BuildConflicts: sblim-cmpi-devel %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. %package devel Summary: Libraries, includes, etc. to use the CMPI utility library Group: Development/Libraries Requires: tog-pegasus-devel Requires: pkgconfig Requires: %{name} = %{version}-%{release} %description devel Includes and documentations for the CMPI utility library 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. %prep %setup -q chmod -x *.c *.y *.h *.l %build %configure make %{?_smp_mflags} %install rm -fr $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install rm -f $RPM_BUILD_ROOT%{_libdir}/*.la rm -f $RPM_BUILD_ROOT%{_libdir}/*.a %clean rm -fr $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-, root, root) %doc doc/doxygen.conf doc/mainpage README %{_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 * Fri Oct 26 2007 Daniel Veillard - 0.1-1 - created