# HG changeset patch
# User Daniel Veillard <veillard(a)redhat.com>
# Date 1193418726 -7200
# Node ID d08da2d71ea4fbc8302758688de452bf125dd924
# Parent cdd77491efaac8f60428cbf0ef92ec8b566f5b60
- libcmpiutil.spec.in template file for libcmpiutil allowing to build RPMs
- libcmpiutil.pc.in template file for libcmpiutil for a pkgconfig file
- modifications to configure.ac to generate the spec and pkgconfig files
- modifications to Makefile.am to include the current docs (README will
have to be added)
- modifications to Makefile.am to move the includes to a safer place
/usr/include/libcmpiutil
- modification to Makefile.am to add a 'make rpm' command which can be
quite convenient at times.
Daniel
diff -r cdd77491efaa -r d08da2d71ea4 Makefile.am
--- a/Makefile.am Thu Oct 25 13:44:11 2007 -0700
+++ b/Makefile.am Fri Oct 26 19:12:06 2007 +0200
@@ -1,7 +1,16 @@
# Copyright IBM Corp. 2007
SUBDIRS = tools
-include_HEADERS = libcmpiutil.h \
+EXTRA_DIST = libcmpiutil.spec.in libcmpiutil.spec COPYING \
+ libcmpiutil.pc.in libcmpiutil.pc \
+ doc/doxygen.conf doc/mainpage doc/SubmittingPatches
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libcmpiutil.pc
+
+libcmpiutilincdir = $(includedir)/libcmpiutil
+
+libcmpiutilinc_HEADERS = libcmpiutil.h \
std_invokemethod.h \
std_association.h \
std_indication.h
@@ -33,4 +42,8 @@ endif
endif
clean-local:
- rm -f $(BUILT_SOURCES) *~
\ No newline at end of file
+ rm -f $(BUILT_SOURCES) *~
+
+rpm: clean
+ @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz)
+
diff -r cdd77491efaa -r d08da2d71ea4 configure.ac
--- a/configure.ac Thu Oct 25 13:44:11 2007 -0700
+++ b/configure.ac Fri Oct 26 19:12:06 2007 +0200
@@ -61,4 +61,5 @@ echo "Build Embedded Object parser:
echo "Build Embedded Object parser: $eoparser"
echo ""
-AC_OUTPUT
\ No newline at end of file
+AC_OUTPUT(libcmpiutil.spec libcmpiutil.pc)
+
diff -r cdd77491efaa -r d08da2d71ea4 libcmpiutil.pc.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/libcmpiutil.pc.in Fri Oct 26 19:12:06 2007 +0200
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/libcmpiutil
+
+Name: libcmpiutil
+Version: @VERSION@
+Description: CMPI Utility Library
+Requires:
+Libs: -L${libdir} -lcmpiutil
+Cflags: -I${includedir}
diff -r cdd77491efaa -r d08da2d71ea4 libcmpiutil.spec.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/libcmpiutil.spec.in Fri Oct 26 19:12:06 2007 +0200
@@ -0,0 +1,77 @@
+# -*- rpm-spec -*-
+
+Summary: CMPI Utility Library
+Name: libcmpiutil
+Version: @PACKAGE_VERSION@
+Release: 1%{?dist}%{?extra_release}
+License: LGPL
+Group: Development/Libraries
+Source: libcmpiutil-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+URL:
http://libvirt.org/CIM/
+BuildRequires: sblim-cmpi-devel
+BuildRequires: flex
+BuildRequires: bison
+
+%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: sblim-cmpi-devel
+Requires: pkgconfig
+
+%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
+
+%build
+%configure
+make
+
+%install
+rm -fr %{buildroot}
+
+%makeinstall
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
+
+%clean
+rm -fr %{buildroot}
+
+%post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
+
+%files
+%defattr(-, root, root)
+
+%doc doc/doxygen.conf doc/mainpage doc/SubmittingPatches
+%{_libdir}/lib*.so.*
+
+%files devel
+%defattr(-, root, root)
+
+%{_libdir}/lib*.so
+%dir %{_includedir}/
+%{_includedir}/libcmpiutil/*.h
+%{_libdir}/pkgconfig/libcmpiutil.pc
+
+%doc doc/doxygen.conf doc/mainpage doc/SubmittingPatches
+
+%changelog
+* Fri Oct 26 2007 Daniel Veillard <veillard(a)redhat.com> - 0.1-1
+- created