smp_utils-vl.spec 2.7 KB

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