]>
Commit | Line | Data |
---|---|---|
b1fcbbe1 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
b227e25f | 4 | |
b1fcbbe1 JB |
5 | Summary: Handler library for evdev events |
6 | Summary(pl.UTF-8): Biblioteka obsługująca zdarzenia evdev | |
7 | Name: libevdev | |
32ca6837 | 8 | Version: 1.10.1 |
e7d17357 | 9 | Release: 1 |
b1fcbbe1 JB |
10 | License: MIT |
11 | Group: Libraries | |
e7d17357 | 12 | Source0: https://www.freedesktop.org/software/libevdev/%{name}-%{version}.tar.xz |
32ca6837 | 13 | # Source0-md5: e2362e92060dfcd2f2f2b1c1fd4570b0 |
e7d17357 | 14 | URL: https://www.freedesktop.org/wiki/Software/libevdev/ |
b1fcbbe1 JB |
15 | BuildRequires: check-devel >= 0.9.9 |
16 | %{?with_apidocs:BuildRequires: doxygen} | |
17 | BuildRequires: pkgconfig | |
8b6047ee | 18 | BuildRequires: python >= 1:2.6 |
b1fcbbe1 JB |
19 | BuildRequires: tar >= 1:1.22 |
20 | BuildRequires: xz | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Handler library for evdev events. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Biblioteka obsługująca zdarzenia evdev. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for libevdev library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libevdev | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Header files for libevdev library. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe biblioteki libevdev. | |
40 | ||
41 | %package static | |
42 | Summary: Static libevdev library | |
43 | Summary(pl.UTF-8): Statyczna biblioteka libevdev | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static libevdev library. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczna biblioteka libevdev. | |
52 | ||
53 | %package apidocs | |
54 | Summary: libevdev API documentation | |
55 | Summary(pl.UTF-8): Dokumentacja API biblioteki libevdev | |
56 | Group: Documentation | |
9655026f | 57 | %if "%{_rpmversion}" >= "4.6" |
b227e25f ER |
58 | BuildArch: noarch |
59 | %endif | |
b1fcbbe1 JB |
60 | |
61 | %description apidocs | |
62 | API documentation for libevdev library. | |
63 | ||
64 | %description apidocs -l pl.UTF-8 | |
65 | Dokumentacja API biblioteki libevdev. | |
66 | ||
67 | %prep | |
68 | %setup -q | |
69 | ||
70 | %{__rm} -r doc/html | |
71 | ||
72 | %build | |
73 | %configure \ | |
74 | --disable-silent-rules | |
75 | ||
76 | %{__make} | |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %{__make} install \ | |
82 | DESTDIR=$RPM_BUILD_ROOT | |
83 | ||
84 | # obsoleted by pkg-config, no external dependencies | |
85 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libevdev.la | |
86 | ||
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %post -p /sbin/ldconfig | |
91 | %postun -p /sbin/ldconfig | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
95 | %doc COPYING | |
c27fcbd9 | 96 | %attr(755,root,root) %{_bindir}/libevdev-tweak-device |
b1221699 | 97 | %attr(755,root,root) %{_bindir}/mouse-dpi-tool |
4c2b7e86 | 98 | %attr(755,root,root) %{_bindir}/touchpad-edge-detector |
b1fcbbe1 | 99 | %attr(755,root,root) %{_libdir}/libevdev.so.*.*.* |
8b6047ee | 100 | %attr(755,root,root) %ghost %{_libdir}/libevdev.so.2 |
4c25303a JP |
101 | %{_mandir}/man1/libevdev-tweak-device.1* |
102 | %{_mandir}/man1/touchpad-edge-detector.1* | |
103 | ||
b1fcbbe1 JB |
104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
107 | %attr(755,root,root) %{_libdir}/libevdev.so | |
108 | %{_includedir}/libevdev-1.0 | |
109 | %{_pkgconfigdir}/libevdev.pc | |
8b6047ee | 110 | %{_mandir}/man3/libevdev.3* |
b1fcbbe1 JB |
111 | |
112 | %files static | |
113 | %defattr(644,root,root,755) | |
114 | %{_libdir}/libevdev.a | |
115 | ||
116 | %if %{with apidocs} | |
117 | %files apidocs | |
118 | %defattr(644,root,root,755) | |
119 | %doc doc/html/{*.css,*.html,*.js,*.png,search} | |
120 | %endif |