[805] | 1 | Summary: Utilities for SAS management protocol (SMP) |
---|
[12364] | 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 |
---|
[1767] | 9 | |
---|
[12364] | 10 | License: BSD |
---|
[805] | 11 | URL: http://sg.danny.cz/sg/smp_utils.html |
---|
| 12 | Source0: http://sg.danny.cz/sg/p/%{name}-%{version}.tgz |
---|
| 13 | |
---|
[12364] | 14 | Requires: %{name}-libs%{?_isa} = %{version}-%{release} |
---|
[805] | 15 | |
---|
| 16 | |
---|
| 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 | |
---|
| 27 | Warning: Some of these tools access the internals of your system |
---|
| 28 | and the incorrect usage of them may render your system inoperable. |
---|
| 29 | |
---|
[12364] | 30 | |
---|
| 31 | %package libs |
---|
| 32 | Summary: Shared library for %{name} |
---|
| 33 | |
---|
| 34 | %description libs |
---|
| 35 | This package contains the shared library for %{name}. |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | %package devel |
---|
| 39 | Summary: Development library and header files for the smp_utils library |
---|
| 40 | Requires: %{name}-libs%{?_isa} = %{version}-%{release} |
---|
| 41 | |
---|
| 42 | %description devel |
---|
| 43 | This package contains the %{name} library and its header files for |
---|
| 44 | developing applications. |
---|
| 45 | |
---|
| 46 | |
---|
[805] | 47 | %prep |
---|
| 48 | %setup -q |
---|
| 49 | |
---|
[12364] | 50 | |
---|
[805] | 51 | %build |
---|
[12364] | 52 | %configure --disable-static |
---|
[805] | 53 | |
---|
[12364] | 54 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
---|
| 55 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
---|
[805] | 56 | |
---|
[12364] | 57 | make %{?smp_mflags} CFLAGS="%{optflags} -DSMP_UTILS_LINUX" |
---|
| 58 | |
---|
| 59 | |
---|
[805] | 60 | %install |
---|
| 61 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 62 | |
---|
| 63 | make install \ |
---|
| 64 | PREFIX=%{_prefix} \ |
---|
[12364] | 65 | DESTDIR=%{buildroot} |
---|
| 66 | rm -f %{buildroot}%{_libdir}/*.la |
---|
[805] | 67 | |
---|
[12364] | 68 | |
---|
[805] | 69 | %clean |
---|
| 70 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 71 | |
---|
[12364] | 72 | |
---|
[805] | 73 | %files |
---|
| 74 | %defattr(-,root,root) |
---|
[12364] | 75 | %license COPYING |
---|
| 76 | %doc ChangeLog COVERAGE CREDITS INSTALL README |
---|
[805] | 77 | %attr(0755,root,root) %{_bindir}/* |
---|
| 78 | %{_mandir}/man8/* |
---|
| 79 | |
---|
[12364] | 80 | %files libs |
---|
| 81 | %doc COPYING |
---|
| 82 | %{_libdir}/*.so.* |
---|
| 83 | |
---|
| 84 | %files devel |
---|
| 85 | %{_includedir}/scsi/*.h |
---|
| 86 | %{_libdir}/*.so |
---|
| 87 | |
---|
| 88 | |
---|
[805] | 89 | %changelog |
---|
[12364] | 90 | * Sat Apr 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.99-1 |
---|
| 91 | - new upstream release. |
---|
| 92 | |
---|
[8067] | 93 | * Sat Dec 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.94-3 |
---|
| 94 | - rebuild with VineSeed environment |
---|
| 95 | |
---|
[1767] | 96 | * Sat Sep 04 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.94-2 |
---|
| 97 | - changed Group to Applications/System |
---|
| 98 | |
---|
[805] | 99 | * Wed Apr 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.94-1 |
---|
| 100 | - Initial build for Vine Linux |
---|
| 101 | - add Patch0 (smp_utils-0.94-Makefile-vine.patch) |
---|
| 102 | |
---|
| 103 | * Mon Dec 29 2008 - dgilbert at interlog dot com |
---|
| 104 | - adjust sgv4 for lk 2.6.27, sync with sas2r15 |
---|
| 105 | * smp_utils-0.94 |
---|
| 106 | * Sun Jan 06 2008 - dgilbert at interlog dot com |
---|
| 107 | - sync with sas2r13, add 'sgv4' interface |
---|
| 108 | * smp_utils-0.93 |
---|
| 109 | * Fri Dec 08 2006 - dgilbert at interlog dot com |
---|
| 110 | - sync against sas2r07, add smp_conf_general |
---|
| 111 | * smp_utils-0.92 |
---|
| 112 | * Tue Aug 22 2006 - dgilbert at interlog dot com |
---|
| 113 | - add smp_phy_test and smp_discover_list, uniform exit status values |
---|
| 114 | * smp_utils-0.91 |
---|
| 115 | * Sun Jun 11 2006 - dgilbert at interlog dot com |
---|
| 116 | - add smp_read_gpio, smp_conf_route_info and smp_write_gpio |
---|
| 117 | * smp_utils-0.90 |
---|