]> git.pld-linux.org Git - packages/libinput.git/blame - libinput.spec
- updated to 1.7.2
[packages/libinput.git] / libinput.spec
CommitLineData
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 7Summary: Input device library
66c98b1b 8Summary(pl.UTF-8): Biblioteka urządzeń wejściowych
b1a834ff 9Name: libinput
5ff6832c 10Version: 1.7.2
950cf045 11Release: 1
b1a834ff 12License: MIT
66c98b1b 13Group: Libraries
c29a2c14 14Source0: https://www.freedesktop.org/software/libinput/%{name}-%{version}.tar.xz
5ff6832c 15# Source0-md5: d138d62c528fbf9aba300a97bae453cb
c29a2c14 16URL: https://www.freedesktop.org/wiki/Software/libinput/
332a61be 17BuildRequires: check-devel >= 0.9.10
a370658f
MK
18%if %{with gui}
19BuildRequires: cairo-devel
20BuildRequires: glib2-devel >= 2.0
21BuildRequires: gtk+3-devel >= 3.0
22%endif
23%if %{with apidocs}
bb392f52 24BuildRequires: doxygen >= 1.6.0
bb392f52 25BuildRequires: graphviz >= 2.26.0
a370658f 26%endif
66c98b1b 27BuildRequires: libevdev-devel >= 0.4
725df436 28BuildRequires: libwacom-devel >= 0.20
66c98b1b
JB
29BuildRequires: mtdev-devel >= 1.1.0
30BuildRequires: pkgconfig
b1a834ff 31BuildRequires: udev-devel
725df436
JB
32Requires: libevdev >= 0.4
33Requires: libwacom >= 0.20
34Requires: mtdev >= 1.1.0
66c98b1b 35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
b1a834ff
AM
36
37%description
38libinput is a library that handles input devices for display servers
39and other applications that need to directly deal with input devices.
40
41It provides device detection, device handling, input device event
42processing and abstraction so minimize the amount of custom input code
43the user of libinput need to provide the common set of functionality
44that users expect.
45
66c98b1b
JB
46%description -l pl.UTF-8
47libinput to biblioteka obsługująca urządzenia wejściowe dla serwerów
48grafiki i innych aplikacji wymagających bezpośredniej obsługi urządzeń
49wejściowych.
50
51Biblioteka zapewnia wykrywanie urządzeń, obsługę urządzeń,
52przetwarzanie zdarzeń urządzeń wejściowych oraz abstrakcję,
53minimalizując ilość własnego kodu, który musi napisać użytkownik
54biblioteki, aby zapewnić oczekiwaną funkcjonalność.
55
56%package devel
57Summary: Development files for libinput
58Summary(pl.UTF-8): Pliki programistyczne biblioteki libinput
59Group: Development/Libraries
b1a834ff 60Requires: %{name} = %{version}-%{release}
66c98b1b
JB
61Requires: udev-devel
62
63%description devel
64This package contains the header files for developing applications
65that use libinput.
66
67%description devel -l pl.UTF-8
68Ten pakiet zawiera pliki nagłówkowe niezbędne do tworzenia aplikacji
69wykorzystujących bibliotekę libinput.
70
71%package static
72Summary: Static libinput library
73Summary(pl.UTF-8): Statyczna biblioteka libinput
74Group: Development/Libraries
75Requires: %{name}-devel = %{version}-%{release}
76
77%description static
78Static libinput library.
b1a834ff 79
66c98b1b
JB
80%description static -l pl.UTF-8
81Statyczna biblioteka libinput.
82
83%package apidocs
84Summary: API documentation for libinput library
85Summary(pl.UTF-8): Dokumentacja API biblioteki libinput
86Group: Documentation
13fc90c9
ER
87%if "%{_rpmversion}" >= "5"
88BuildArch: noarch
89%endif
66c98b1b
JB
90
91%description apidocs
92API documentation for libinput library.
93
94%description apidocs -l pl.UTF-8
95Dokumentacja 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
110rm -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
119rm -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/*
This page took 0.073861 seconds and 4 git commands to generate.