]> git.pld-linux.org Git - packages/libinput.git/blame - libinput.spec
up to 1.16.1
[packages/libinput.git] / libinput.spec
CommitLineData
578a3803
JP
1# TODO:
2# - package user docs from build/Documentation
11e9e5bb
JB
3#
4# Conditional build:
ef04d99c 5%bcond_without gui # libinput-debug-gui
f6d0d702 6%bcond_without libunwind # libunwind debugging support
a370658f 7%bcond_without doc # documentation
d254b872 8%bcond_without tests # tests
13fc90c9 9
f6d0d702
JB
10%ifnarch %{ix86} %{x8664} %{arm} hppa ia64 mips ppc ppc64 sh
11%undefine with_libunwind
12%endif
b1a834ff 13Summary: Input device library
66c98b1b 14Summary(pl.UTF-8): Biblioteka urządzeń wejściowych
b1a834ff 15Name: libinput
89aecae5 16Version: 1.16.1
7001c1ee 17Release: 1
b1a834ff 18License: MIT
66c98b1b 19Group: Libraries
c29a2c14 20Source0: https://www.freedesktop.org/software/libinput/%{name}-%{version}.tar.xz
89aecae5 21# Source0-md5: 51454993fcc576f4480aba8c1c3232ac
c29a2c14 22URL: https://www.freedesktop.org/wiki/Software/libinput/
332a61be 23BuildRequires: check-devel >= 0.9.10
6258de66
JB
24BuildRequires: libevdev-devel >= 1.3
25%{?with_libunwind:BuildRequires: libunwind-devel}
26BuildRequires: libwacom-devel >= 0.20
27BuildRequires: meson >= 0.41.0
28BuildRequires: mtdev-devel >= 1.1.0
29BuildRequires: ninja >= 1.5
30BuildRequires: pkgconfig
31BuildRequires: rpmbuild(macros) >= 1.728
32BuildRequires: udev-devel
33BuildRequires: valgrind
a370658f
MK
34%if %{with gui}
35BuildRequires: cairo-devel
36BuildRequires: glib2-devel >= 2.0
407ae804 37BuildRequires: gtk+3-devel >= 3.20
a370658f 38%endif
aed38082 39%if %{with doc}
407ae804 40BuildRequires: doxygen >= 1.8.3
bb392f52 41BuildRequires: graphviz >= 2.26.0
578a3803
JP
42BuildRequires: python3-recommonmark
43BuildRequires: python3-sphinx_rtd_theme
44BuildRequires: sphinx-pdg-3
a370658f 45%endif
ef04d99c 46Requires: libevdev >= 1.3
725df436
JB
47Requires: libwacom >= 0.20
48Requires: mtdev >= 1.1.0
66c98b1b 49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
b1a834ff
AM
50
51%description
52libinput is a library that handles input devices for display servers
53and other applications that need to directly deal with input devices.
54
55It provides device detection, device handling, input device event
56processing and abstraction so minimize the amount of custom input code
57the user of libinput need to provide the common set of functionality
58that users expect.
59
66c98b1b
JB
60%description -l pl.UTF-8
61libinput to biblioteka obsługująca urządzenia wejściowe dla serwerów
62grafiki i innych aplikacji wymagających bezpośredniej obsługi urządzeń
63wejściowych.
64
65Biblioteka zapewnia wykrywanie urządzeń, obsługę urządzeń,
66przetwarzanie zdarzeń urządzeń wejściowych oraz abstrakcję,
67minimalizując ilość własnego kodu, który musi napisać użytkownik
68biblioteki, aby zapewnić oczekiwaną funkcjonalność.
69
ef04d99c
JB
70%package gui
71Summary: Debugging GUI for libinput
72Summary(pl.UTF-8): Graficzny interfejs diagnostyczny do libinput
73Group: X11/Applications
74Requires: %{name} = %{version}-%{release}
407ae804 75Requires: gtk+3 >= 3.20
ef04d99c
JB
76
77%description gui
78Debugging GUI for libinput.
79
80%description gui -l pl.UTF-8
81Graficzny interfejs diagnostyczny do libinput.
82
66c98b1b
JB
83%package devel
84Summary: Development files for libinput
85Summary(pl.UTF-8): Pliki programistyczne biblioteki libinput
86Group: Development/Libraries
b1a834ff 87Requires: %{name} = %{version}-%{release}
66c98b1b
JB
88Requires: udev-devel
89
90%description devel
91This package contains the header files for developing applications
92that use libinput.
93
94%description devel -l pl.UTF-8
95Ten pakiet zawiera pliki nagłówkowe niezbędne do tworzenia aplikacji
96wykorzystujących bibliotekę libinput.
97
98%package static
99Summary: Static libinput library
100Summary(pl.UTF-8): Statyczna biblioteka libinput
101Group: Development/Libraries
102Requires: %{name}-devel = %{version}-%{release}
103
104%description static
105Static libinput library.
b1a834ff 106
66c98b1b
JB
107%description static -l pl.UTF-8
108Statyczna biblioteka libinput.
109
110%package apidocs
111Summary: API documentation for libinput library
112Summary(pl.UTF-8): Dokumentacja API biblioteki libinput
113Group: Documentation
13fc90c9
ER
114%if "%{_rpmversion}" >= "5"
115BuildArch: noarch
116%endif
66c98b1b
JB
117
118%description apidocs
119API documentation for libinput library.
120
121%description apidocs -l pl.UTF-8
122Dokumentacja API biblioteki libinput.
b1a834ff 123
45341a09
JP
124%package -n zsh-completion-%{name}
125Summary: Zsh completion for libinput command
126Summary(pl.UTF-8): Dopełnianie parametrów w zsh dla polecenia libinput
127Group: Applications/Shells
128Requires: %{name} = %{epoch}:%{version}-%{release}
129Requires: zsh
130
131%description -n zsh-completion-%{name}
132Zsh completion for libinput command.
133
134%description -n zsh-completion-%{name} -l pl.UTF-8
135Dopełnianie parametrów w zsh dla polecenia libinput.
136
b1a834ff
AM
137%prep
138%setup -q
139
6258de66
JB
140%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' \
141 tools/libinput-measure-{fuzz,touchpad-pressure,touch-size,touchpad-tap}.py \
f15e23dc 142 tools/libinput-{replay,analyze-per-slot-delta.py,measure-touchpad-size.py}
bc749beb 143
b1a834ff 144%build
11306b0c 145%meson build \
2de91326
AM
146 -Ddebug-gui=%{__true_false gui} \
147 -Ddocumentation=%{__true_false doc} \
45341a09
JP
148 -Dudev-dir=/lib/udev \
149 -Dzshcompletiondir=%{zsh_compdir}
d254b872 150%meson_build -C build
b1a834ff 151
d254b872 152%{?with_tests:%meson_test -C build}
b1a834ff
AM
153
154%install
155rm -rf $RPM_BUILD_ROOT
156
d254b872 157%meson_install -C build
66c98b1b 158
a3a0a290
JB
159%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/libinput-test-suite.1
160
b1a834ff
AM
161%clean
162rm -rf $RPM_BUILD_ROOT
163
66c98b1b
JB
164%post -p /sbin/ldconfig
165%postun -p /sbin/ldconfig
b1a834ff
AM
166
167%files
168%defattr(644,root,root,755)
ef04d99c
JB
169%doc COPYING README.md
170%attr(755,root,root) %{_bindir}/libinput
66c98b1b 171%attr(755,root,root) %{_libdir}/libinput.so.*.*.*
3bf5286f 172%attr(755,root,root) %ghost %{_libdir}/libinput.so.10
ef04d99c 173%dir %{_libexecdir}/libinput
f15e23dc
JP
174%attr(755,root,root) %{_libexecdir}/libinput/libinput-analyze
175%attr(755,root,root) %{_libexecdir}/libinput/libinput-analyze-per-slot-delta
ef04d99c 176%attr(755,root,root) %{_libexecdir}/libinput/libinput-debug-events
7001c1ee 177%attr(755,root,root) %{_libexecdir}/libinput/libinput-debug-tablet
ef04d99c
JB
178%attr(755,root,root) %{_libexecdir}/libinput/libinput-list-devices
179%attr(755,root,root) %{_libexecdir}/libinput/libinput-measure
9a19d5af 180%attr(755,root,root) %{_libexecdir}/libinput/libinput-measure-fuzz
d254b872 181%attr(755,root,root) %{_libexecdir}/libinput/libinput-measure-touchpad-pressure
f15e23dc 182%attr(755,root,root) %{_libexecdir}/libinput/libinput-measure-touchpad-size
ef04d99c 183%attr(755,root,root) %{_libexecdir}/libinput/libinput-measure-touchpad-tap
d254b872 184%attr(755,root,root) %{_libexecdir}/libinput/libinput-measure-touch-size
578a3803 185%attr(755,root,root) %{_libexecdir}/libinput/libinput-quirks
9a19d5af
JP
186%attr(755,root,root) %{_libexecdir}/libinput/libinput-record
187%attr(755,root,root) %{_libexecdir}/libinput/libinput-replay
76cc7e64 188%attr(755,root,root) /lib/udev/libinput-device-group
7001c1ee
JP
189%attr(755,root,root) /lib/udev/libinput-fuzz-extract
190%attr(755,root,root) /lib/udev/libinput-fuzz-to-zero
76cc7e64 191/lib/udev/rules.d/80-libinput-device-groups.rules
ad4e8b69 192/lib/udev/rules.d/90-libinput-fuzz-override.rules
578a3803
JP
193%dir %{_datadir}/libinput
194%{_datadir}/libinput/*.quirks
ef04d99c 195%{_mandir}/man1/libinput.1*
f15e23dc
JP
196%{_mandir}/man1/libinput-analyze.1*
197%{_mandir}/man1/libinput-analyze-per-slot-delta.1*
cf0d28df 198%{_mandir}/man1/libinput-debug-events.1*
7001c1ee 199%{_mandir}/man1/libinput-debug-tablet.1*
1573a790 200%{_mandir}/man1/libinput-list-devices.1*
ef04d99c 201%{_mandir}/man1/libinput-measure.1*
9a19d5af 202%{_mandir}/man1/libinput-measure-fuzz.1*
d254b872 203%{_mandir}/man1/libinput-measure-touchpad-pressure.1*
f15e23dc 204%{_mandir}/man1/libinput-measure-touchpad-size.1*
ef04d99c 205%{_mandir}/man1/libinput-measure-touchpad-tap.1*
d254b872 206%{_mandir}/man1/libinput-measure-touch-size.1*
578a3803
JP
207%{_mandir}/man1/libinput-quirks.1*
208%{_mandir}/man1/libinput-quirks-list.1*
209%{_mandir}/man1/libinput-quirks-validate.1*
9a19d5af
JP
210%{_mandir}/man1/libinput-record.1*
211%{_mandir}/man1/libinput-replay.1*
ef04d99c
JB
212
213%if %{with gui}
214%files gui
215%defattr(644,root,root,755)
216%attr(755,root,root) %{_libexecdir}/libinput/libinput-debug-gui
217%{_mandir}/man1/libinput-debug-gui.1*
218%endif
b1a834ff
AM
219
220%files devel
221%defattr(644,root,root,755)
b1a834ff 222%attr(755,root,root) %{_libdir}/libinput.so
66c98b1b 223%{_includedir}/libinput.h
b1a834ff 224%{_pkgconfigdir}/libinput.pc
66c98b1b 225
aed38082 226%if %{with doc}
66c98b1b
JB
227%files apidocs
228%defattr(644,root,root,755)
578a3803 229%doc build/api/*
aed38082 230%endif
45341a09
JP
231
232%files -n zsh-completion-%{name}
233%defattr(644,root,root,755)
234%{zsh_compdir}/_libinput
This page took 0.114411 seconds and 4 git commands to generate.