File exfat-linux.spec of Package exfat-linux
#
# spec file for package exfat-linux
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#
%define _over 5.8-1arter97
Name: exfat-linux
Version: 5.8_1arter97
Release: 0
Summary: An exFAT filesystem module for the Linux kernel
License: GPL-2.0-or-later
URL: https://github.com/arter97/exfat-linux
Source: https://github.com/arter97/exfat-linux/archive/%{_over}.tar.gz#/%{name}-%{_over}.tar.gz
Source1: preamble
BuildRequires: %{kernel_module_package_buildreqs}
Requires: exfat-utils-nofuse
%kernel_module_package -p %{_sourcedir}/preamble
%description
This exFAT filesystem module for the Linux kernel is based on the sdFAT
drivers by Samsung, which is used with their smartphone lineups.
The main objective of exfat-linux is to provide the best generic kernel
drivers for exFAT. That means Samsung-specific modifications such as
fat12/16/32 handlings, defrag and etc has been removed to make the code
portable.
%prep
%setup -q -n %{name}-%{_over}
set -- *
mkdir source
mv "$@" source/
mkdir obj
%build
for flavor in %{flavors_to_build}; do
rm -rf obj/$flavor
cp -r source obj/$flavor
make V=1 %{?_smp_mflags} -C %{kernel_source $flavor} %{?linux_make_arch} modules M=$PWD/obj/$flavor
done
%install
export INSTALL_MOD_PATH=%{buildroot}
export INSTALL_MOD_DIR='%{kernel_module_package_moddir}'
for flavor in %{flavors_to_build}; do
make V=1 -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor
done
%changelog