[packages/mvcli] package mvcli, version 4.1.0.2019

glen glen at pld-linux.org
Mon Sep 14 19:56:48 CEST 2015


commit da1f3010c3c077b8a457dca3042ce294c1d2e3a1
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Sep 14 20:56:15 2015 +0300

    package mvcli, version 4.1.0.2019

 mvcli.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
---
diff --git a/mvcli.spec b/mvcli.spec
new file mode 100644
index 0000000..d3c16a0
--- /dev/null
+++ b/mvcli.spec
@@ -0,0 +1,52 @@
+Summary:	MSU (Marvell Storage Utility).
+Name:		mvcli
+Version:	4.1.0.2019
+Release:	1
+License:	?
+Group:		Base
+Source0:	http://datoptic.com/Download/LINUXMSU%{version}.rar
+# NoSource0-md5:	64c48649acd838d1a8f013fad8ad8287
+NoSource:	0
+URL:		http://www.marvell.com/support/
+BuildRequires:	rpm-utils
+BuildRequires:	unrar
+ExclusiveArch:	%{ix86} %{x8664}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+MSU (Marvell Storage Utility) is a storage management tool applied to
+Marvell HBA products.
+
+%prep
+%setup -qcT
+unrar x %{SOURCE0}
+%ifarch %{ix86}
+arch=i386
+%endif
+%ifarch %{x8664}
+arch=x86_64
+%endif
+
+SOURCE=%{version}/MSU-%{version}-1.$arch.rpm
+rpm2cpio $SOURCE | cpio -i -d
+
+mv %{version}/*.txt .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_libdir}}
+
+install -p %{_lib}/libmvraid.so $RPM_BUILD_ROOT%{_libdir}
+install -p opt/marvell/storage/cli/mvcli $RPM_BUILD_ROOT%{_sbindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt
+%attr(755,root,root) %{_sbindir}/mvcli
+%attr(755,root,root) %{_libdir}/libmvraid.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mvcli.git/commitdiff/da1f3010c3c077b8a457dca3042ce294c1d2e3a1



More information about the pld-cvs-commit mailing list