python3 subpackage [release 2.7.3-2mamba;Sat May 16 2015]

This commit is contained in:
Silvan Calarco 2024-01-06 10:40:21 +01:00
parent 82ac5ecd02
commit 5e0cdc94d8

View File

@ -1,6 +1,6 @@
Name: python-Jinja2 Name: python-Jinja2
Version: 2.7.3 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. Summary: A small but fast and easy to use stand-alone template engine written in pure python.
Group: System/Libraries/Python Group: System/Libraries/Python
Vendor: openmamba Vendor: openmamba
@ -18,15 +18,35 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %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. 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 %prep
%setup -q -n Jinja2-%{version} %setup -q -n Jinja2-%{version}
%build %build
CFLAGS="%{optflags}" python setup.py build CFLAGS="%{optflags}" %{__python} setup.py build
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
python setup.py install \ %{__python} setup.py install \
--root="%{buildroot}" \ --root="%{buildroot}" \
--install-headers=%{_includedir}/python \ --install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} --install-lib=%{python_sitearch}
@ -34,12 +54,19 @@ python setup.py install \
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%if "%?with_pyver"
%files py%{pyver}
%else
%files %files
%endif
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitearch}/jinja2/* %{python_sitearch}/jinja2/*
%{python_sitearch}/Jinja2-%{version}-py*.egg-info/* %{python_sitearch}/Jinja2-%{version}-py*.egg-info/*
%changelog %changelog
* Sat May 16 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.3-2mamba
- python3 subpackage
* Mon Jul 07 2014 Automatic Build System <autodist@mambasoft.it> 2.7.3-1mamba * Mon Jul 07 2014 Automatic Build System <autodist@mambasoft.it> 2.7.3-1mamba
- automatic update by autodist - automatic update by autodist