forked from ektor5/init-headphone
-
Notifications
You must be signed in to change notification settings - Fork 1
/
init-headphone.spec
45 lines (31 loc) · 919 Bytes
/
init-headphone.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
Name: init-headphone
Version: 0.10
Release: 1%{?dist}
Summary: Reactivates the headphone jack on some Clevo laptops after suspend
License: GPLv3
URL: https://github.com/letitz/%{name}
%global commit e4ea070f1f8e1563621f004af4566f8274765a1c
Source0: https://github.com/letitz/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
BuildArch: noarch
%{?systemd_requires}
BuildRequires: systemd
Requires: i2c-tools-python
%description
This script fixes a bug in Clevo W230SS-based laptops where the headphone jack
would not work anymore after a resume from suspend.
%prep
%setup -qn %{name}-%{commit}
%build
%install
%make_install
%post
%systemd_post init-headphone.service
%preun
%systemd_preun init-headphone.service
%postun
%systemd_postun_with_restart init-headphone.service
%files
%{_sbindir}/init-headphone
%{_sysconfdir}/modules-load.d/init-headphone.conf
%{_unitdir}/init-headphone.service
%changelog