]>
Commit | Line | Data |
---|---|---|
d79016b6 JB |
1 | Summary: An event system library |
2 | Summary(pl.UTF-8): Biblioteka systemu zdarzeń | |
3 | Name: tevent | |
89b22354 | 4 | Version: 0.10.1 |
06799e3f | 5 | Release: 2 |
d79016b6 JB |
6 | License: LGPL v3+ |
7 | Group: Libraries | |
fc0c01b9 | 8 | Source0: https://www.samba.org/ftp/tevent/%{name}-%{version}.tar.gz |
89b22354 | 9 | # Source0-md5: 1060eb69d6994a847eecb73c4d391ced |
d79016b6 | 10 | URL: http://tevent.samba.org/ |
429b086b JB |
11 | BuildRequires: python3-devel >= 1:3.2 |
12 | BuildRequires: python3-talloc-devel >= 2:2.1.16 | |
d79016b6 | 13 | BuildRequires: rpm-pythonprov |
429b086b JB |
14 | BuildRequires: rpmbuild(macros) >= 1.507 |
15 | BuildRequires: talloc-devel >= 2:2.1.16 | |
06799e3f | 16 | Obsoletes: python-tevent |
d79016b6 JB |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | Tevent is an event system based on the talloc memory management | |
21 | library. It is the core event system used in Samba. | |
22 | ||
23 | The low level tevent has support for many event types, including | |
24 | timers, signals, and the classic file descriptor events. | |
25 | ||
26 | Tevent also provide helpers to deal with asynchronous code providing | |
27 | the tevent_req (tevent request) functions. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Tevent to system zdarzeń oparty na bibliotece zarządzającej pamięcią | |
31 | talloc. Jest to główny system zdarzeń używany w Sambie. | |
32 | ||
33 | Niskopoziomowo tevent obsługuje wiele rodzajów zdarzeń, w tym | |
34 | zegary, sygnały i zdarzenia związane z klasycznymi deskryptorami | |
35 | plików. | |
36 | ||
37 | Tevent udostępnia także funkcje pomocnicze tevent_req (żądanie tevent) | |
38 | dla kodu asynchronicznego. | |
39 | ||
40 | %package devel | |
41 | Summary: Header files for tevent library | |
42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki tevent | |
43 | Group: Development/Libraries | |
44 | Requires: %{name} = %{version}-%{release} | |
429b086b | 45 | Requires: talloc-devel >= 2:2.1.16 |
d79016b6 JB |
46 | |
47 | %description devel | |
48 | Header files for tevent library. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe biblioteki tevent. | |
52 | ||
429b086b JB |
53 | %package -n python3-tevent |
54 | Summary: Python 3 bindings for tevent | |
55 | Summary(pl.UTF-8): Interfejs Pythona 3 do tevent | |
56 | Group: Libraries/Python | |
57 | Requires: %{name} = %{version}-%{release} | |
58 | Requires: python3-talloc >= 2:2.1.16 | |
59 | ||
60 | %description -n python3-tevent | |
61 | Python 3 bindings for tevent. | |
62 | ||
63 | %description -n python3-tevent -l pl.UTF-8 | |
64 | Interfejs Pythona 3 do tevent. | |
d79016b6 JB |
65 | |
66 | %prep | |
67 | %setup -q | |
68 | ||
69 | %build | |
429b086b JB |
70 | export JOBS=1 |
71 | ||
d79016b6 JB |
72 | CC="%{__cc}" \ |
73 | CFLAGS="%{rpmcflags}" \ | |
429b086b | 74 | %{__python3} buildtools/bin/waf configure \ |
d79016b6 | 75 | --prefix=%{_prefix} \ |
b23e518b | 76 | --libdir=%{_libdir} \ |
89b22354 | 77 | --disable-rpath |
d79016b6 JB |
78 | |
79 | %{__make} \ | |
80 | V=1 | |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %{__make} install \ | |
86 | DESTDIR=$RPM_BUILD_ROOT | |
87 | ||
429b086b JB |
88 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} |
89 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
70aba668 | 90 | |
d79016b6 JB |
91 | %clean |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
97 | %files | |
98 | %defattr(644,root,root,755) | |
99 | %attr(755,root,root) %{_libdir}/libtevent.so.*.*.* | |
100 | %attr(755,root,root) %ghost %{_libdir}/libtevent.so.0 | |
101 | ||
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
104 | %attr(755,root,root) %{_libdir}/libtevent.so | |
105 | %{_includedir}/tevent.h | |
106 | %{_pkgconfigdir}/tevent.pc | |
107 | ||
429b086b JB |
108 | %files -n python3-tevent |
109 | %defattr(644,root,root,755) | |
110 | %attr(755,root,root) %{py3_sitedir}/_tevent.cpython-*.so | |
111 | %{py3_sitedir}/tevent.py | |
112 | %{py3_sitedir}/__pycache__/tevent.cpython-*.py[co] |