[packages/hpvsa] new, version 1.2.8

glen glen at pld-linux.org
Fri Nov 15 08:52:48 CET 2013


commit f27fa855aeb8b0078b0ea847eb0f7aa6b811e38c
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Nov 15 09:52:09 2013 +0200

    new, version 1.2.8
    
    binary driver repackage as rpm

 hpvsa.spec | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 83 insertions(+)
---
diff --git a/hpvsa.spec b/hpvsa.spec
new file mode 100644
index 0000000..f143108
--- /dev/null
+++ b/hpvsa.spec
@@ -0,0 +1,83 @@
+#
+# Conditional build:
+%bcond_without	dist_kernel	# allow non-distribution kernel
+%bcond_without	kernel		# don't build kernel modules
+%bcond_with	verbose		# verbose build (V=1)
+
+%if %{without kernel}
+%undefine	with_dist_kernel
+%endif
+%if "%{_alt_kernel}" != "%{nil}"
+%undefine	with_userspace
+%endif
+
+# binary driver. redefine
+%define	_kernel_ver 3.8.0-33-generic
+%define	_kernel_ver_str %(echo %{_kernel_ver} | tr - _)
+
+%define		rel	0.1
+%define		pname	hpvsa
+Summary:	HP storage controller support
+Name:		%{pname}%{_alt_kernel}
+Version:	1.2.8
+Release:	%{rel}
+License:	HP Proprietary
+Group:		Base/Kernel
+Source0:	http://ppa.launchpad.net/hp-iss-team/hpvsa-update/ubuntu/pool/main/h/hpvsa/hpvsa_%{version}-0~12~ubuntu13.04.1.tar.gz
+# NoSource0-md5:	1699424136da8b4098c9589f5494e477
+NoSource:	0
+URL:		https://launchpad.net/~hp-iss-team/+archive/hpvsa-update
+%if %{with kernel}
+%{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
+BuildRequires:	rpmbuild(macros) >= 1.379
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Driver for HP Smart Array B120i/B320i SATA RAID controller.
+
+%package -n kernel%{_alt_kernel}-scsi-hpvsa
+Summary:	Linux driver for hpvsa
+Summary(pl.UTF-8):	Sterownik dla Linuksa do hpvsa
+Release:	%{rel}@%{_kernel_ver_str}
+Group:		Base/Kernel
+Requires(post,postun):	/sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel
+Requires(postun):	%releq_kernel
+%endif
+
+%description -n kernel%{_alt_kernel}-scsi-hpvsa
+Driver for HP Smart Array B120i/B320i SATA RAID controller.
+
+This package contains Linux module.
+
+%description -n kernel%{_alt_kernel}-scsi-hpvsa -l pl.UTF-8
+Sterownik dla Linuksa do hpvsa.
+
+Ten pakiet zawiera moduł jądra Linuksa.
+
+%prep
+%setup -qc
+mv recipe-*/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%if %{with kernel}
+%install_kernel_modules -m hpvsa -d kernel/scsi
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-n kernel%{_alt_kernel}-scsi-hpvsa
+%depmod %{_kernel_ver}
+
+%postun	-n kernel%{_alt_kernel}-scsi-hpvsa
+%depmod %{_kernel_ver}
+
+%if %{with kernel}
+%files -n kernel%{_alt_kernel}-scsi-hpvsa
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}/kernel/scsi/*.ko*
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hpvsa.git/commitdiff/f27fa855aeb8b0078b0ea847eb0f7aa6b811e38c



More information about the pld-cvs-commit mailing list