File libevdev.spec of Package libevdev
#
# spec file for package libevdev
#
# Copyright (c) 2013 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 lname %{name}1
Version: 0.4
Release: 0
Provides: libevdev = %version-%release
Obsoletes: libevdev < %version-%release
Summary: Generic evdev Wrapper Library
License: MIT
Group: Development/Libraries/C and C++
Url: http://cgit.freedesktop.org/libevdev
#Git-Clone: git://anongit.freedesktop.org/libevdev
Source: http://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz
#Source: libevdev-0.4.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf >= 2.63
BuildRequires: automake >= 1.10
BuildRequires: pkgconfig
BuildRequires: python
Group: System/Libraries
%description
Provides API for the common tasks when dealing with evdev devices
%package -n %lname
Summary: Generic evdev Wrapper Library
%description -n %lname
Provides API for the common tasks when dealing with evdev devices
%package devel
Summary: Development files for the Generic evdev Wrapper Library
Group: Development/Libraries/C and C++
Requires: %lname = %version
Provides: %{lname}-devel = %version-%release
Obsoletes: %{lname}-devel < %version-%release
%description devel
Provides API for the common tasks when dealing with evdev devices
thus avoiding erroneous ioctls, etc.
This package contains the development headers for the library found
in libevdev.
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%makeinstall
rm -f "%buildroot/%_libdir"/*.la
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%defattr(-,root,root)
%_libdir/libevdev.so.1*
%files devel
%defattr(-,root,root)
%dir %_includedir/libevdev-1.0
%dir %_includedir/libevdev-1.0/libevdev
%_includedir/libevdev-1.0/libevdev/libevdev-uinput.h
%_includedir/libevdev-1.0/libevdev/libevdev.h
%_libdir/libevdev.so
%_libdir/pkgconfig/libevdev.pc
%changelog