3 %bcond_with gui # event-gui (noinst as of 0.4.0)
4 %bcond_with static_libs # static library
6 Summary: Input device library
7 Summary(pl.UTF-8): Biblioteka urządzeń wejściowych
13 Source0: http://www.freedesktop.org/software/libinput/%{name}-%{version}.tar.xz
14 # Source0-md5: 18f6e1d6ab58db9a66c5ee8ca20aa876
15 URL: http://www.freedesktop.org/wiki/Software/libinput/
16 %{?with_gui:BuildRequires: cairo-devel}
17 BuildRequires: check-devel >= 0.9.10
18 BuildRequires: doxygen >= 1.6.0
19 %{?with_gui:BuildRequires: glib2-devel >= 2.0}
20 BuildRequires: graphviz >= 2.26.0
21 %{?with_gui:BuildRequires: gtk+3-devel >= 3.0}
22 BuildRequires: libevdev-devel >= 0.4
23 BuildRequires: mtdev-devel >= 1.1.0
24 BuildRequires: pkgconfig
25 BuildRequires: udev-devel
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 libinput is a library that handles input devices for display servers
30 and other applications that need to directly deal with input devices.
32 It provides device detection, device handling, input device event
33 processing and abstraction so minimize the amount of custom input code
34 the user of libinput need to provide the common set of functionality
37 %description -l pl.UTF-8
38 libinput to biblioteka obsługująca urządzenia wejściowe dla serwerów
39 grafiki i innych aplikacji wymagających bezpośredniej obsługi urządzeń
42 Biblioteka zapewnia wykrywanie urządzeń, obsługę urządzeń,
43 przetwarzanie zdarzeń urządzeń wejściowych oraz abstrakcję,
44 minimalizując ilość własnego kodu, który musi napisać użytkownik
45 biblioteki, aby zapewnić oczekiwaną funkcjonalność.
48 Summary: Development files for libinput
49 Summary(pl.UTF-8): Pliki programistyczne biblioteki libinput
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
55 This package contains the header files for developing applications
58 %description devel -l pl.UTF-8
59 Ten pakiet zawiera pliki nagłówkowe niezbędne do tworzenia aplikacji
60 wykorzystujących bibliotekę libinput.
63 Summary: Static libinput library
64 Summary(pl.UTF-8): Statyczna biblioteka libinput
65 Group: Development/Libraries
66 Requires: %{name}-devel = %{version}-%{release}
69 Static libinput library.
71 %description static -l pl.UTF-8
72 Statyczna biblioteka libinput.
75 Summary: API documentation for libinput library
76 Summary(pl.UTF-8): Dokumentacja API biblioteki libinput
80 API documentation for libinput library.
82 %description apidocs -l pl.UTF-8
83 Dokumentacja API biblioteki libinput.
90 --disable-silent-rules \
91 %{?with_static_libs:--enable-static} \
92 --with-udev-dir=/lib/udev
97 rm -rf $RPM_BUILD_ROOT
100 DESTDIR=$RPM_BUILD_ROOT
102 # obsoleted by pkg-config
103 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
106 rm -rf $RPM_BUILD_ROOT
108 %post -p /sbin/ldconfig
109 %postun -p /sbin/ldconfig
112 %defattr(644,root,root,755)
113 %doc COPYING README.txt
114 %attr(755,root,root) %{_bindir}/libinput-list-devices
115 %attr(755,root,root) %{_libdir}/libinput.so.*.*.*
116 %attr(755,root,root) %ghost %{_libdir}/libinput.so.10
117 %attr(755,root,root) /lib/udev/libinput-device-group
118 /lib/udev/rules.d/80-libinput-device-groups.rules
119 %{_mandir}/man1/libinput-list-devices.1*
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libinput.so
124 %{_includedir}/libinput.h
125 %{_pkgconfigdir}/libinput.pc
127 %if %{with static_libs}
129 %defattr(644,root,root,755)
130 %{_libdir}/libinput.a
134 %defattr(644,root,root,755)