Change-Id: I61feaf1fe91390d2789feecb7966496f1bb38518
Reviewed-on: http://photon-jenkins.eng.vmware.com/717
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: suezzelur <anishs@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,55 @@ |
| 0 |
+Summary: Tools and Utilities for interaction with SCSI devices. |
|
| 1 |
+Name: sg3_utils |
|
| 2 |
+Version: 1.42 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+License: GPLv2 |
|
| 5 |
+URL: http://sg.danny.cz/sg/sg3_utils.html |
|
| 6 |
+Source0: http://sg.danny.cz/sg/p/sg3_utils-1.42.tar.xz |
|
| 7 |
+%define sha1 sg3_utils=7af36a62d10e2f078b5c96b18e5e3f4f6143f648 |
|
| 8 |
+Group: System/Tools. |
|
| 9 |
+Vendor: VMware, Inc. |
|
| 10 |
+Distribution: Photon |
|
| 11 |
+Provides: sg_utils. |
|
| 12 |
+ |
|
| 13 |
+%description |
|
| 14 |
+Linux tools and utilities to send commands to SCSI devices. |
|
| 15 |
+ |
|
| 16 |
+%package -n libsg3_utils-devel |
|
| 17 |
+Summary: Devel pacjage for sg3_utils. |
|
| 18 |
+Group: Development/Library. |
|
| 19 |
+ |
|
| 20 |
+%description -n libsg3_utils-devel |
|
| 21 |
+Package containing static library object for development. |
|
| 22 |
+ |
|
| 23 |
+%prep |
|
| 24 |
+%setup -q |
|
| 25 |
+ |
|
| 26 |
+%build |
|
| 27 |
+%configure |
|
| 28 |
+ |
|
| 29 |
+%install |
|
| 30 |
+make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
| 31 |
+install -m 755 scripts/scsi_logging_level %{buildroot}/%{_bindir}
|
|
| 32 |
+install -m 755 scripts/rescan-scsi-bus.sh %{buildroot}/%{_bindir}
|
|
| 33 |
+ |
|
| 34 |
+%post -p /sbin/ldconfig |
|
| 35 |
+ |
|
| 36 |
+%postun -p /sbin/ldconfig |
|
| 37 |
+ |
|
| 38 |
+ |
|
| 39 |
+%files |
|
| 40 |
+%defattr(-,root,root) |
|
| 41 |
+%{_bindir}/*
|
|
| 42 |
+%{_mandir}/*
|
|
| 43 |
+%{_libdir}/libsgutils2.so.*
|
|
| 44 |
+ |
|
| 45 |
+%files -n libsg3_utils-devel |
|
| 46 |
+%defattr(-,root,root) |
|
| 47 |
+%{_libdir}/libsgutils2.a
|
|
| 48 |
+%{_libdir}/libsgutils2.la
|
|
| 49 |
+%{_libdir}/libsgutils2.so
|
|
| 50 |
+%{_includedir}/scsi/*
|
|
| 51 |
+ |
|
| 52 |
+%changelog |
|
| 53 |
+* Thu Apr 14 2016 Kumar Kaushik <kaushikk@vmware.com> 1.42-1 |
|
| 54 |
+- Initial build. First version |