blob: 3d092627a768dd23b9f6739d4adbe5ff29196f12 (
plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
%global moduledir %(pkg-config xorg-server --variable=moduledir )
%global driverdir %{moduledir}/input
Name: xorg-x11-drv-synaptics
Summary: Xorg X11 Synaptics touchpad input driver
Version: 1.10.0
Release: 1
URL: http://www.x.org
License: MIT
Source0: https://www.x.org/releases/individual/driver/xf86-input-synaptics-%{version}.tar.xz
Source1: 70-synaptics.conf
Source2: 70-touchpad-quirks.rules
ExcludeArch: s390 s390x
BuildRequires: pkgconfig(inputproto) >= 2.1.99.3
BuildRequires: pkgconfig(libevdev) >= 0.4
BuildRequires: pkgconfig(randrproto)
BuildRequires: pkgconfig(recordproto)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xi) >= 1.2
BuildRequires: pkgconfig(xorg-server) >= 1.18
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(xtst)
Requires: Xorg
Requires: libevdev
Requires: libXi libXtst
Provides: synaptics = %{version}-%{release}
Obsoletes: synaptics < 0.15.0
%description
This package is a an empty package. For the legacy X.Org touchpad driver,
please install xorg-x11-drv-synaptics legacy.
%package legacy
Summary: Xorg X11 synaptics input driver
%description legacy
This is the Synaptics touchpad driver for the X.Org X server. The following
touchpad models are supported:
%prep
%autosetup -p1 -n xf86-input-synaptics-%{version}
%build
%configure --disable-static --disable-silent-rules
%make_build
%install
%make_install
%delete_la
# Remove upstream synaptics.conf as we've several special fixes in ours
rm $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d/70-synaptics.conf
install -d $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d/70-synaptics.conf
install -d $RPM_BUILD_ROOT%{_udevrulesdir}
install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_udevrulesdir}/70-touchpad-quirks.rules
%post
udevadm control --reload-rules || :
%postun
udevadm control --reload-rules || :
# NOTE: xorg-x11-drv-synaptics is obsoleted by xorg-x11-drv-libinput.
# The main package does not have any files anymore and thus does not
# generate an rpm. xorg-x11-drv-libinput can thus easily obsolete < 1.9.0-3,
# the synaptics files are now in xorg-x11-drv-legacy only.
#
# DO NOT CHANGE THIS.
#
%files legacy
%doc README
%license COPYING
%{_datadir}/X11/xorg.conf.d/70-synaptics.conf
%{driverdir}/synaptics_drv.so
%{_bindir}/synclient
%{_bindir}/syndaemon
%{_mandir}/man4/synaptics.4*
%{_mandir}/man1/synclient.1*
%{_mandir}/man1/syndaemon.1*
%{_udevrulesdir}/70-touchpad-quirks.rules
%package devel
Summary: Xorg X11 synaptics input driver
%description devel
Development files for the Synaptics TouchPad for X.Org.
%files devel
%license COPYING
%{_libdir}/pkgconfig/xorg-synaptics.pc
%dir %{_includedir}/xorg
%{_includedir}/xorg/synaptics-properties.h
%changelog
* Mon Jan 06 2025 Funda Wang <fundawang@yeah.net> - 1.10.0-1
- update to 1.10.0
* Wed May 25 2022 tanyulong <tanyulong@kylinos.cn> - 1.9.1-4
- Improve the project according to the requirements of compliance improvement
* Mon Nov 2 2020 douyan <douyan@kylinos.cn> - 1.9.1-3
- package init
|