Browse code

Addded python-jinja2 package

Change-Id: Ib20cdd5550997c50d89c2881cd3be6e01a813a0a
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1865
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>

DheerajSShetty authored on 2016/12/15 05:03:34
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,47 @@
0
+Name:           python-jinja2
1
+Version:        2.8
2
+Release:        1%{?dist}
3
+Url:            http://jinja.pocoo.org/
4
+Summary:        A fast and easy to use template engine written in pure Python
5
+License:        BSD
6
+Group:          Development/Languages/Python
7
+Vendor:         VMware, Inc.
8
+Distribution:   Photon
9
+Source0:        http://pypi.python.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz
10
+%define sha1 Jinja2=4a33c1a0fd585eba2507e8c274a9cd113b1d13ab
11
+BuildRequires:  python2
12
+BuildRequires:  python2-libs
13
+BuildRequires:  python-setuptools
14
+
15
+Requires:       python2
16
+Requires:       python2-libs
17
+
18
+%description
19
+Jinja2 is a template engine written in pure Python.  It provides a Django
20
+inspired non-XML syntax but supports inline expressions and an optional
21
+sandboxed environment.
22
+
23
+%prep
24
+%setup -q -n Jinja2-%{version}
25
+
26
+%build
27
+python setup.py build
28
+sed -i 's/\r$//' LICENSE # Fix wrong EOL encoding
29
+
30
+%install
31
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
32
+
33
+%check
34
+make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
35
+
36
+%files
37
+%defattr(-,root,root)
38
+%doc AUTHORS CHANGES
39
+%license LICENSE
40
+%{python_sitelib}/jinja2
41
+%exclude %{python_sitelib}/*/*.py
42
+%{python_sitelib}/Jinja2-%{version}-py%{python_version}.egg-info
43
+
44
+%changelog
45
+*   Tue Dec 13 2016 Dheeraj Shetty <dheerajs@vmware.com> 2.8-1
46
+-   Initial packaging for Photon