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