Commit b6345ba1 by Daniel Lezcano

add pkg-config for lxc

Add the pkg-config information for lxc. Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 3b9246c4
......@@ -6,6 +6,9 @@ SUBDIRS = src test etc scripts doc
DIST_SUBDIRS = config src test etc scripts doc
EXTRA_DIST = autogen.sh lxc.spec CONTRIBUTING MAINTAINERS ChangeLog
pcdatadir = $(datadir)/pkgconfig
pcdata_DATA = lxc.pc
ChangeLog::
@touch ChangeLog
......
......@@ -14,7 +14,10 @@ AC_PROG_LIBTOOL
AC_CHECK_PROG(SETCAP, setcap, yes, no)
AC_CHECK_PROG(DOCBOOK, docbook2man, yes, no)
AM_CONDITIONAL(ENABLE_DOCBOOK, test x$DOCBOOK = xyes)
AS_AC_EXPAND(PREFIX, $prefix)
AS_AC_EXPAND(LIBDIR, $libdir)
AS_AC_EXPAND(BINDIR, $bindir)
AS_AC_EXPAND(INCLUDEDIR, $includedir)
AS_AC_EXPAND(LIBEXECDIR, $libexecdir)
AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir)
......@@ -59,6 +62,7 @@ AC_SUBST(LXC_MICRO_VERSION)
AC_CONFIG_FILES([
Makefile
lxc.pc
lxc.spec
config/Makefile
......
bindir=@BINDIR@
libdir=@LIBDIR@
localstatedir=@LXCPATH@
includedir=@INCLUDEDIR@
Name: lxc
Description: linux container tools
Version: @LXC_MAJOR_VERSION@.@LXC_MINOR_VERSION@.@LXC_MICRO_VERSION@
URL: http://lxc.sourceforge.net
Libs: -L${libdir} -llxc -lutil
Cflags: -I${includedir}
......@@ -78,6 +78,7 @@ chmod ugo+w /var/lxc
%{_bindir}/*
%{_libexecdir}/*
%{_mandir}/*
%{_datadir}/pkgconfig/*
%files devel
%defattr(-,root,root)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment