--- /dev/null
+Name: libinput
+Version: 0.1.0
+Release: 0
+License: MIT
+Summary: Input devices for display servers and other applications
+Url: http://www.freedesktop.org/software/libinput/libinput-%{version}.tar.xz
+Group: System/Libraries
+Source: %{name}-%{version}.tar.gz
+#X-Vcs-Url: git://anongit.freedesktop.org/wayland/libinput
+
+BuildRequires: make
+BuildRequires: pkgconfig(libevdev)
+BuildRequires: pkgconfig(libevent)
+BuildRequires: pkgconfig(libudev)
+BuildRequires: pkgconfig(mtdev)
+
+
+%description
+
+libinput is a library that handles input devices for display servers and
+other applications that need to directly deal with input devices.
+
+It provides device detection, device handling, input device event
+processing and abstraction so minimize the amount of custom input
+code the user of libinput need to provide the common set of
+functionality that users expect.
+
+
+%package devel
+Summary: Input devices for display servers and other applications
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+
+libinput is a library that handles input devices for display servers and
+other applications that need to directly deal with input devices.
+
+It provides device detection, device handling, input device event
+processing and abstraction so minimize the amount of custom input
+code the user of libinput need to provide the common set of
+functionality that users expect.
+
+%prep
+%setup -q
+
+%autogen
+
+%build
+make %{?jobs:-j%jobs} V=1
+
+%install
+%make_install
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root)
+%{_libdir}/*.so.*
+
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*