]>
Commit | Line | Data |
---|---|---|
11e9e5bb JB |
1 | # |
2 | # Conditional build: | |
1eece97e JB |
3 | %bcond_with gui # event-gui (noinst as of 0.4.0) |
4 | %bcond_with static_libs # static library | |
a370658f | 5 | %bcond_without doc # documentation |
13fc90c9 | 6 | |
b1a834ff | 7 | Summary: Input device library |
66c98b1b | 8 | Summary(pl.UTF-8): Biblioteka urządzeń wejściowych |
b1a834ff | 9 | Name: libinput |
5ff6832c | 10 | Version: 1.7.2 |
950cf045 | 11 | Release: 1 |
b1a834ff | 12 | License: MIT |
66c98b1b | 13 | Group: Libraries |
c29a2c14 | 14 | Source0: https://www.freedesktop.org/software/libinput/%{name}-%{version}.tar.xz |
5ff6832c | 15 | # Source0-md5: d138d62c528fbf9aba300a97bae453cb |
c29a2c14 | 16 | URL: https://www.freedesktop.org/wiki/Software/libinput/ |
332a61be | 17 | BuildRequires: check-devel >= 0.9.10 |
a370658f MK |
18 | %if %{with gui} |
19 | BuildRequires: cairo-devel | |
20 | BuildRequires: glib2-devel >= 2.0 | |
21 | BuildRequires: gtk+3-devel >= 3.0 | |
22 | %endif | |
23 | %if %{with apidocs} | |
bb392f52 | 24 | BuildRequires: doxygen >= 1.6.0 |
bb392f52 | 25 | BuildRequires: graphviz >= 2.26.0 |
a370658f | 26 | %endif |
66c98b1b | 27 | BuildRequires: libevdev-devel >= 0.4 |
725df436 | 28 | BuildRequires: libwacom-devel >= 0.20 |
66c98b1b JB |
29 | BuildRequires: mtdev-devel >= 1.1.0 |
30 | BuildRequires: pkgconfig | |
b1a834ff | 31 | BuildRequires: udev-devel |
725df436 JB |
32 | Requires: libevdev >= 0.4 |
33 | Requires: libwacom >= 0.20 | |
34 | Requires: mtdev >= 1.1.0 | |
66c98b1b | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
b1a834ff AM |
36 | |
37 | %description | |
38 | libinput is a library that handles input devices for display servers | |
39 | and other applications that need to directly deal with input devices. | |
40 | ||
41 | It provides device detection, device handling, input device event | |
42 | processing and abstraction so minimize the amount of custom input code | |
43 | the user of libinput need to provide the common set of functionality | |
44 | that users expect. | |
45 | ||
66c98b1b JB |
46 | %description -l pl.UTF-8 |
47 | libinput to biblioteka obsługująca urządzenia wejściowe dla serwerów | |
48 | grafiki i innych aplikacji wymagających bezpośredniej obsługi urządzeń | |
49 | wejściowych. | |
50 | ||
51 | Biblioteka zapewnia wykrywanie urządzeń, obsługę urządzeń, | |
52 | przetwarzanie zdarzeń urządzeń wejściowych oraz abstrakcję, | |
53 | minimalizując ilość własnego kodu, który musi napisać użytkownik | |
54 | biblioteki, aby zapewnić oczekiwaną funkcjonalność. | |
55 | ||
56 | %package devel | |
57 | Summary: Development files for libinput | |
58 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libinput | |
59 | Group: Development/Libraries | |
b1a834ff | 60 | Requires: %{name} = %{version}-%{release} |
66c98b1b JB |
61 | Requires: udev-devel |
62 | ||
63 | %description devel | |
64 | This package contains the header files for developing applications | |
65 | that use libinput. | |
66 | ||
67 | %description devel -l pl.UTF-8 | |
68 | Ten pakiet zawiera pliki nagłówkowe niezbędne do tworzenia aplikacji | |
69 | wykorzystujących bibliotekę libinput. | |
70 | ||
71 | %package static | |
72 | Summary: Static libinput library | |
73 | Summary(pl.UTF-8): Statyczna biblioteka libinput | |
74 | Group: Development/Libraries | |
75 | Requires: %{name}-devel = %{version}-%{release} | |
76 | ||
77 | %description static | |
78 | Static libinput library. | |
b1a834ff | 79 | |
66c98b1b JB |
80 | %description static -l pl.UTF-8 |
81 | Statyczna biblioteka libinput. | |
82 | ||
83 | %package apidocs | |
84 | Summary: API documentation for libinput library | |
85 | Summary(pl.UTF-8): Dokumentacja API biblioteki libinput | |
86 | Group: Documentation | |
13fc90c9 ER |
87 | %if "%{_rpmversion}" >= "5" |
88 | BuildArch: noarch | |
89 | %endif | |
66c98b1b JB |
90 | |
91 | %description apidocs | |
92 | API documentation for libinput library. | |
93 | ||
94 | %description apidocs -l pl.UTF-8 | |
95 | Dokumentacja API biblioteki libinput. | |
b1a834ff AM |
96 | |
97 | %prep | |
98 | %setup -q | |
99 | ||
100 | %build | |
101 | %configure \ | |
1eece97e | 102 | --disable-silent-rules \ |
76cc7e64 | 103 | %{?with_static_libs:--enable-static} \ |
a370658f | 104 | --%{?with_doc:en}%{!?with_doc:dis}able-documentation \ |
76cc7e64 | 105 | --with-udev-dir=/lib/udev |
b1a834ff AM |
106 | |
107 | %{__make} | |
108 | ||
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %{__make} install \ | |
113 | DESTDIR=$RPM_BUILD_ROOT | |
114 | ||
66c98b1b JB |
115 | # obsoleted by pkg-config |
116 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
117 | ||
b1a834ff AM |
118 | %clean |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
66c98b1b JB |
121 | %post -p /sbin/ldconfig |
122 | %postun -p /sbin/ldconfig | |
b1a834ff AM |
123 | |
124 | %files | |
125 | %defattr(644,root,root,755) | |
bb392f52 | 126 | %doc COPYING README.txt |
cf0d28df | 127 | %attr(755,root,root) %{_bindir}/libinput-debug-events |
1573a790 | 128 | %attr(755,root,root) %{_bindir}/libinput-list-devices |
66c98b1b | 129 | %attr(755,root,root) %{_libdir}/libinput.so.*.*.* |
3bf5286f | 130 | %attr(755,root,root) %ghost %{_libdir}/libinput.so.10 |
76cc7e64 | 131 | %attr(755,root,root) /lib/udev/libinput-device-group |
33de6229 | 132 | %attr(755,root,root) /lib/udev/libinput-model-quirks |
76cc7e64 | 133 | /lib/udev/rules.d/80-libinput-device-groups.rules |
cf0d28df AM |
134 | /lib/udev/hwdb.d/90-libinput-model-quirks.hwdb |
135 | /lib/udev/rules.d/90-libinput-model-quirks.rules | |
136 | %{_mandir}/man1/libinput-debug-events.1* | |
1573a790 | 137 | %{_mandir}/man1/libinput-list-devices.1* |
b1a834ff AM |
138 | |
139 | %files devel | |
140 | %defattr(644,root,root,755) | |
b1a834ff | 141 | %attr(755,root,root) %{_libdir}/libinput.so |
66c98b1b | 142 | %{_includedir}/libinput.h |
b1a834ff | 143 | %{_pkgconfigdir}/libinput.pc |
66c98b1b | 144 | |
1eece97e | 145 | %if %{with static_libs} |
66c98b1b JB |
146 | %files static |
147 | %defattr(644,root,root,755) | |
148 | %{_libdir}/libinput.a | |
1eece97e | 149 | %endif |
66c98b1b JB |
150 | |
151 | %files apidocs | |
152 | %defattr(644,root,root,755) | |
153 | %doc doc/html/* |