smp_utils-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. Summary: Utilities for SAS management protocol (SMP)
  2. Name: smp_utils
  3. Version: 0.99
  4. Release: 1%{?_dist_release}
  5. Group: Applications/System
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  9. License: BSD
  10. URL: http://sg.danny.cz/sg/smp_utils.html
  11. Source0: http://sg.danny.cz/sg/p/%{name}-%{version}.tgz
  12. Requires: %{name}-libs%{?_isa} = %{version}-%{release}
  13. %description
  14. This is a package of utilities. Each utility sends a Serial Attached
  15. SCSI (SAS) Management Protocol (SMP) request to a SMP target.
  16. If the request fails then the error is decoded. If the request succeeds
  17. then the response is either decoded, printed out in hexadecimal or
  18. output in binary. This package supports multiple interfaces since
  19. SMP passthroughs are not mature. This package supports the linux
  20. 2.4 and 2.6 series and should be easy to port to other operating
  21. systems.
  22. Warning: Some of these tools access the internals of your system
  23. and the incorrect usage of them may render your system inoperable.
  24. %package libs
  25. Summary: Shared library for %{name}
  26. %description libs
  27. This package contains the shared library for %{name}.
  28. %package devel
  29. Summary: Development library and header files for the smp_utils library
  30. Requires: %{name}-libs%{?_isa} = %{version}-%{release}
  31. %description devel
  32. This package contains the %{name} library and its header files for
  33. developing applications.
  34. %prep
  35. %setup -q
  36. %build
  37. %configure --disable-static
  38. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  39. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  40. make %{?smp_mflags} CFLAGS="%{optflags} -DSMP_UTILS_LINUX"
  41. %install
  42. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  43. make install \
  44. PREFIX=%{_prefix} \
  45. DESTDIR=%{buildroot}
  46. rm -f %{buildroot}%{_libdir}/*.la
  47. %clean
  48. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  49. %files
  50. %defattr(-,root,root)
  51. %license COPYING
  52. %doc ChangeLog COVERAGE CREDITS INSTALL README
  53. %attr(0755,root,root) %{_bindir}/*
  54. %{_mandir}/man8/*
  55. %files libs
  56. %doc COPYING
  57. %{_libdir}/*.so.*
  58. %files devel
  59. %{_includedir}/scsi/*.h
  60. %{_libdir}/*.so
  61. %changelog
  62. * Sat Apr 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.99-1
  63. - new upstream release.
  64. * Sat Dec 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.94-3
  65. - rebuild with VineSeed environment
  66. * Sat Sep 04 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.94-2
  67. - changed Group to Applications/System
  68. * Wed Apr 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.94-1
  69. - Initial build for Vine Linux
  70. - add Patch0 (smp_utils-0.94-Makefile-vine.patch)
  71. * Mon Dec 29 2008 - dgilbert at interlog dot com
  72. - adjust sgv4 for lk 2.6.27, sync with sas2r15
  73. * smp_utils-0.94
  74. * Sun Jan 06 2008 - dgilbert at interlog dot com
  75. - sync with sas2r13, add 'sgv4' interface
  76. * smp_utils-0.93
  77. * Fri Dec 08 2006 - dgilbert at interlog dot com
  78. - sync against sas2r07, add smp_conf_general
  79. * smp_utils-0.92
  80. * Tue Aug 22 2006 - dgilbert at interlog dot com
  81. - add smp_phy_test and smp_discover_list, uniform exit status values
  82. * smp_utils-0.91
  83. * Sun Jun 11 2006 - dgilbert at interlog dot com
  84. - add smp_read_gpio, smp_conf_route_info and smp_write_gpio
  85. * smp_utils-0.90