packages: librdmacm/librdmacm.spec, librdmacm/librdmacm.pc.in (NEW) - added...

qboosh qboosh at pld-linux.org
Fri Sep 10 19:54:23 CEST 2010


Author: qboosh                       Date: Fri Sep 10 17:54:23 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added pkgcofnig file (expected by e.g. corosync)

---- Files affected:
packages/librdmacm:
   librdmacm.spec (1.3 -> 1.4) , librdmacm.pc.in (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/librdmacm/librdmacm.spec
diff -u packages/librdmacm/librdmacm.spec:1.3 packages/librdmacm/librdmacm.spec:1.4
--- packages/librdmacm/librdmacm.spec:1.3	Fri Sep 10 09:10:49 2010
+++ packages/librdmacm/librdmacm.spec	Fri Sep 10 19:54:18 2010
@@ -8,6 +8,7 @@
 Group:		Libraries
 Source0:	http://www.openfabrics.org/downloads/rdmacm/%{name}-%{version}.tar.gz
 # Source0-md5:	2281aa8bf47caf34819842f79e3f9759
+Source1:	%{name}.pc.in
 URL:		http://www.openfabrics.org/
 BuildRequires:	libibverbs-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -57,6 +58,13 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+# check if not present already
+[ ! -f %{_pkgconfigdir}/rdmacm.pc ] || exit 1
+install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
+sed -e 's, at prefix@,%{_prefix},;
+	s, at libdir@,%{_libdir},;
+	s, at LIBVERSION@,%{version},' %{SOURCE1} >$RPM_BUILD_ROOT%{_pkgconfigdir}/rdmacm.pc
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -87,6 +95,7 @@
 %{_libdir}/librdmacm.la
 %{_includedir}/infiniband/ib.h
 %{_includedir}/rdma
+%{_pkgconfigdir}/rdmacm.pc
 %{_mandir}/man3/rdma_*.3*
 %{_mandir}/man7/rdma_cm.7*
 
@@ -100,6 +109,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2010/09/10 17:54:18  qboosh
+- added pkgcofnig file (expected by e.g. corosync)
+
 Revision 1.3  2010/09/10 07:10:49  qboosh
 - updated to 1.0.13
 - pl

================================================================
Index: packages/librdmacm/librdmacm.pc.in
diff -u /dev/null packages/librdmacm/librdmacm.pc.in:1.1
--- /dev/null	Fri Sep 10 19:54:23 2010
+++ packages/librdmacm/librdmacm.pc.in	Fri Sep 10 19:54:18 2010
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=@libdir@
+includedir=${prefix}/include
+
+Name: rdmacm
+Version: @LIBVERSION@
+Description: rdmacm
+Requires:
+Libs: -L${libdir} -lrdmacm
+Cflags: -I${includedir}
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/librdmacm/librdmacm.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list