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