Added pkgconfig file (libguestfs.pc).

This commit is contained in:
Richard Jones
2009-04-22 11:47:07 +01:00
parent f99cb04943
commit a8d2536243
6 changed files with 23 additions and 7 deletions

1
.gitignore vendored
View File

@@ -46,6 +46,7 @@ java/api
java/com_redhat_et_libguestfs_GuestFS.h
java/doc-stamp
missing
libguestfs.pc
libguestfs.spec
libguestfs-*.tar.gz
libtool

View File

@@ -42,7 +42,8 @@ EXTRA_DIST = \
libguestfs.spec \
html/pod.css \
HACKING TODO \
tests.c
tests.c \
libguestfs.pc libguestfs.pc.in
# Build the root filesystem.
# Currently this is arch-dependent, so it seems like putting it in
@@ -136,6 +137,11 @@ html/guestfish.1.html: guestfish.pod guestfish-actions.pod
website: html/guestfs.3.html html/guestfish.1.html
cp $^ html/pod.css $(HOME)/d/redhat/et-website/libguestfs/
# Pkgconfig.
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libguestfs.pc
# Test-boot the image.
test-boot: emptydisk

4
TODO
View File

@@ -5,7 +5,3 @@ https://www.redhat.com/archives/fedora-virt/2009-April/msg00114.html
We badly need to actually implement the FTP server mentioned in the
documentation.
----------------------------------------------------------------------
Needs pkgconfig file.

View File

@@ -15,7 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
AC_INIT([libguestfs],[1.0.7])
AC_INIT([libguestfs],[1.0.8])
AM_INIT_AUTOMAKE
AC_CONFIG_MACRO_DIR([m4])
@@ -340,7 +340,7 @@ AC_CONFIG_FILES([Makefile src/Makefile fish/Makefile examples/Makefile
ruby/Makefile ruby/Rakefile
java/Makefile
make-initramfs.sh update-initramfs.sh
libguestfs.spec
libguestfs.spec libguestfs.pc
ocaml/META perl/Makefile.PL])
AC_OUTPUT

11
libguestfs.pc.in Normal file
View File

@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: libguestfs
Version: @VERSION@
Description: libguestfs library for accessing and modifying VM images
Requires:
Cflags:
Libs: -lguestfs @LIBS@

View File

@@ -91,6 +91,7 @@ For Java bindings, see 'libguestfs-java-devel'.
Summary: Development tools and libraries for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
@@ -320,6 +321,7 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/guestfs.h
%{_includedir}/guestfs-actions.h
%{_includedir}/guestfs-structs.h
%{_libdir}/pkgconfig/libguestfs.pc
%files -n guestfish