smp_utils-vl.spec 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. %define name smp_utils
  2. %define version 0.94
  3. %define release 1
  4. Summary: Utilities for SAS management protocol (SMP)
  5. Name: %{name}
  6. Version: %{version}
  7. Release: 2%{?_dist_release}
  8. License: FreeBSD
  9. Group: Applications/System
  10. URL: http://sg.danny.cz/sg/smp_utils.html
  11. Source0: http://sg.danny.cz/sg/p/%{name}-%{version}.tgz
  12. # Patch for Vine Linux
  13. # remove install option (-o root, -g root)
  14. Patch0: smp_utils-0.94-Makefile-vine.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. Packager: Douglas Gilbert <dgilbert at interlog dot com>
  17. %description
  18. This is a package of utilities. Each utility sends a Serial Attached
  19. SCSI (SAS) Management Protocol (SMP) request to a SMP target.
  20. If the request fails then the error is decoded. If the request succeeds
  21. then the response is either decoded, printed out in hexadecimal or
  22. output in binary. This package supports multiple interfaces since
  23. SMP passthroughs are not mature. This package supports the linux
  24. 2.4 and 2.6 series and should be easy to port to other operating
  25. systems.
  26. Warning: Some of these tools access the internals of your system
  27. and the incorrect usage of them may render your system inoperable.
  28. %prep
  29. %setup -q
  30. %patch0 -p1 -b .vine
  31. %build
  32. make \
  33. CFLAGS="%{optflags} -DSMP_UTILS_LINUX"
  34. %install
  35. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  36. make install \
  37. PREFIX=%{_prefix} \
  38. INSTDIR=%{buildroot}/%{_bindir} \
  39. MANDIR=%{buildroot}/%{_mandir} \
  40. INCLUDEDIR=%{buildroot}/%{_includedir}
  41. %clean
  42. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  43. %files
  44. %defattr(-,root,root)
  45. %doc ChangeLog COPYING COVERAGE CREDITS INSTALL README
  46. %attr(0755,root,root) %{_bindir}/*
  47. %{_mandir}/man8/*
  48. %changelog
  49. * Sat Sep 04 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.94-2
  50. - changed Group to Applications/System
  51. * Wed Apr 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.94-1
  52. - Initial build for Vine Linux
  53. - add Patch0 (smp_utils-0.94-Makefile-vine.patch)
  54. * Mon Dec 29 2008 - dgilbert at interlog dot com
  55. - adjust sgv4 for lk 2.6.27, sync with sas2r15
  56. * smp_utils-0.94
  57. * Sun Jan 06 2008 - dgilbert at interlog dot com
  58. - sync with sas2r13, add 'sgv4' interface
  59. * smp_utils-0.93
  60. * Fri Dec 08 2006 - dgilbert at interlog dot com
  61. - sync against sas2r07, add smp_conf_general
  62. * smp_utils-0.92
  63. * Tue Aug 22 2006 - dgilbert at interlog dot com
  64. - add smp_phy_test and smp_discover_list, uniform exit status values
  65. * smp_utils-0.91
  66. * Sun Jun 11 2006 - dgilbert at interlog dot com
  67. - add smp_read_gpio, smp_conf_route_info and smp_write_gpio
  68. * smp_utils-0.90