From 35b6f5e586afa9280474833bd8e0403dc0c6b3ae Mon Sep 17 00:00:00 2001 From: Bryan O'Sullivan Date: Tue, 7 Mar 2006 22:26:55 +0000 Subject: [PATCH] r5663: first cut at packaging fun for 1.0-rc1. --- librdmacm.spec.in | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/librdmacm.spec.in b/librdmacm.spec.in index 3342217f..fee297e2 100644 --- a/librdmacm.spec.in +++ b/librdmacm.spec.in @@ -1,15 +1,14 @@ # $Id: $ -%define prefix /usr -%define ver @VERSION@ -%define RELEASE 1 -%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} +%define ver @VERSION@ +%define RELEASE 1 +%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} Summary: Userspace RDMA Connection Manager. Name: librdmacm Version: %ver -Release: %rel -Copyright: Dual GPL/BSD +Release: %rel%{?dist} +License: GPL/BSD Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-root Source: http://openib.org/downloads/%{name}-%{version}.tar.gz @@ -19,6 +18,22 @@ Url: http://openib.org/ Along with the OpenIB kernel drivers, librdmacm provides a userspace RDMA Connection Managment API. +%package devel +Summary: Development files for the librdmacm library +Group: System Environment/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Development files for the librdmacm library. + +%package utils +Summary: Utilities for the librdmacm library +Group: System Environment/Base +Requires: %{name} = %{version}-%{release} + +%description utils +Utilities for the librdmacm library. + %prep %setup -q @@ -30,6 +45,9 @@ make make DESTDIR=${RPM_BUILD_ROOT} install # remove unpackaged files from the buildroot rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +cd $RPM_BUILD_ROOT%{_libdir} +mv librdmacm.so librdmacm.so.%{ver} +ln -s librdmacm.so.%{ver} librdmacm.so %clean rm -rf $RPM_BUILD_ROOT @@ -38,3 +56,13 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root) %{_libdir}/librdmacm*.so.* %doc AUTHORS COPYING ChangeLog NEWS README + +%files devel +%defattr(-,root,root) +%{_libdir}/librdmacm.so +%{_includedir}/rdma/*.h + +%files utils +%defattr(-,root,root) +%{_bindir}/rping +%{_bindir}/ucmatose -- 2.41.0