]> git.openfabrics.org - ~adrianc/mstflint.git/commitdiff
modified spec file to perform softlinks to mtcr old location during installation...
authorAdrian Chiris <adrianc@mellanox.com>
Mon, 28 Mar 2016 10:25:15 +0000 (13:25 +0300)
committerAdrian Chiris <adrianc@mellanox.com>
Mon, 28 Mar 2016 11:09:30 +0000 (14:09 +0300)
mstflint.spec.in

index 1d1986202200606b968bd0fcc223fe7fb6779a7d..09a9555abad5364ad351f0a368c691e5a447a176 100644 (file)
@@ -69,6 +69,14 @@ make DESTDIR=${RPM_BUILD_ROOT} install
 # remove unpackaged files from the buildroot
 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 
+# create softlinks to old mtcr header and lib locations
+# link mtcr_ul to old location
+mkdir -p %{buildroot}/%{_includedir}/mtcr_ul
+ln -s %{_includedir}/mstflint/mtcr.h %{buildroot}/%{_includedir}/mtcr_ul/mtcr.h
+ln -s %{_includedir}/mstflint/mtcr_com_defs.h %{buildroot}/%{_includedir}/mtcr_ul/mtcr_com_defs.h
+# link mtcr_ul to old lib path
+ln -s %{_libdir}/mstflint/libmtcr_ul.a %{buildroot}/%{_libdir}/libmtcr_ul.a 
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -86,18 +94,14 @@ rm -rf $RPM_BUILD_ROOT
 
 %{_includedir}/mstflint/mtcr.h
 %{_includedir}/mstflint/mtcr_com_defs.h
+%{_includedir}/mtcr_ul/mtcr.h
+%{_includedir}/mtcr_ul/mtcr_com_defs.h
 %{_libdir}/mstflint/libmtcr_ul.a
+%{_libdir}/libmtcr_ul.a
 
 %{_datadir}/mstflint
 %{_mandir}/man1/*
 
-%post
-# link mtcr_ul to old include path
-mkdir -p %{_includedir}/mtcr_ul
-ln -s %{_includedir}/mstflint/mtcr.h            %{_includedir}/mtcr_ul/mtcr.h
-# link mtcr_ul to old lib path
-ln -s %{_libdir}/mstflint/libmtcr_ul.a            %{_libdir}/libmtcr_ul.a 
-
 %changelog
 * Wed Mar 23 2016 Adrian Chiris <adrianc@dev.mellanox.co.il>
    MFT 4.4.0 Updates