forked from linux-surface/iptsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iptsd.spec
53 lines (41 loc) · 1.02 KB
/
iptsd.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
%global debug_package %{nil}
Name: iptsd
Version: 0.5
Release: 1%{?dist}
Summary: Userspace daemon for Intel Precise Touch & Stylus
License: GPLv2+
URL: https://github.com/linux-surface/iptsd
Source: {{{ git_dir_pack dir_name="iptsd" source_name="iptsd.tar.gz" }}}
BuildRequires: meson
BuildRequires: gcc
BuildRequires: pkgconfig(inih)
BuildRequires: pkgconfig(systemd)
BuildRequires: systemd-rpm-macros
%description
iptsd is a userspace daemon that processes touch events from the IPTS
kernel driver, and sends them back to the kernel using uinput devices.
%prep
{{{ git_dir_setup_macro dir_name="iptsd" }}}
%build
%meson
%meson_build
%install
%meson_install
%post
%systemd_post %{name}.service
%preun
%systemd_preun %{name}.service
%postun
%systemd_postun_with_restart %{name}.service
%check
%meson_test
%files
%license LICENSE
%doc README.md
%config(noreplace) %{_sysconfdir}/ipts.conf
%{_bindir}/%{name}
%{_bindir}/ipts-dbg
%{_bindir}/iptsd-reset-sensor
%{_unitdir}/%{name}.service
%{_udevrulesdir}/50-ipts.rules
%{_datadir}/ipts/*