Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:nikunj12
OL7UEKR6
scsi_ep_front.spec.in
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File scsi_ep_front.spec.in of Package OL7UEKR6
%define oname scsi_ep_front Name: %{oname}-dkms Version: #VERSION# Release: 0 Summary: Huawei SCSI driver for virtual cinder block storage on OTC BMS (SD100) ExclusiveOS: linux Group: System Environment/Kernel License: GPL-2.0 URL: https://github.com/SDI-Drivers/scsi_ep_front Source0: %{oname}-%{version}.tar.bz2 Source1: LICENSE BuildRequires: dos2unix ##%kernel_module_package_buildreqs BuildArch: noarch Requires: gcc Requires: make Requires: dkms Requires: kernel-debug-devel Requires: kernel-devel Requires(post): dkms Requires(post): kernel-devel Requires(preun): dkms # Without this we get an empty %{oname}-debuginfo package #%undefine _enable_debug_packages %description This SCSI device driver exposes the SCSI (metadata.hw:passthrough=true) cinder volumes on Bare Metal (Ironic) servers in Open Telekom Cloud. The device driver supports specific Huawei SDI add-in cards (SD100EP - 19e5:1610). %prep %setup -q -n %{oname}-%{version} # dkms.conf echo "PACKAGE_NAME=\"%{oname}\" PACKAGE_VERSION=\"%{version}\" CLEAN=\"make clean\" BUILT_MODULE_LOCATION[0]=\".\" BUILT_MODULE_NAME[0]=\"%{oname}\" DEST_MODULE_LOCATION[0]=\"/extras/%{oname}\" DEST_MODULE_NAME[0]=\"%{oname}\" AUTOINSTALL=\"yes\"" > dkms.conf cp -p %{S:1} . dos2unix * %install %{__rm} -rf %{buildroot} # Kernel module sources install for dkms %{__mkdir_p} %{buildroot}%{_usrsrc}/%{oname}-%{version}/ %{__cp} -r ./* %{buildroot}%{_usrsrc}/%{oname}-%{version}/ %post # Add to DKMS registry isadded=`dkms status -m "%{oname}" -v "%{version}"` if [ "x${isadded}" = "x" ] ; then dkms add -m "%{oname}" -v "%{version}" || : dkms build -m "%{oname}" -v "%{version}" || : dkms install -m "%{oname}" -v "%{version}" || : fi %preun # Remove all versions from DKMS registry dkms remove -m "%{oname}" -v "%{version}" --all || : %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %{_usrsrc}/%{oname}-%{version}/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor