+Wed Nov 2 16:35:54 CET 2005 Daniel Veillard <veillard@redhat.com>
+
+ * TODO libxen.pc.in libxen.spec.in include/Makefile.am Makefile.am
+ config.h.in configure.in: fix make dist, add rpm packaging
+ * src/libxen_sym.version src/Makefile.am: set a policy of no
+ export by default of library symbols
+
Wed Nov 2 14:17:50 CET 2005 Daniel Veillard <veillard@redhat.com>
* AUTHORS NEWS README autogen.sh configure.in: allow autogen.sh and
## Process this file with automake to produce Makefile.in
-SUBDIRS = src #docs
+SUBDIRS = src include #docs
EXTRA_DIST = libxen.spec.in libxen.spec COPYING.LIB \
- libxen.pc.in libxen.pc
+ libxen.pc.in libxen.pc TODO AUTHORS ChangeLog \
+ NEWS README
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libxen.pc
+rpm: clean
+ @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz)
--- /dev/null
+- everything at this point
+/* config.h.in. Generated from configure.in by autoheader. */
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Name of package */
+#undef PACKAGE
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define to 1 if the C compiler supports function prototypes. */
+#undef PROTOTYPES
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Version number of package */
+#undef VERSION
+
+/* Define like PROTOTYPES; this can be used by system headers. */
+#undef __PROTOTYPES
dnl search for the low level Xen library
AC_SEARCH_LIBS(xc_domain_create, [xenctrl])
-AC_OUTPUT(Makefile src/Makefile)
+AC_OUTPUT(Makefile src/Makefile include/Makefile libxen.pc libxen.spec)
--- /dev/null
+## Process this file with automake to produce Makefile.in
+
+xenincdir = $(includedir)/libxen
+
+xeninc_HEADERS = libxen.h
+
+install-exec-hook:
+ $(mkinstalldirs) $(DESTDIR)$(xenincdir)
+
--- /dev/null
+## Process this file with automake to produce Makefile.in
+
+xenincdir = $(includedir)/libxen
+
+xeninc_HEADERS = libxen.h
+
+install-exec-hook:
+ $(mkinstalldirs) $(DESTDIR)$(xenincdir)
+
--- /dev/null
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libxen
+Version: @VERSION@
+Description: libxen library
+Requires:
+Libs: -L${libdir} -lxen @LIBS@
+Cflags:
--- /dev/null
+Summary: Library providing an API to use the Xen virtualization
+Name: libxen
+Version: @VERSION@
+Release: 1
+License: LGPL
+Group: Development/Libraries
+Source: libxen-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+URL: http://www.gnome.org/~veillard/gamin/
+BuildRequires: xen
+Requires: xen
+
+%description
+This C library provides an API to use the Xen virtualization framework
+
+%package devel
+Summary: Libraries, includes, etc. to compile with the libxen library
+Group: Development/Libraries
+Requires: libxen = %{version}
+
+%description devel
+This C library provides an API to use the Xen virtualization framework
+
+%prep
+%setup -q
+
+%build
+%configure
+make
+
+%install
+rm -fr %{buildroot}
+
+%makeinstall
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
+
+%clean
+rm -fr %{buildroot}
+
+%post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
+
+%files
+%defattr(-, root, root)
+
+%doc AUTHORS ChangeLog NEWS README COPYING.LIB TODO
+%{_libdir}/lib*.so.*
+
+%files devel
+%defattr(-, root, root)
+
+%{_libdir}/lib*.so
+%{_libdir}/*a
+%{_includedir}/libxen/*.h
+%{_libdir}/pkgconfig/libxen.pc
+
+%changelog
+* Wed Nov 2 2005 Daniel Veillard <veillard@redhat.com> 0.0.1-1
+- created
INCLUDES = -I$(top_builddir)/include -I@srcdir@/include
+EXTRA_DIST = libxen_sym.version
+
lib_LTLIBRARIES = libxen.la
libxen_la_LIBADD =
-libxen_la_LDFLAGS = -version-info @LIBXEN_VERSION_INFO@
-libxen_la_SOURCES = libxen.c
+libxen_la_LDFLAGS = -Wl,--version-script=$(srcdir)/libxen_sym.version \
+ -version-info @LIBXEN_VERSION_INFO@
+libxen_la_SOURCES = libxen.c internal.h
--- /dev/null
+{
+ global:
+ xenOpenConnect;
+ xenCloseConnect;
+ xenGetVersion;
+ xenCreateLinuxDomain;
+ local: *;
+};