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