smp_utils-vl.spec 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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: 1%{?_dist_release}
  8. License: FreeBSD
  9. Group: Utilities/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. * Wed Apr 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.94-1
  50. - Initial build for Vine Linux
  51. - add Patch0 (smp_utils-0.94-Makefile-vine.patch)
  52. * Mon Dec 29 2008 - dgilbert at interlog dot com
  53. - adjust sgv4 for lk 2.6.27, sync with sas2r15
  54. * smp_utils-0.94
  55. * Sun Jan 06 2008 - dgilbert at interlog dot com
  56. - sync with sas2r13, add 'sgv4' interface
  57. * smp_utils-0.93
  58. * Fri Dec 08 2006 - dgilbert at interlog dot com
  59. - sync against sas2r07, add smp_conf_general
  60. * smp_utils-0.92
  61. * Tue Aug 22 2006 - dgilbert at interlog dot com
  62. - add smp_phy_test and smp_discover_list, uniform exit status values
  63. * smp_utils-0.91
  64. * Sun Jun 11 2006 - dgilbert at interlog dot com
  65. - add smp_read_gpio, smp_conf_route_info and smp_write_gpio
  66. * smp_utils-0.90