libevdev/libevdev.spec
2014-01-08 10:31:27 +00:00

94 lines
2.6 KiB
RPMSpec

#
# spec file for package
#
# 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
Version: 0.4
Release: 0
License: X11
Summary: A wrapper library for evdev devices
Url: http://xorg.freedesktop.org/
Group: System/Libraries
Source0: http://freedesktop.org/software/libevdev/%{name}-%{version}.tar.xz
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: libevdev1 = %{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 libevdev1
Summary: Library for handling evdev kernel devices
Group: System/Libraries
%description -n libevdev1
Library for handling evdev kernel devices. It abstracts the ioctls
through type-safe interfaces and provides functions to change
the appearance of the device.
%prep
%setup -q
%if 0%{?suse_version} < 1230
%patch0 -p1
%endif
%build
%configure \
--disable-static \
--disable-gcov
make %{?_smp_mflags}
%install
%make_install
%post -n libevdev1 -p /sbin/ldconfig
%postun -n libevdev1 -p /sbin/ldconfig
%files -n libevdev1
%defattr(-,root,root)
%doc COPYING
%{_libdir}/%{name}.so.*
%exclude %{_libdir}/*.la
%files devel
%defattr(-,root,root)
%doc COPYING
%{_libdir}/%{name}.so
%dir %{_includedir}/%{name}-1.0
%{_includedir}/%{name}-1.0/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%exclude %{_libdir}/*.la
%changelog