]> git.pld-linux.org Git - packages/libevdev.git/blob - libevdev.spec
- up to 1.2
[packages/libevdev.git] / libevdev.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # do not build and package API docs
4 #
5 Summary:        Handler library for evdev events
6 Summary(pl.UTF-8):      Biblioteka obsługująca zdarzenia evdev
7 Name:           libevdev
8 Version:        1.2
9 Release:        1
10 License:        MIT
11 Group:          Libraries
12 Source0:        http://www.freedesktop.org/software/libevdev/%{name}-%{version}.tar.xz
13 # Source0-md5:  220b17e015876cc045bddd891ab4fdc3
14 URL:            http://www.freedesktop.org/wiki/Software/libevdev/
15 BuildRequires:  check-devel >= 0.9.9
16 %{?with_apidocs:BuildRequires:  doxygen}
17 BuildRequires:  pkgconfig
18 BuildRequires:  python >= 1:2.6
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
57
58 %description apidocs
59 API documentation for libevdev library.
60
61 %description apidocs -l pl.UTF-8
62 Dokumentacja API biblioteki libevdev.
63
64 %prep
65 %setup -q
66
67 %{__rm} -r doc/html
68
69 %build
70 %configure \
71         --disable-silent-rules
72
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 # obsoleted by pkg-config, no external dependencies
82 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libevdev.la
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post   -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
89
90 %files
91 %defattr(644,root,root,755)
92 %doc COPYING
93 %attr(755,root,root) %{_bindir}/touchpad-edge-detector
94 %attr(755,root,root) %{_libdir}/libevdev.so.*.*.*
95 %attr(755,root,root) %ghost %{_libdir}/libevdev.so.2
96
97 %files devel
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/libevdev.so
100 %{_includedir}/libevdev-1.0
101 %{_pkgconfigdir}/libevdev.pc
102 %{_mandir}/man3/libevdev.3*
103
104 %files static
105 %defattr(644,root,root,755)
106 %{_libdir}/libevdev.a
107
108 %if %{with apidocs}
109 %files apidocs
110 %defattr(644,root,root,755)
111 %doc doc/html/{*.css,*.html,*.js,*.png,search}
112 %endif
This page took 0.070808 seconds and 3 git commands to generate.