diff --git a/python-Jinja2.spec b/python-Jinja2.spec index 173315f..c6fe68b 100644 --- a/python-Jinja2.spec +++ b/python-Jinja2.spec @@ -1,6 +1,6 @@ Name: python-Jinja2 Version: 2.7.3 -Release: 1mamba +Release: 2mamba Summary: A small but fast and easy to use stand-alone template engine written in pure python. Group: System/Libraries/Python Vendor: openmamba @@ -18,15 +18,35 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment. +%if "%?with_pyver" +%define pyver %{with_pyver} +%define __python %(rpm --eval %{__python%{with_pyver}}) +%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch}) +%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib}) +%define python_inc %(rpm --eval %{python%{with_pyver}_inc}) +%define python_version %(rpm --eval %{python%{with_pyver}_version}) +%define python_provides %(rpm --eval %{python%{with_pyver}_provides}) +%define python_requires %(rpm --eval %{python%{with_pyver}_requires}) +%define py_requires %(rpm --eval %{py%{with_pyver}_requires}) + +%package py%{pyver} +Group: System/Libraries/Python +Summary: %{summary} +%py_requires + +%description py%{pyver} +Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment. +%endif + %prep %setup -q -n Jinja2-%{version} %build -CFLAGS="%{optflags}" python setup.py build +CFLAGS="%{optflags}" %{__python} setup.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -python setup.py install \ +%{__python} setup.py install \ --root="%{buildroot}" \ --install-headers=%{_includedir}/python \ --install-lib=%{python_sitearch} @@ -34,12 +54,19 @@ python setup.py install \ %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%if "%?with_pyver" +%files py%{pyver} +%else %files +%endif %defattr(-,root,root) %{python_sitearch}/jinja2/* %{python_sitearch}/Jinja2-%{version}-py*.egg-info/* %changelog +* Sat May 16 2015 Silvan Calarco 2.7.3-2mamba +- python3 subpackage + * Mon Jul 07 2014 Automatic Build System 2.7.3-1mamba - automatic update by autodist