3 %bcond_without doc # Sphinx documentation
4 %bcond_without tests # unit tests
5 %bcond_without python2 # CPython 2.x module
6 %bcond_without python3 # CPython 3.x module
8 Summary: Python 2 module for development of flexible plugin systems in Python
9 Summary(pl.UTF-8): Moduł Pythona 2 do tworzenia elastycznych systemów wtyczek w Pythonie
10 Name: python-pluginbase
14 Group: Libraries/Python
15 #Source0Download: https://pypi.org/simple/pluginbase/
16 Source0: https://files.pythonhosted.org/packages/source/p/pluginbase/pluginbase-%{version}.tar.gz
17 # Source0-md5: f85d8c9cb4d30e90da157a22d11dc727
18 URL: https://pypi.org/project/pluginbase/
20 BuildRequires: python-modules >= 1:2.6
21 BuildRequires: python-setuptools
23 BuildRequires: python-pytest
27 BuildRequires: python3-modules >= 1:3.3
28 BuildRequires: python3-setuptools
30 BuildRequires: python3-pytest
33 BuildRequires: rpm-pythonprov
34 BuildRequires: rpmbuild(macros) >= 1.714
36 BuildRequires: sphinx-pdg
38 Requires: python-modules >= 1:2.6
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 PluginBase is a module for Python that enables the development of
44 flexible plugin systems in Python.
46 %description -l pl.UTF-8
47 PluginBase to moduł Pythona pozwalający na tworzenie elastycznych
48 systemów wtyczek w Pythonie.
50 %package -n python3-pluginbase
51 Summary: Python 3 module for development of flexible plugin systems in Python
52 Summary(pl.UTF-8): Moduł Pythona 3 do tworzenia elastycznych systemów wtyczek w Pythonie
53 Group: Libraries/Python
54 Requires: python3-modules >= 1:3.3
56 %description -n python3-pluginbase
57 PluginBase is a module for Python that enables the development of
58 flexible plugin systems in Python.
60 %description -n python3-pluginbase -l pl.UTF-8
61 PluginBase to moduł Pythona pozwalający na tworzenie elastycznych
62 systemów wtyczek w Pythonie.
65 Summary: API documentation for Python pluginbase module
66 Summary(pl.UTF-8): Dokumentacja API modułu Pythona pluginbase
70 API documentation for Python pluginbase module.
72 %description apidocs -l pl.UTF-8
73 Dokumentacja API modułu Pythona pluginbase.
76 %setup -q -n pluginbase-%{version}
96 %{__python3} -m pytest
102 %{__make} -C docs html
106 rm -rf $RPM_BUILD_ROOT
119 rm -rf $RPM_BUILD_ROOT
123 %defattr(644,root,root,755)
124 %doc LICENSE README.md
125 %{py_sitescriptdir}/pluginbase.py[co]
126 %{py_sitescriptdir}/pluginbase-%{version}-py*.egg-info
130 %files -n python3-pluginbase
131 %defattr(644,root,root,755)
132 %doc LICENSE README.md
133 %{py3_sitescriptdir}/pluginbase.py
134 %{py3_sitescriptdir}/__pycache__/pluginbase.cpython-*.py[co]
135 %{py3_sitescriptdir}/pluginbase-%{version}-py*.egg-info
140 %defattr(644,root,root,755)
141 %doc docs/_build/html/{_static,*.html,*.js}