python-Jinja2/python-Jinja2.spec

99 lines
3.3 KiB
RPMSpec
Raw Permalink Normal View History

Name: python-Jinja2
Version: 2.7.3
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
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://jinja.pocoo.org/
Source: http://pypi.python.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel
## AUTOBUILDREQ-END
Requires: python >= %python_version
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
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch}
%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 <silvan.calarco@mambasoft.it> 2.7.3-2mamba
- python3 subpackage
* Mon Jul 07 2014 Automatic Build System <autodist@mambasoft.it> 2.7.3-1mamba
- automatic update by autodist
* Sun Feb 23 2014 Automatic Build System <autodist@mambasoft.it> 2.7.2-1mamba
- automatic update by autodist
* Sun Aug 11 2013 Automatic Build System <autodist@mambasoft.it> 2.7.1-1mamba
- automatic update by autodist
* Sun Jun 09 2013 Automatic Build System <autodist@mambasoft.it> 2.7-1mamba
- automatic version update by autodist
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6-2mamba
- python 2.7 mass rebuild
* Sat Jul 30 2011 Automatic Build System <autodist@mambasoft.it> 2.6-1mamba
- automatic update by autodist
* Tue Nov 09 2010 Automatic Build System <autodist@mambasoft.it> 2.5.5-1mamba
- automatic update by autodist
* Fri Aug 20 2010 Automatic Build System <autodist@mambasoft.it> 2.5.2-1mamba
- automatic update by autodist
* Thu Jun 24 2010 Automatic Build System <autodist@mambasoft.it> 2.5-1mamba
- automatic update by autodist
* Sat Jan 02 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.1-1mamba
- package created by autospec