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