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