]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
* TODO libxen.pc.in libxen.spec.in include/Makefile.am Makefile.am
authorDaniel Veillard <veillard@redhat.com>
Wed, 2 Nov 2005 15:37:34 +0000 (15:37 +0000)
committerDaniel Veillard <veillard@redhat.com>
Wed, 2 Nov 2005 15:37:34 +0000 (15:37 +0000)
  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
Daniel

ChangeLog
Makefile.am
TODO [new file with mode: 0644]
config.h.in
configure.in
include/Makefile.am [new file with mode: 0644]
include/libvirt/Makefile.am [new file with mode: 0644]
libxen.pc.in [new file with mode: 0644]
libxen.spec.in [new file with mode: 0644]
src/Makefile.am
src/libxen_sym.version [new file with mode: 0644]

index 0a1f7f104549cfb57c2e7ff717e24c93219c3f1c..bab0c03eaec75c02574e5ce9a4956c5fa6bc51be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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
index ed0f60398ebc4939ce461d791ac66db3fd1010be..0c6d1b577b272cda548b2f03c14ef2d2937e0297 100644 (file)
@@ -1,9 +1,12 @@
 ## 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)
diff --git a/TODO b/TODO
new file mode 100644 (file)
index 0000000..4329446
--- /dev/null
+++ b/TODO
@@ -0,0 +1 @@
+- everything at this point
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..e60df8a8820306e0f893f0472c9a0845e3119a4e 100644 (file)
@@ -0,0 +1,61 @@
+/* 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
index 6178060ec7522e914dcb43e0ac7066c828fe5cbf..4975649bfb22e20102fc0cc0ae9e23c6ea56c2ea 100644 (file)
@@ -50,4 +50,4 @@ AM_PROG_LIBTOOL
 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)
diff --git a/include/Makefile.am b/include/Makefile.am
new file mode 100644 (file)
index 0000000..14aaf75
--- /dev/null
@@ -0,0 +1,9 @@
+## Process this file with automake to produce Makefile.in
+
+xenincdir = $(includedir)/libxen
+
+xeninc_HEADERS = libxen.h
+
+install-exec-hook:
+       $(mkinstalldirs) $(DESTDIR)$(xenincdir)
+
diff --git a/include/libvirt/Makefile.am b/include/libvirt/Makefile.am
new file mode 100644 (file)
index 0000000..14aaf75
--- /dev/null
@@ -0,0 +1,9 @@
+## Process this file with automake to produce Makefile.in
+
+xenincdir = $(includedir)/libxen
+
+xeninc_HEADERS = libxen.h
+
+install-exec-hook:
+       $(mkinstalldirs) $(DESTDIR)$(xenincdir)
+
diff --git a/libxen.pc.in b/libxen.pc.in
new file mode 100644 (file)
index 0000000..2997db0
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libxen
+Version: @VERSION@
+Description: libxen library
+Requires:
+Libs: -L${libdir} -lxen @LIBS@
+Cflags:
diff --git a/libxen.spec.in b/libxen.spec.in
new file mode 100644 (file)
index 0000000..3eac05e
--- /dev/null
@@ -0,0 +1,62 @@
+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
index 14b7902cd7fba20230d3722e9a2d3ad65595a955..c54dd1e410fc36c726e5e78fe8940b86a5e1a242 100644 (file)
@@ -2,7 +2,10 @@
 
 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
diff --git a/src/libxen_sym.version b/src/libxen_sym.version
new file mode 100644 (file)
index 0000000..24536ae
--- /dev/null
@@ -0,0 +1,8 @@
+{
+    global:
+        xenOpenConnect;
+       xenCloseConnect;
+       xenGetVersion;
+       xenCreateLinuxDomain;
+    local: *;
+};