Переглянути джерело

devel: add corosync-qdevice.pc file for pcs to use

add corosync-qdevice-devel package for future

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Fabio M. Di Nitto 5 роки тому
батько
коміт
cc7f23cf11
5 змінених файлів з 24 додано та 0 видалено
  1. 1 0
      .gitignore
  2. 3 0
      Makefile.am
  3. 1 0
      configure.ac
  4. 7 0
      corosync-qdevice.pc.in
  5. 12 0
      corosync-qdevice.spec.in

+ 1 - 0
.gitignore

@@ -10,6 +10,7 @@ doc
 Makefile
 Makefile.in
 corosync-qdevice.spec
+corosync-qdevice.pc
 aclocal.m4
 autom4te.cache/
 compile

+ 3 - 0
Makefile.am

@@ -48,6 +48,9 @@ MAINTAINERCLEANFILES	= Makefile.in aclocal.m4 configure depcomp \
 
 dist_doc_DATA		= LICENSE
 
+pkgconfigdir		= ${prefix}/share/pkgconfig
+pkgconfig_DATA		= corosync-qdevice.pc
+
 SUBDIRS			= qdevices man init
 
 install-exec-local:

+ 1 - 0
configure.ac

@@ -105,6 +105,7 @@ AC_CONFIG_FILES([Makefile
 		 qdevices/Makefile
 		 man/Makefile
 		 init/Makefile
+		 corosync-qdevice.pc
 		 ])
 
 # ===============================================

+ 7 - 0
corosync-qdevice.pc.in

@@ -0,0 +1,7 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+confdir=@COROSYSCONFDIR@
+
+Name: @PACKAGE@
+Version: @VERSION@
+Description: @PACKAGE@ build information required for downstream projects

+ 12 - 0
corosync-qdevice.spec.in

@@ -147,6 +147,18 @@ fi
 %{_mandir}/man8/corosync-qdevice-net-certutil.8*
 %{_mandir}/man8/corosync-qdevice.8*
 
+%package -n corosync-qdevice-devel
+Summary: The Corosync Cluster Engine Qdevice Network Development Kit
+Requires: pkgconfig
+
+%description -n corosync-qdevice-devel
+This package contains files used to develop using
+The Corosync Cluster Engine Qdevice
+
+%files -n corosync-qdevice-devel
+%license LICENSE
+%{_datadir}/pkgconfig/corosync-qdevice.pc
+
 %package -n corosync-qnetd
 Summary: The Corosync Cluster Engine Qdevice Network Daemon
 Requires: nss-tools