forked from ktdreyer/facetimehd-kmod-rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfacetimehd.spec
64 lines (49 loc) · 1.56 KB
/
facetimehd.spec
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
54
55
56
57
58
59
60
61
62
63
64
%if 0%{?fedora}
%global debug_package %{nil}
%endif
%global srcname facetimehd
%global forgeurl https://github.com/patjak/%{srcname}
%global tag 0.6.13
%forgemeta
Name: facetimehd
Version: %{tag}
Release: 1%{?dist}
Summary: Kernel module for FacetimeHD webcam
Group: System Environment/Kernel
License: GPL-2.0-only
URL: %{forgeurl}
Source: %{forgesource}
Provides: %{name}-kmod-common = %{version}
Requires: %{name}-kmod >= %{version}
Requires: %{name}-firmware
%description
Linux driver for the Facetime HD (Broadcom 1570) PCIe webcam found in recent
Macbooks.
%prep
%forgeautosetup
%install
if [ "$RPM_BUILD_ROOT" != "/" ]; then
rm -rf $RPM_BUILD_ROOT
fi
mkdir -p $RPM_BUILD_ROOT/usr/src/%{name}-%{version}/
cp -rf %{_builddir}/%{srcname}-%{version}/* $RPM_BUILD_ROOT/usr/src/%{name}-%{version}
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/%{name}/
cp %{_builddir}/%{srcname}-%{version}/README.md $RPM_BUILD_ROOT/usr/share/doc/%{name}/
mkdir -p $RPM_BUILD_ROOT/etc/modules-load.d/
echo -e "# Load facetimehd.ko at boot\nfacetimehd" > $RPM_BUILD_ROOT/etc/modules-load.d/facetimehd.conf
%clean
if [ "$RPM_BUILD_ROOT" != "/" ]; then
rm -rf $RPM_BUILD_ROOT
fi
%files
#%doc openrgb-dkms-main/README.md
#%license openrgb-dkms-main/LICENSE
%defattr(-,root,root)
%config /etc/modules-load.d/facetimehd.conf
/usr/src/%{name}-%{version}/
/usr/share/doc/%{name}/
%changelog
* Mon Mar 17 2025 Jon Mulder <[email protected]>
- Update to 0.6.13 release
* Tue Mar 19 2024 Jon Mulder <[email protected]>
- Updated upstream build and spec file to build