From 70eb59b8bef446ca9c4084460666ef6c17cafdaa Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 2 Nov 2005 15:37:34 +0000 Subject: [PATCH] * 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 Daniel --- ChangeLog | 7 +++++ Makefile.am | 7 +++-- TODO | 1 + config.h.in | 61 ++++++++++++++++++++++++++++++++++++ configure.in | 2 +- include/Makefile.am | 9 ++++++ include/libvirt/Makefile.am | 9 ++++++ libxen.pc.in | 11 +++++++ libxen.spec.in | 62 +++++++++++++++++++++++++++++++++++++ src/Makefile.am | 7 +++-- src/libxen_sym.version | 8 +++++ 11 files changed, 179 insertions(+), 5 deletions(-) create mode 100644 TODO create mode 100644 include/Makefile.am create mode 100644 include/libvirt/Makefile.am create mode 100644 libxen.pc.in create mode 100644 libxen.spec.in create mode 100644 src/libxen_sym.version diff --git a/ChangeLog b/ChangeLog index 0a1f7f1045..bab0c03eae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Wed Nov 2 16:35:54 CET 2005 Daniel Veillard + + * 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 * AUTHORS NEWS README autogen.sh configure.in: allow autogen.sh and diff --git a/Makefile.am b/Makefile.am index ed0f60398e..0c6d1b577b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 index 0000000000..4329446449 --- /dev/null +++ b/TODO @@ -0,0 +1 @@ +- everything at this point diff --git a/config.h.in b/config.h.in index e69de29bb2..e60df8a882 100644 --- a/config.h.in +++ b/config.h.in @@ -0,0 +1,61 @@ +/* config.h.in. Generated from configure.in by autoheader. */ + +/* Define to 1 if you have the header file. */ +#undef HAVE_DLFCN_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the 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 diff --git a/configure.in b/configure.in index 6178060ec7..4975649bfb 100644 --- a/configure.in +++ b/configure.in @@ -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 index 0000000000..14aaf754bc --- /dev/null +++ b/include/Makefile.am @@ -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 index 0000000000..14aaf754bc --- /dev/null +++ b/include/libvirt/Makefile.am @@ -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 index 0000000000..2997db07a4 --- /dev/null +++ b/libxen.pc.in @@ -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 index 0000000000..3eac05edd0 --- /dev/null +++ b/libxen.spec.in @@ -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 0.0.1-1 +- created diff --git a/src/Makefile.am b/src/Makefile.am index 14b7902cd7..c54dd1e410 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 index 0000000000..24536aeefd --- /dev/null +++ b/src/libxen_sym.version @@ -0,0 +1,8 @@ +{ + global: + xenOpenConnect; + xenCloseConnect; + xenGetVersion; + xenCreateLinuxDomain; + local: *; +};