Added pkgconfig file (libguestfs.pc). 1.0.8
authorRichard Jones <rjones@redhat.com>
Wed, 22 Apr 2009 10:47:07 +0000 (11:47 +0100)
committerRichard Jones <rjones@redhat.com>
Wed, 22 Apr 2009 10:47:07 +0000 (11:47 +0100)
.gitignore
Makefile.am
TODO
configure.ac
libguestfs.pc.in [new file with mode: 0644]
libguestfs.spec.in

index 25d8a02..b680481 100644 (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
index b642bdd..a3992a6 100644 (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
diff --git a/TODO b/TODO
index 8935147..e829358 100644 (file)
--- a/TODO
+++ b/TODO
@@ -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.
index d641048..e995500 100644 (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
 
diff --git a/libguestfs.pc.in b/libguestfs.pc.in
new file mode 100644 (file)
index 0000000..bcbc241
--- /dev/null
@@ -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@
index 2cd66f7..9b83b48 100644 (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