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: 381b61396de28c12716ef7a5475fea50
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
19 %{?with_gui:BuildRequires: glib2-devel >= 2.0}
20 %{?with_gui:BuildRequires: gtk+3-devel >= 3.0}
21 BuildRequires: libevdev-devel >= 0.4
22 BuildRequires: mtdev-devel >= 1.1.0
23 BuildRequires: pkgconfig
24 BuildRequires: udev-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 libinput is a library that handles input devices for display servers
29 and other applications that need to directly deal with input devices.
31 It provides device detection, device handling, input device event
32 processing and abstraction so minimize the amount of custom input code
33 the user of libinput need to provide the common set of functionality
36 %description -l pl.UTF-8
37 libinput to biblioteka obsługująca urządzenia wejściowe dla serwerów
38 grafiki i innych aplikacji wymagających bezpośredniej obsługi urządzeń
41 Biblioteka zapewnia wykrywanie urządzeń, obsługę urządzeń,
42 przetwarzanie zdarzeń urządzeń wejściowych oraz abstrakcję,
43 minimalizując ilość własnego kodu, który musi napisać użytkownik
44 biblioteki, aby zapewnić oczekiwaną funkcjonalność.
47 Summary: Development files for libinput
48 Summary(pl.UTF-8): Pliki programistyczne biblioteki libinput
49 Group: Development/Libraries
50 Requires: %{name} = %{version}-%{release}
54 This package contains the header files for developing applications
57 %description devel -l pl.UTF-8
58 Ten pakiet zawiera pliki nagłówkowe niezbędne do tworzenia aplikacji
59 wykorzystujących bibliotekę libinput.
62 Summary: Static libinput library
63 Summary(pl.UTF-8): Statyczna biblioteka libinput
64 Group: Development/Libraries
65 Requires: %{name}-devel = %{version}-%{release}
68 Static libinput library.
70 %description static -l pl.UTF-8
71 Statyczna biblioteka libinput.
74 Summary: API documentation for libinput library
75 Summary(pl.UTF-8): Dokumentacja API biblioteki libinput
79 API documentation for libinput library.
81 %description apidocs -l pl.UTF-8
82 Dokumentacja API biblioteki libinput.
89 --disable-silent-rules \
90 %{?with_static_libs:--enable-static}
95 rm -rf $RPM_BUILD_ROOT
98 DESTDIR=$RPM_BUILD_ROOT
100 # obsoleted by pkg-config
101 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
104 rm -rf $RPM_BUILD_ROOT
106 %post -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
110 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/libinput.so.*.*.*
113 %attr(755,root,root) %ghost %{_libdir}/libinput.so.5
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libinput.so
118 %{_includedir}/libinput.h
119 %{_pkgconfigdir}/libinput.pc
121 %if %{with static_libs}
123 %defattr(644,root,root,755)
124 %{_libdir}/libinput.a
128 %defattr(644,root,root,755)