%global modname r8125 %if 0%{?fedora} %global debug_package %{nil} %endif Name: %{modname} Version: 9.016.01 Release: 3%{?dist} Vendor: Realtek Summary: Realtek %{modname} 2.5GbE PCIE Kernel Driver Group: System Environment/Kernel License: GPL-2.0-only URL: https://www.realtek.com/Download/List?cate_id=584#:~:text=2%2E5G%20Ethernet%20LINUX%20driver%20r8125 BugURL: https://github.com/makl11/r8125-akmod/issues Source0: %{modname}-%{version}.tar.bz2 Source1: LICENSE Source2: modprobe.conf Provides: %{name}-kmod-common = %{version} Requires: %{name}-kmod >= %{version} BuildRequires: systemd-rpm-macros %description Realtek r8125 2.5GbE PCIE Kernel Driver RTL8125 / RTL8125B(G) / RTL8125D / RTL8125K RTL8125BP / RTL8125CP %prep %autosetup -C %build head -n32 Makefile | cat - %{SOURCE1} > LICENSE %install mkdir -p %{buildroot}%{_prefix}/lib/modprobe.d/ install -p -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/modprobe.d/%{modname}.conf %files %doc README %license LICENSE %{_prefix}/lib/modprobe.d/%{modname}.conf %changelog