File rtl8821ce.spec of Package rtl8821ce
#
# spec file for package rtl8821ce
#
# Copyright (c) 2018 Matthias Bach <marix@marix.org>
#
# 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 http://bugs.opensuse.org/
#
Name: rtl8821ce
Version: git20181223
Release: 1.13
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %kernel_module_package_buildreqs
BuildRequires: libelf-devel
BuildRequires: bc
Summary: Driver for Realtek RTL8821CE 802.11ac WLAN Adapter
License: GPL-2.0+
Group: System/Kernel
Url: https://github.com/tomaspinho/rtl8821ce.git
Source0: rtl8821ce-%{version}.tar.xz
Source1: preamble
Patch0: fix_build_system.patch
Patch1: osdep_service_linux.patch
Patch2: leap.patch
Patch3: gcc.patch
%suse_kernel_module_package -p%_sourcedir/preamble
%description
This is the driver for the Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter ported from the Endless OS variant of the linux kernel.
%prep
echo %flavors_to_build
%setup -q
%patch0 -p1
%if 0%{?suse_version} > 1500
%patch1 -p1
%endif
%if 0%{?sle_version} == 150000 && 0%{?is_opensuse}
%patch2 -p1
%endif
%patch3 -p1
%build
%make_build TopDIR=${PWD}
%install
export INSTALL_MOD_PATH=%{buildroot}
export INSTALL_MOD_DIR=updates
%make_install TopDIR=${PWD}
%changelog