[openib-general] [PATCH ofed-1.2] ofa_user.spec: fix libehca directory structure

Stefan Roscher ossrosch at linux.vnet.ibm.com
Thu Feb 8 09:32:14 PST 2007


Correct directory structure according to new driver loading scheme from libibverbs


Signed-off-by: Stefan Roscher <stefan.roscher at de.ibm.com>
---


--- ofa_user.spec_old	2007-02-08 09:03:33.000000000 -0800
+++ ofa_user.spec_new	2007-02-08 09:07:32.000000000 -0800
@@ -693,11 +693,11 @@ touch libosmvendor-devel-files
             /bin/ls -1 $RPM_BUILD_ROOT%{_libdir32}/ipathverbs*.a | sed -e "s@$RPM_BUILD_ROOT@@g" >> libipathverbs-devel-files
         fi
 
-        if ( /bin/ls $RPM_BUILD_ROOT%{_libdir32}/infiniband/libehca*so* > /dev/null 2>&1 ); then
-            /bin/ls -1 $RPM_BUILD_ROOT%{_libdir32}/infiniband/libehca*so* | sed -e "s@$RPM_BUILD_ROOT@@g" > libehca-files
+        if ( /bin/ls $RPM_BUILD_ROOT%{_libdir32}/libehca*so* > /dev/null 2>&1 ); then
+            /bin/ls -1 $RPM_BUILD_ROOT%{_libdir32}/libehca*so* | sed -e "s@$RPM_BUILD_ROOT@@g" > libehca-files
         fi
-        if ( /bin/ls $RPM_BUILD_ROOT%{_libdir32}/infiniband/libehca*.a > /dev/null 2>&1 ); then
-            /bin/ls -1 $RPM_BUILD_ROOT%{_libdir32}/infiniband/libehca*.a | sed -e "s@$RPM_BUILD_ROOT@@g" >> libehca-devel-files
+        if ( /bin/ls $RPM_BUILD_ROOT%{_libdir32}/libehca*.a > /dev/null 2>&1 ); then
+            /bin/ls -1 $RPM_BUILD_ROOT%{_libdir32}/libehca*.a | sed -e "s@$RPM_BUILD_ROOT@@g" >> libehca-devel-files
         fi
 
         if ( /bin/ls $RPM_BUILD_ROOT%{_libdir32}/libibcommon*so.* > /dev/null 2>&1 ); then
@@ -1165,14 +1165,14 @@ fi
 %if %{build_libehca}
 %files -n libehca -f libehca-files
 %defattr(-,root,root,-)
-%{_libdir}/infiniband/libehca*.so*
+%{_libdir}/libehca*.so*
 # %doc AUTHORS COPYING ChangeLog README
 %endif
 
 %if %{build_libehca_devel}
 %files -n libehca-devel -f libehca-devel-files
 %defattr(-,root,root,-)
-%{_libdir}/infiniband/libehca*.a
+%{_libdir}/libehca*.a
 %endif
 
 %if %{build_libsdp}
 







More information about the general mailing list