]>
Commit | Line | Data |
---|---|---|
11e9e5bb JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with gui # event-gui (noinst as of 0.4.0) | |
4 | # | |
b1a834ff | 5 | Summary: Input device library |
66c98b1b | 6 | Summary(pl.UTF-8): Biblioteka urządzeń wejściowych |
b1a834ff | 7 | Name: libinput |
c1b182b6 | 8 | Version: 0.5.0 |
b1a834ff AM |
9 | Release: 1 |
10 | License: MIT | |
66c98b1b | 11 | Group: Libraries |
b1a834ff | 12 | Source0: http://www.freedesktop.org/software/libinput/%{name}-%{version}.tar.xz |
c1b182b6 | 13 | # Source0-md5: 9aeb2e44c0f5e13c8cf1ce6bcdf29e83 |
66c98b1b | 14 | URL: http://www.freedesktop.org/wiki/Software/libinput/ |
11e9e5bb | 15 | %{?with_gui:BuildRequires: cairo-devel} |
66c98b1b JB |
16 | BuildRequires: check-devel >= 0.9.9 |
17 | BuildRequires: doxygen | |
11e9e5bb JB |
18 | %{?with_gui:BuildRequires: glib2-devel >= 2.0} |
19 | %{?with_gui:BuildRequires: gtk+3-devel >= 3.0} | |
66c98b1b JB |
20 | BuildRequires: libevdev-devel >= 0.4 |
21 | BuildRequires: mtdev-devel >= 1.1.0 | |
22 | BuildRequires: pkgconfig | |
b1a834ff | 23 | BuildRequires: udev-devel |
66c98b1b | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
b1a834ff AM |
25 | |
26 | %description | |
27 | libinput is a library that handles input devices for display servers | |
28 | and other applications that need to directly deal with input devices. | |
29 | ||
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 | |
33 | that users expect. | |
34 | ||
66c98b1b JB |
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ń | |
38 | wejściowych. | |
39 | ||
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ść. | |
44 | ||
45 | %package devel | |
46 | Summary: Development files for libinput | |
47 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libinput | |
48 | Group: Development/Libraries | |
b1a834ff | 49 | Requires: %{name} = %{version}-%{release} |
66c98b1b JB |
50 | Requires: udev-devel |
51 | ||
52 | %description devel | |
53 | This package contains the header files for developing applications | |
54 | that use libinput. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
57 | Ten pakiet zawiera pliki nagłówkowe niezbędne do tworzenia aplikacji | |
58 | wykorzystujących bibliotekę libinput. | |
59 | ||
60 | %package static | |
61 | Summary: Static libinput library | |
62 | Summary(pl.UTF-8): Statyczna biblioteka libinput | |
63 | Group: Development/Libraries | |
64 | Requires: %{name}-devel = %{version}-%{release} | |
65 | ||
66 | %description static | |
67 | Static libinput library. | |
b1a834ff | 68 | |
66c98b1b JB |
69 | %description static -l pl.UTF-8 |
70 | Statyczna biblioteka libinput. | |
71 | ||
72 | %package apidocs | |
73 | Summary: API documentation for libinput library | |
74 | Summary(pl.UTF-8): Dokumentacja API biblioteki libinput | |
75 | Group: Documentation | |
76 | ||
77 | %description apidocs | |
78 | API documentation for libinput library. | |
79 | ||
80 | %description apidocs -l pl.UTF-8 | |
81 | Dokumentacja API biblioteki libinput. | |
b1a834ff AM |
82 | |
83 | %prep | |
84 | %setup -q | |
85 | ||
86 | %build | |
87 | %configure \ | |
b1a834ff AM |
88 | --disable-silent-rules |
89 | ||
90 | %{__make} | |
91 | ||
92 | %install | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %{__make} install \ | |
96 | DESTDIR=$RPM_BUILD_ROOT | |
97 | ||
66c98b1b JB |
98 | # obsoleted by pkg-config |
99 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
100 | ||
b1a834ff AM |
101 | %clean |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
66c98b1b JB |
104 | %post -p /sbin/ldconfig |
105 | %postun -p /sbin/ldconfig | |
b1a834ff AM |
106 | |
107 | %files | |
108 | %defattr(644,root,root,755) | |
66c98b1b JB |
109 | %doc COPYING README |
110 | %attr(755,root,root) %{_libdir}/libinput.so.*.*.* | |
11e9e5bb | 111 | %attr(755,root,root) %ghost %{_libdir}/libinput.so.3 |
b1a834ff AM |
112 | |
113 | %files devel | |
114 | %defattr(644,root,root,755) | |
b1a834ff | 115 | %attr(755,root,root) %{_libdir}/libinput.so |
66c98b1b | 116 | %{_includedir}/libinput.h |
b1a834ff | 117 | %{_pkgconfigdir}/libinput.pc |
66c98b1b JB |
118 | |
119 | %files static | |
120 | %defattr(644,root,root,755) | |
121 | %{_libdir}/libinput.a | |
122 | ||
123 | %files apidocs | |
124 | %defattr(644,root,root,755) | |
125 | %doc doc/html/* |