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