]> git.pld-linux.org Git - packages/python-augeas.git/blame - python-augeas.spec
- release 5 (by relup.sh)
[packages/python-augeas.git] / python-augeas.spec
CommitLineData
9228012c
ER
1#
2# Conditional build:
3%bcond_without python2 # CPython 2.x module
f2fdf383 4%bcond_without python3 # CPython 3.x module
9228012c
ER
5
6%define module augeas
6fd319da
JB
7Summary: Python 2.x bindings to augeas
8Summary(pl.UTF-8): Wiązania Pythona 2.x do augeasa
9228012c 9Name: python-%{module}
90f77985 10Version: 0.5.0
f2a0411e 11Release: 5
b2319e48 12License: LGPL v2.1+
9228012c
ER
13Group: Libraries/Python
14Source0: https://fedorahosted.org/released/python-augeas/%{name}-%{version}.tar.gz
90f77985 15# Source0-md5: 2d5a903467410b8d60abca5fa54bae2d
b2319e48 16URL: http://augeas.net/
b2319e48 17BuildRequires: rpm-pythonprov
029d296a 18BuildRequires: rpmbuild(macros) >= 1.710
9228012c
ER
19%if %{with python2}
20BuildRequires: python-devel
21%endif
22%if %{with python3}
23BuildRequires: python3-devel
24%endif
b2319e48
JB
25# library is dlopened
26Requires: augeas-libs
27Requires: python-modules
28BuildArch: noarch
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
6fd319da 32Pure Python bindings to augeas, built for Python 2.x.
b2319e48
JB
33
34%description -l pl.UTF-8
6fd319da 35Czysto pythonowe wiązania do augeasa, zbudowane dla Pythona 2.x.
b2319e48 36
9228012c 37%package -n python3-%{module}
6fd319da
JB
38Summary: Python 3.x bindings to augeas
39Summary(pl.UTF-8): Wiązania Pythona 3.x do augeasa
9228012c
ER
40Group: Libraries/Python
41
42%description -n python3-%{module}
6fd319da 43Pure Python bindings to augeas, built for Python 3.x.
9228012c
ER
44
45%description -n python3-%{module} -l pl.UTF-8
6fd319da 46Czysto pythonowe wiązania do augeasa, zbudowane dla Pythona 3.x.
9228012c 47
b2319e48 48%prep
9228012c 49%setup -q
b2319e48
JB
50
51%build
9228012c 52%if %{with python2}
7e67b24a 53%py_build
9228012c
ER
54%endif
55
56%if %{with python3}
7e67b24a 57%py3_build
9228012c 58%endif
b2319e48
JB
59
60%install
61rm -rf $RPM_BUILD_ROOT
9228012c 62%if %{with python2}
7e67b24a 63%py_install
b2319e48
JB
64
65%py_postclean
9228012c
ER
66%endif
67
68%if %{with python3}
7e67b24a 69%py3_install
9228012c 70%endif
b2319e48
JB
71
72%clean
73rm -rf $RPM_BUILD_ROOT
74
9228012c 75%if %{with python2}
b2319e48
JB
76%files
77%defattr(644,root,root,755)
78%doc AUTHORS README.txt
79%{py_sitescriptdir}/augeas.py[co]
b2319e48
JB
80%{py_sitescriptdir}/python_augeas-%{version}-py*.egg-info
81%endif
9228012c
ER
82
83%if %{with python3}
84%files -n python3-%{module}
85%defattr(644,root,root,755)
86%doc AUTHORS README.txt
87%{py3_sitescriptdir}/augeas.py
f2fdf383 88%{py3_sitescriptdir}/__pycache__/augeas.cpython-*.py[co]
9228012c
ER
89%{py3_sitescriptdir}/python_augeas-%{version}-py*.egg-info
90%endif
This page took 0.08691 seconds and 4 git commands to generate.