libevdev/libevdev.spec
Stefan Dirsch 320909b699 Accepting request 344294 from home:pluskalm:branches:X11:XOrg
- Update to 1.4.5
  * Only a small fix, the suggested hwdb entry that the 
		touchpad-edge-detector printed used the wrong codes for ABS_X 
		and ABS_Y. Fixed with this release, the output is now suitable 
		for copy/paste into the udev hwdb.
- Add gpg signature

OBS-URL: https://build.opensuse.org/request/show/344294
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libevdev?expand=0&rev=23
2015-11-16 10:43:09 +00:00

122 lines
3.4 KiB
RPMSpec

#
# spec file for package libevdev
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) specCURRENT_YEAR SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libevdev
%define sonum 2
Version: 1.4.5
Release: 0
Summary: A wrapper library for evdev devices
License: MIT
Group: System/Libraries
Url: http://xorg.freedesktop.org/
#Git-Web: http://cgit.freedesktop.org/libevdev
#Git-Clone: git://anongit.freedesktop.org/libevdev
Source0: http://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz
Source1: http://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz.sig
Source2: %{name}.keyring
Source3: baselibs.conf
Patch0: n_buildfix_for_opensuse_12_2.patch
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: python
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
Group: Development/Libraries/Other
Requires: libevdev%{sonum} = %{version}
%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
%package -n libevdev%{sonum}
Summary: Library for handling evdev kernel devices
Group: System/Libraries
Suggests: %{name}-tools
%description -n libevdev%{sonum}
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 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
%prep
%setup -q
%if 0%{?suse_version} < 1230
%patch0 -p1
%endif
%build
%configure \
--disable-static \
--disable-gcov
make %{?_smp_mflags}
%install
%make_install
rm -f "%buildroot/%{_libdir}"/*.la
%post -n libevdev%{sonum} -p /sbin/ldconfig
%postun -n libevdev%{sonum} -p /sbin/ldconfig
%files -n libevdev%{sonum}
%defattr(-,root,root)
%doc COPYING
%{_libdir}/%{name}.so.*
%files devel
%defattr(-,root,root)
%doc COPYING
%{_libdir}/%{name}.so
%dir %{_includedir}/%{name}-1.0
%{_includedir}/%{name}-1.0/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/libevdev.*
%files tools
%defattr(-,root,root)
%doc COPYING
%{_bindir}/mouse-dpi-tool
%{_bindir}/libevdev-tweak-device
%{_bindir}/touchpad-edge-detector
%changelog