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