-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrcraid.spec
More file actions
53 lines (43 loc) · 1.84 KB
/
Copy pathrcraid.spec
File metadata and controls
53 lines (43 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Name: AMD-Fake-Raid
Version: 1.0
Release: 1%{?dist}
Summary: Ryzen Fakeraid dkms module for chipset 4xx and 3xx
License: Properitary
URL: https://github.com/lyra00/AMD-Fake-Raid
BuildRequires: git
Requires: dkms
Requires: kernel-devel
%description
Ryzen Fake Raid DKMS (Dynamic Kernel Module Support)
-----
This DKMS driver provides Ryzen Fake Raid support for X370, B350, X470, B450 and X399 Mainboards.
Raid modes 0,1,10,5 are supported.
The module is rebuilt through the DKMS system when a new kernel or module
become available.
There is currently no smart support for Drives in FakeRaidMode
%define debug_package %{nil}
%install
rm -rf git
git clone %{url}.git git
cd git
install -D -m 0644 *.c -t "%{buildroot}%{_usrsrc}/AMD-Fake-Raid-%{version}/"
install -D -m 0644 *.h -t "%{buildroot}%{_usrsrc}/AMD-Fake-Raid-%{version}/"
install -D -m 0644 common_shell -t "%{buildroot}%{_usrsrc}/AMD-Fake-Raid-%{version}/"
install -D -m 0644 LICENSE_SDK -t "%{buildroot}%{_usrsrc}/AMD-Fake-Raid-%{version}/"
install -D -m 0644 *.i386 -t "%{buildroot}%{_usrsrc}/AMD-Fake-Raid-%{version}/"
install -D -m 0644 *.x86_64 -t "%{buildroot}%{_usrsrc}/AMD-Fake-Raid-%{version}/"
install -m 0644 Makefile -t "%{buildroot}%{_usrsrc}/AMD-Fake-Raid-%{version}/"
install -m 0644 dkms.conf "%{buildroot}%{_usrsrc}/AMD-Fake-Raid-%{version}/dkms.conf"
cd ..
rm -rf git
# do after installation
%post
sed -i 's/PACKAGE_VERSION="#MODULE_VERSION#"/PACKAGE_VERSION="%{version}"/g' %{_usrsrc}/AMD-Fake-Raid/dkms.conf
/usr/bin/env dkms add -m AMD-Fake-Raid -v %{version} --rpm_safe_upgrade
/usr/bin/env dkms build -m AMD-Fake-Raid -v %{version}
/usr/bin/env dkms install -m AMD-Fake-Raid -v %{version} --force
%preun
/usr/bin/env dkms remove AMD-Fake-Raid/%{version} --all --rpm_safe_upgrade
# Those files will be in the rpm
%files
%{_usrsrc}/AMD-Fake-Raid-%{version}