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