3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
7 Summary: Python 2.x bindings to augeas
8 Summary(pl.UTF-8): Wiązania Pythona 2.x do augeasa
13 Group: Libraries/Python
14 Source0: https://fedorahosted.org/released/python-augeas/%{name}-%{version}.tar.gz
15 # Source0-md5: 2d5a903467410b8d60abca5fa54bae2d
16 URL: http://augeas.net/
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.710
20 BuildRequires: python-devel
23 BuildRequires: python3-devel
27 Requires: python-modules
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Pure Python bindings to augeas, built for Python 2.x.
34 %description -l pl.UTF-8
35 Czysto pythonowe wiązania do augeasa, zbudowane dla Pythona 2.x.
37 %package -n python3-%{module}
38 Summary: Python 3.x bindings to augeas
39 Summary(pl.UTF-8): Wiązania Pythona 3.x do augeasa
40 Group: Libraries/Python
42 %description -n python3-%{module}
43 Pure Python bindings to augeas, built for Python 3.x.
45 %description -n python3-%{module} -l pl.UTF-8
46 Czysto pythonowe wiązania do augeasa, zbudowane dla Pythona 3.x.
61 rm -rf $RPM_BUILD_ROOT
73 rm -rf $RPM_BUILD_ROOT
77 %defattr(644,root,root,755)
78 %doc AUTHORS README.txt
79 %{py_sitescriptdir}/augeas.py[co]
80 %{py_sitescriptdir}/python_augeas-%{version}-py*.egg-info
84 %files -n python3-%{module}
85 %defattr(644,root,root,755)
86 %doc AUTHORS README.txt
87 %{py3_sitescriptdir}/augeas.py
88 %{py3_sitescriptdir}/__pycache__/augeas.cpython-*.py[co]
89 %{py3_sitescriptdir}/python_augeas-%{version}-py*.egg-info