File rv3028-kmp.spec of Package rv3028-kmp
#
# spec file for package rv3028-kmp
#
# Copyright (c) 2022, Martin Hauke <mardnh@gmx.de>
#
# 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 https://bugs.opensuse.org/
#
Name: rv3028-kmp
Version: 0.1
Release: 0
Summary: RTC Driver for the Micro Crystal RV3028
License: GPL-2.0-only
Group: Hardware/Other
URL: https://www.microcrystal.com/en/products/real-time-clock-rtc-modules/rv-3028-c7/
Source: https://www.microcrystal.com/fileadmin/Media/Products/RTC/LinuxDriver/rv3028.zip
Source1: rv3028-kmp-preamble
BuildRequires: %{kernel_module_package_buildreqs}
BuildRequires: unzip
%kernel_module_package -n rv3028 -p rv3028-kmp
%description
Out-of-tree RTC Driver for the Micro Crystal RV3028.
%prep
%setup -q -n rv3028
set -- *
mkdir source
mv "$@" source/
mkdir obj
%build
for flavor in %{flavors_to_build}; do
cp -r source obj/$flavor
%make_build -C %{kernel_source $flavor} modules M=$PWD/obj/$flavor
done
%install
export INSTALL_MOD_PATH=%{buildroot}
for flavor in %{flavors_to_build}; do
make V=1 -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor
done
%files
%doc source/rv3028-documentation.pdf
%changelog