3 %bcond_with gui # event-gui (noinst as of 0.4.0)
5 Summary: Input device library
6 Summary(pl.UTF-8): Biblioteka urządzeń wejściowych
12 Source0: http://www.freedesktop.org/software/libinput/%{name}-%{version}.tar.xz
13 # Source0-md5: 60969c60e11792fab4ecaa7222f43697
14 URL: http://www.freedesktop.org/wiki/Software/libinput/
15 %{?with_gui:BuildRequires: cairo-devel}
16 BuildRequires: check-devel >= 0.9.9
17 BuildRequires: doxygen
18 %{?with_gui:BuildRequires: glib2-devel >= 2.0}
19 %{?with_gui:BuildRequires: gtk+3-devel >= 3.0}
20 BuildRequires: libevdev-devel >= 0.4
21 BuildRequires: mtdev-devel >= 1.1.0
22 BuildRequires: pkgconfig
23 BuildRequires: udev-devel
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 libinput is a library that handles input devices for display servers
28 and other applications that need to directly deal with input devices.
30 It provides device detection, device handling, input device event
31 processing and abstraction so minimize the amount of custom input code
32 the user of libinput need to provide the common set of functionality
35 %description -l pl.UTF-8
36 libinput to biblioteka obsługująca urządzenia wejściowe dla serwerów
37 grafiki i innych aplikacji wymagających bezpośredniej obsługi urządzeń
40 Biblioteka zapewnia wykrywanie urządzeń, obsługę urządzeń,
41 przetwarzanie zdarzeń urządzeń wejściowych oraz abstrakcję,
42 minimalizując ilość własnego kodu, który musi napisać użytkownik
43 biblioteki, aby zapewnić oczekiwaną funkcjonalność.
46 Summary: Development files for libinput
47 Summary(pl.UTF-8): Pliki programistyczne biblioteki libinput
48 Group: Development/Libraries
49 Requires: %{name} = %{version}-%{release}
53 This package contains the header files for developing applications
56 %description devel -l pl.UTF-8
57 Ten pakiet zawiera pliki nagłówkowe niezbędne do tworzenia aplikacji
58 wykorzystujących bibliotekę libinput.
61 Summary: Static libinput library
62 Summary(pl.UTF-8): Statyczna biblioteka libinput
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}-%{release}
67 Static libinput library.
69 %description static -l pl.UTF-8
70 Statyczna biblioteka libinput.
73 Summary: API documentation for libinput library
74 Summary(pl.UTF-8): Dokumentacja API biblioteki libinput
78 API documentation for libinput library.
80 %description apidocs -l pl.UTF-8
81 Dokumentacja API biblioteki libinput.
88 --disable-silent-rules
93 rm -rf $RPM_BUILD_ROOT
96 DESTDIR=$RPM_BUILD_ROOT
98 # obsoleted by pkg-config
99 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
102 rm -rf $RPM_BUILD_ROOT
104 %post -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
108 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libinput.so.*.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libinput.so.3
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_libdir}/libinput.so
116 %{_includedir}/libinput.h
117 %{_pkgconfigdir}/libinput.pc
120 %defattr(644,root,root,755)
121 %{_libdir}/libinput.a
124 %defattr(644,root,root,755)