add packaging
[platform/upstream/xf86-input-keyboard.git] / packaging / xf86-input-keyboard.spec
1 Name:           xf86-input-keyboard
2 Version:        1.6.1
3 Release:        0
4 License:        GPL-2.0+
5 Summary:        Keyboard input driver for the Xorg X server
6 Url:            http://xorg.freedesktop.org/
7 Group:          System/X11/Servers/XF86_4
8 Source0:        http://xorg.freedesktop.org/releases/individual/driver/%{name}-%{version}.tar.bz2
9 BuildRequires:  pkg-config
10 BuildRequires:  pkgconfig(inputproto)
11 BuildRequires:  pkgconfig(resourceproto)
12 BuildRequires:  pkgconfig(xorg-macros) >= 1.8
13 BuildRequires:  pkgconfig(xorg-server) >= 1.4
14 BuildRequires:  pkgconfig(xproto)
15 Requires:       udev
16 Requires:       xkeyboard-config >= 1.5
17
18 %description
19 kbd is an Xorg input driver for keyboards. The driver supports the
20 standard OS-provided keyboard interface, but these are currently only
21 available to this driver module for Linux, BSD, and Solaris.
22
23 %prep
24 %setup -q
25
26 %build
27 %configure
28 make %{?_smp_mflags}
29
30 %install
31 %make_install
32
33
34 %remove_docs
35
36 %post
37 # re-plug the input devices
38 udevadm trigger --subsystem-match=input --action=change
39 exit 0
40
41 %postun
42 # re-plug the input devices
43 udevadm trigger --subsystem-match=input --action=change
44 exit 0
45
46 %files
47 %defattr(-,root,root)
48 %doc COPYING
49 %dir %{_libdir}/xorg/modules/input
50 %{_libdir}/xorg/modules/input/kbd_drv.so
51
52 %changelog