]> git.pld-linux.org Git - packages/tevent.git/blame - tevent.spec
- added O for dropped python package
[packages/tevent.git] / tevent.spec
CommitLineData
d79016b6
JB
1Summary: An event system library
2Summary(pl.UTF-8): Biblioteka systemu zdarzeń
3Name: tevent
89b22354 4Version: 0.10.1
06799e3f 5Release: 2
d79016b6
JB
6License: LGPL v3+
7Group: Libraries
fc0c01b9 8Source0: https://www.samba.org/ftp/tevent/%{name}-%{version}.tar.gz
89b22354 9# Source0-md5: 1060eb69d6994a847eecb73c4d391ced
d79016b6 10URL: http://tevent.samba.org/
429b086b
JB
11BuildRequires: python3-devel >= 1:3.2
12BuildRequires: python3-talloc-devel >= 2:2.1.16
d79016b6 13BuildRequires: rpm-pythonprov
429b086b
JB
14BuildRequires: rpmbuild(macros) >= 1.507
15BuildRequires: talloc-devel >= 2:2.1.16
06799e3f 16Obsoletes: python-tevent
d79016b6
JB
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20Tevent is an event system based on the talloc memory management
21library. It is the core event system used in Samba.
22
23The low level tevent has support for many event types, including
24timers, signals, and the classic file descriptor events.
25
26Tevent also provide helpers to deal with asynchronous code providing
27the tevent_req (tevent request) functions.
28
29%description -l pl.UTF-8
30Tevent to system zdarzeń oparty na bibliotece zarządzającej pamięcią
31talloc. Jest to główny system zdarzeń używany w Sambie.
32
33Niskopoziomowo tevent obsługuje wiele rodzajów zdarzeń, w tym
34zegary, sygnały i zdarzenia związane z klasycznymi deskryptorami
35plików.
36
37Tevent udostępnia także funkcje pomocnicze tevent_req (żądanie tevent)
38dla kodu asynchronicznego.
39
40%package devel
41Summary: Header files for tevent library
42Summary(pl.UTF-8): Pliki nagłówkowe biblioteki tevent
43Group: Development/Libraries
44Requires: %{name} = %{version}-%{release}
429b086b 45Requires: talloc-devel >= 2:2.1.16
d79016b6
JB
46
47%description devel
48Header files for tevent library.
49
50%description devel -l pl.UTF-8
51Pliki nagłówkowe biblioteki tevent.
52
429b086b
JB
53%package -n python3-tevent
54Summary: Python 3 bindings for tevent
55Summary(pl.UTF-8): Interfejs Pythona 3 do tevent
56Group: Libraries/Python
57Requires: %{name} = %{version}-%{release}
58Requires: python3-talloc >= 2:2.1.16
59
60%description -n python3-tevent
61Python 3 bindings for tevent.
62
63%description -n python3-tevent -l pl.UTF-8
64Interfejs Pythona 3 do tevent.
d79016b6
JB
65
66%prep
67%setup -q
68
69%build
429b086b
JB
70export JOBS=1
71
d79016b6
JB
72CC="%{__cc}" \
73CFLAGS="%{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
83rm -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
92rm -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]
This page took 0.099638 seconds and 4 git commands to generate.