From cc7f23cf115ef26d4c504771507df2bf0e2053f2 Mon Sep 17 00:00:00 2001 From: "Fabio M. Di Nitto" Date: Wed, 11 Nov 2020 15:48:54 +0100 Subject: [PATCH] devel: add corosync-qdevice.pc file for pcs to use add corosync-qdevice-devel package for future Signed-off-by: Fabio M. Di Nitto Reviewed-by: Jan Friesse --- .gitignore | 1 + Makefile.am | 3 +++ configure.ac | 1 + corosync-qdevice.pc.in | 7 +++++++ corosync-qdevice.spec.in | 12 ++++++++++++ 5 files changed, 24 insertions(+) create mode 100644 corosync-qdevice.pc.in diff --git a/.gitignore b/.gitignore index 118c4f5..edaa374 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ doc Makefile Makefile.in corosync-qdevice.spec +corosync-qdevice.pc aclocal.m4 autom4te.cache/ compile diff --git a/Makefile.am b/Makefile.am index 26e2af7..9b3b39f 100644 --- a/Makefile.am +++ b/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: diff --git a/configure.ac b/configure.ac index e00ac4a..7cc9086 100644 --- a/configure.ac +++ b/configure.ac @@ -105,6 +105,7 @@ AC_CONFIG_FILES([Makefile qdevices/Makefile man/Makefile init/Makefile + corosync-qdevice.pc ]) # =============================================== diff --git a/corosync-qdevice.pc.in b/corosync-qdevice.pc.in new file mode 100644 index 0000000..2026881 --- /dev/null +++ b/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 diff --git a/corosync-qdevice.spec.in b/corosync-qdevice.spec.in index 1179167..8ead4d6 100644 --- a/corosync-qdevice.spec.in +++ b/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