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