Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ximi1970:Dkms:Staging
dkms-rtl8821cu
dkms-rtl8821cu.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dkms-rtl8821cu.spec of Package dkms-rtl8821cu
# # spec file for package dkms-rtl8821cu # # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via bumblebee.obs@gmail.com # %define modname rtl8821cu %define kmodname 8821cu Name: dkms-%{modname} Summary: Kernel module for Realtek RTL8821CU Version: 5.12.0 Release: 0 URL: https://github.com/morrownr/8821cu Group: System/Kernel License: GPL-2.0 Vendor: Ximi1970 Source0: %{modname}-%{version}.tar.xz Source1000: %{name}-rpmlintrc # BuildRequires: unzip # Requires: binutils %ifarch aarch64 #Requires: gcc5 Requires: gcc %else Requires: gcc %endif Requires: make Requires: patch Requires: bc %if 0%{?mdkversion} Requires: dkms-minimal %else Requires: dkms %endif #BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This package contains linux kernel module for Realtek RTL8821CU %prep %setup -q -n %{modname}-%{version} %build %install rm -rf %{buildroot} # find . -name "*.c" -exec chmod ugo-x {} \; find . -name "*.h" -exec chmod ugo-x {} \; # install -d -m 755 %{buildroot}/usr/src/%{modname}-%{version}-%{release} # cp -rf %{_builddir}/%{modname}-%{version}/* %{buildroot}/usr/src/%{modname}-%{version}-%{release} # cat > %{buildroot}/usr/src/%{modname}-%{version}-%{release}/dkms.conf << EOF PACKAGE_NAME=%{modname} PACKAGE_VERSION=%{version}-%{release} MAKE[0]="'make' -j2 modules" CLEAN[0]="'make' clean" DEST_MODULE_LOCATION[0]="/updates/" BUILT_MODULE_NAME[0]="%{kmodname}" AUTOINSTALL="yes" NO_WEAK_MODULES="yes" EOF %clean rm -rf %{buildroot} %post if [ -x /usr/sbin/dkms ] && [ -z "`/usr/sbin/dkms status -m %{modname} -v %{version}-%{release}`" ] ; then /usr/sbin/dkms add -m %{modname} -v %{version}-%{release} --rpm_safe_upgrade || : /usr/sbin/dkms build -m %{modname} -v %{version}-%{release} || : /usr/sbin/dkms install -m %{modname} -v %{version}-%{release} || : fi %preun # rmmod can fail if [ -x /sbin/rmmod ] ; then /sbin/rmmod %{modname} >/dev/null 2>&1 || : fi # if [ -x /usr/sbin/dkms ] && [ -n "`/usr/sbin/dkms status -m %{modname} -v %{version}-%{release}`" ] ; then /usr/sbin/dkms remove -m %{modname} -v %{version}-%{release} --all --rpm_safe_upgrade || : fi %files %defattr(-,root,root) %dir /usr/src/%{modname}-%{version}-%{release} /usr/src/%{modname}-%{version}-%{release} %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