]>
Commit | Line | Data |
---|---|---|
ae993a25 JB |
1 | Summary: Linux kernel evdev device emulation |
2 | Summary(pl.UTF-8): Emulacja linuksowych urządzeń evdev | |
3 | Name: evemu | |
5d99ba0d | 4 | Version: 2.3.1 |
c57374e8 | 5 | Release: 1 |
ae993a25 JB |
6 | License: LGPL v3 |
7 | Group: Libraries | |
e16e1ec4 | 8 | Source0: http://www.freedesktop.org/software/evemu/%{name}-%{version}.tar.xz |
5d99ba0d | 9 | # Source0-md5: 5d8df41c6af589f7610dab22b08966aa |
19b24545 | 10 | URL: http://www.freedesktop.org/wiki/Evemu/ |
ae993a25 | 11 | BuildRequires: asciidoc |
19b24545 JB |
12 | BuildRequires: autoconf >= 2.60 |
13 | BuildRequires: automake >= 1:1.11 | |
3d371a73 | 14 | BuildRequires: libevdev-devel >= 1.3 |
19b24545 | 15 | BuildRequires: libtool |
70375d64 | 16 | BuildRequires: pkgconfig |
ae993a25 JB |
17 | BuildRequires: python-devel >= 1:2.6 |
18 | BuildRequires: rpmbuild(macros) >= 1.219 | |
19 | BuildRequires: tar >= 1:1.22 | |
20 | BuildRequires: xmlto | |
21 | BuildRequires: xz | |
3d371a73 | 22 | Requires: libevdev >= 1.3 |
ae993a25 JB |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | The evemu library and tools are used to describe devices, record data, | |
27 | create devices and replay data from Linux kernel evdev devices. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Biblioteka i narzędzia evemu służą do opisywania urządzeń, zapisu | |
31 | danych, tworzenia urządzeń i odtwarzania danych z urządzeń evdev jądra | |
32 | Linuksa. | |
33 | ||
34 | %package devel | |
35 | Summary: Header files for evemu library | |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki evemu | |
37 | Group: Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
3d371a73 | 39 | Requires: libevdev-devel >= 1.3 |
ae993a25 JB |
40 | |
41 | %description devel | |
42 | Header files for evemu library. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Pliki nagłówkowe biblioteki evemu. | |
46 | ||
47 | %package static | |
48 | Summary: Static evemu library | |
49 | Summary(pl.UTF-8): Statyczna biblioteka evemu | |
50 | Group: Development/Libraries | |
51 | Requires: %{name}-devel = %{version}-%{release} | |
52 | ||
53 | %description static | |
54 | Static evemu library. | |
55 | ||
56 | %description static -l pl.UTF-8 | |
57 | Statyczna biblioteka evemu. | |
58 | ||
59 | %package -n python-evemu | |
60 | Summary: Python interface to evemu library | |
61 | Summary(pl.UTF-8): Pythonowy interfejs do biblioteki evemu | |
62 | Group: Development/Languages/Python | |
63 | Requires: %{name} = %{version}-%{release} | |
64 | ||
65 | %description -n python-evemu | |
66 | Python interface to evemu library. | |
67 | ||
68 | %description -n python-evemu -l pl.UTF-8 | |
69 | Pythonowy interfejs do biblioteki evemu. | |
70 | ||
71 | %prep | |
72 | %setup -q | |
73 | ||
74 | %build | |
19b24545 JB |
75 | %{__libtoolize} |
76 | %{__aclocal} | |
77 | %{__autoconf} | |
78 | %{__autoheader} | |
79 | %{__automake} | |
ae993a25 JB |
80 | %configure \ |
81 | --disable-silent-rules | |
82 | %{__make} | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %{__make} install \ | |
88 | DESTDIR=$RPM_BUILD_ROOT | |
89 | ||
90 | # obsoleted by pkg-config | |
91 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
92 | ||
93 | %py_postclean | |
94 | ||
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %post -p /sbin/ldconfig | |
99 | %postun -p /sbin/ldconfig | |
100 | ||
101 | %files | |
102 | %defattr(644,root,root,755) | |
ae993a25 JB |
103 | %attr(755,root,root) %{_bindir}/evemu-* |
104 | %attr(755,root,root) %{_libdir}/libevemu.so.*.*.* | |
70375d64 | 105 | %attr(755,root,root) %ghost %{_libdir}/libevemu.so.3 |
ae993a25 JB |
106 | %{_mandir}/man1/evemu-*.1* |
107 | ||
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
110 | %attr(755,root,root) %{_libdir}/libevemu.so | |
111 | %{_includedir}/evemu.h | |
112 | %{_pkgconfigdir}/evemu.pc | |
113 | ||
114 | %files static | |
115 | %defattr(644,root,root,755) | |
116 | %{_libdir}/libevemu.a | |
117 | ||
118 | %files -n python-evemu | |
119 | %defattr(644,root,root,755) | |
120 | %dir %{py_sitescriptdir}/evemu | |
121 | %{py_sitescriptdir}/evemu/*.py[co] |