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