3 %bcond_without doc # Sphinx documentation
4 %bcond_without tests # unit tests
6 Summary: Low-level, pure Python DBus protocol wrapper
7 Summary(pl.UTF-8): Niskopoziomowe obudowanie protokołu DBus w czystym Pythonie
12 Group: Libraries/Python
13 #Source0Download: https://pypi.org/simple/jeepney/
14 Source0: https://files.pythonhosted.org/packages/source/j/jeepney/jeepney-%{version}.tar.gz
15 # Source0-md5: d804ad938b27d9b761f2c44f8d33fef6
16 URL: https://pypi.org/project/jeepney/
17 BuildRequires: python3-modules >= 1:3.6
18 BuildRequires: python3-setuptools
20 BuildRequires: python3-async_timeout
21 BuildRequires: python3-pytest
22 BuildRequires: python3-pytest-asyncio
23 BuildRequires: python3-pytest-trio
24 BuildRequires: python3-testpath
25 BuildRequires: python3-trio
27 BuildRequires: rpm-pythonprov
28 BuildRequires: rpmbuild(macros) >= 1.714
30 BuildRequires: sphinx-pdg-3
32 Requires: python3-modules >= 1:3.6
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 This is a low-level, pure Python DBus protocol client. It has an
38 I/O-free core, and integration modules for different event loops.
40 DBus is an inter-process communication system, mainly used in Linux.
42 %description -l pl.UTF-8
43 Jeepney to niskopoziomowy, napisany w czystym Pythonie klient
44 protokołu DBus. Wewnętrznie jest oparty na podejściu I/O-free, ma
45 moduły integrujące dla różnych pętli zdarzeń.
47 DBus to system komunikacji międzyprocesowej, używany głównie na
51 Summary: jeepney API documentation
52 Summary(pl.UTF-8): Dokumentacja API jeepney
56 API documentation for jeepney.
58 %description apidocs -l pl.UTF-8
59 Dokumentacja API jeepney.
62 %setup -q -n jeepney-%{version}
68 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
69 PYTEST_PLUGINS="pytest_asyncio.plugin,pytest_trio.plugin" \
70 %{__python3} -m pytest jeepney/tests jeepney/*/tests
74 %{__make} -C docs html \
75 SPHINXBUILD=sphinx-build-3
79 rm -rf $RPM_BUILD_ROOT
83 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/jeepney{,/io,/integrate}/tests
85 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
86 cp -a examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
89 rm -rf $RPM_BUILD_ROOT
92 %defattr(644,root,root,755)
93 %doc LICENSE README.rst
94 %{py3_sitescriptdir}/jeepney
95 %{py3_sitescriptdir}/jeepney-%{version}-py*.egg-info
96 %{_examplesdir}/%{name}-%{version}
100 %defattr(644,root,root,755)
101 %doc docs/_build/html/{_modules,_static,*.html,*.js}