xorg-x11-drv-synaptics/xorg-x11-drv-synaptics.spec

123 lines
3.5 KiB
RPMSpec
Raw Normal View History

2020-11-03 10:37:43 +08:00
%global tarball xf86-input-synaptics
%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.9.1
Release: 4
2020-11-03 10:37:43 +08:00
URL: http://www.x.org
License: MIT
Source0: ftp://ftp.x.org/pub/individual/driver/%{tarball}-%{version}.tar.bz2
Source1: 70-synaptics.conf
Source2: 70-touchpad-quirks.rules
2020-11-03 10:37:43 +08:00
ExcludeArch: s390 s390x
BuildRequires: git
BuildRequires: autoconf automake libtool pkgconfig
BuildRequires: xorg-x11-server-devel >= 1.10.99.902
BuildRequires: libX11-devel libXi-devel libXtst-devel
BuildRequires: xorg-x11-util-macros >= 1.8.0
BuildRequires: libevdev-devel
BuildRequires: systemd
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
Requires: pkgconfig
%description legacy
This is the Synaptics touchpad driver for the X.Org X server. The following
touchpad models are supported:
%prep
%setup -q -n %{tarball}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
git init
if [ -z "$GIT_COMMITTER_NAME" ]; then
git config user.email "x@fedoraproject.org"
git config user.name "Fedora X Ninjas"
fi
# Apply all the patches.
git am -p1 %{patches} < /dev/null
%build
autoreconf -v --install --force || exit 1
%configure --disable-static --disable-silent-rules
make %{?_smp_mflags}
%install
%make_install
# FIXME: Remove all libtool archives (*.la) from modules directory. This
# should be fixed in upstream Makefile.am or whatever.
find $RPM_BUILD_ROOT -regex ".*\.la$" | xargs rm -f --
# 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
2020-11-03 10:37:43 +08:00
install -d $RPM_BUILD_ROOT%{_udevrulesdir}
install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_udevrulesdir}/70-touchpad-quirks.rules
2020-11-03 10:37:43 +08:00
%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
Requires: pkgconfig
%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
* Wed May 25 2022 tanyulong <tanyulong@kylinos.cn> - 1.9.1-4
- Improve the project according to the requirements of compliance improvement
2020-11-03 10:37:43 +08:00
* Mon Nov 2 2020 douyan <douyan@kylinos.cn> - 1.9.1-3
- package init