2013-10-21 10:26:14 +02:00
|
|
|
#
|
2014-02-06 12:09:13 +01:00
|
|
|
# spec file for package libevdev
|
2013-10-21 10:26:14 +02:00
|
|
|
#
|
2021-02-10 11:32:13 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2013-10-21 10:26:14 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-04-06 12:06:30 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-21 10:26:14 +02:00
|
|
|
#
|
|
|
|
|
2014-02-06 12:09:13 +01:00
|
|
|
|
2014-02-27 11:59:39 +01:00
|
|
|
%define sonum 2
|
2020-04-06 12:06:30 +02:00
|
|
|
Name: libevdev
|
2021-02-10 11:32:13 +01:00
|
|
|
Version: 1.11.0
|
2013-10-21 10:26:14 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A wrapper library for evdev devices
|
2014-02-06 12:09:13 +01:00
|
|
|
License: MIT
|
2015-12-08 10:01:58 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-04-06 12:06:30 +02:00
|
|
|
URL: https://xorg.freedesktop.org/
|
2021-02-10 11:32:13 +01:00
|
|
|
Source0: https://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz.sig
|
2015-11-16 11:43:09 +01:00
|
|
|
Source2: %{name}.keyring
|
|
|
|
Source3: baselibs.conf
|
2013-10-21 10:26:14 +02:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
2020-04-06 12:06:30 +02:00
|
|
|
BuildRequires: pkgconfig
|
2021-06-29 15:39:48 +02:00
|
|
|
BuildRequires: python3-base
|
2013-10-21 10:26:14 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Library for handling evdev kernel devices. It abstracts the ioctls
|
|
|
|
through type-safe interfaces and provides functions to change
|
|
|
|
the appearance of the device.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libevdev library
|
2015-12-08 10:01:58 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-02-27 11:59:39 +01:00
|
|
|
Requires: libevdev%{sonum} = %{version}
|
2013-10-21 10:26:14 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Library for handling evdev kernel devices. It abstracts the ioctls
|
|
|
|
through type-safe interfaces and provides functions to change
|
|
|
|
the appearance of the device.
|
|
|
|
|
|
|
|
Development files for libevdev library
|
|
|
|
|
2014-02-27 11:59:39 +01:00
|
|
|
%package -n libevdev%{sonum}
|
2013-10-21 10:26:14 +02:00
|
|
|
Summary: Library for handling evdev kernel devices
|
|
|
|
Group: System/Libraries
|
2014-03-18 12:42:28 +01:00
|
|
|
Suggests: %{name}-tools
|
2013-10-21 10:26:14 +02:00
|
|
|
|
2014-02-27 11:59:39 +01:00
|
|
|
%description -n libevdev%{sonum}
|
2013-10-21 10:26:14 +02:00
|
|
|
Library for handling evdev kernel devices. It abstracts the ioctls
|
|
|
|
through type-safe interfaces and provides functions to change
|
|
|
|
the appearance of the device.
|
|
|
|
|
2014-03-18 12:42:28 +01:00
|
|
|
%package tools
|
|
|
|
Summary: Library for handling evdev kernel devices
|
|
|
|
Group: System/Base
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
Library for handling evdev kernel devices. It abstracts the ioctls
|
|
|
|
through type-safe interfaces and provides functions to change
|
|
|
|
the appearance of the device.
|
|
|
|
|
|
|
|
Aditional utilities for libevdev library
|
|
|
|
|
2013-10-21 10:26:14 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--disable-gcov
|
2020-04-06 12:06:30 +02:00
|
|
|
%make_build
|
2013-10-21 10:26:14 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2020-04-06 12:06:30 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2013-10-21 10:26:14 +02:00
|
|
|
|
2014-02-27 11:59:39 +01:00
|
|
|
%post -n libevdev%{sonum} -p /sbin/ldconfig
|
|
|
|
%postun -n libevdev%{sonum} -p /sbin/ldconfig
|
2013-10-21 10:26:14 +02:00
|
|
|
|
2014-02-27 11:59:39 +01:00
|
|
|
%files -n libevdev%{sonum}
|
2020-04-06 12:06:30 +02:00
|
|
|
%license COPYING
|
2013-10-21 10:26:14 +02:00
|
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
|
|
|
|
%files devel
|
2020-04-06 12:06:30 +02:00
|
|
|
%license COPYING
|
2013-10-21 10:26:14 +02:00
|
|
|
%{_libdir}/%{name}.so
|
2015-12-08 10:01:58 +01:00
|
|
|
%{_includedir}/%{name}-1.0/
|
2013-10-21 10:26:14 +02:00
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2014-02-27 11:59:39 +01:00
|
|
|
%{_mandir}/man3/libevdev.*
|
2013-10-21 10:26:14 +02:00
|
|
|
|
2014-03-18 12:42:28 +01:00
|
|
|
%files tools
|
2020-04-06 12:06:30 +02:00
|
|
|
%license COPYING
|
2015-03-30 11:30:34 +02:00
|
|
|
%{_bindir}/mouse-dpi-tool
|
|
|
|
%{_bindir}/libevdev-tweak-device
|
2014-03-18 12:42:28 +01:00
|
|
|
%{_bindir}/touchpad-edge-detector
|
2021-02-10 11:32:13 +01:00
|
|
|
%{_mandir}/man1/libevdev-tweak-device.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/touchpad-edge-detector.1%{?ext_man}
|
2014-03-18 12:42:28 +01:00
|
|
|
|
2013-10-21 10:26:14 +02:00
|
|
|
%changelog
|