Browse code

Adding python modules

Change-Id: I2b4fc4d9ab1ac165998b12b743e4a7bc37bfb03e
Reviewed-on: http://photon-jenkins.eng.vmware.com/167
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: Sharath George
(cherry picked from commit bbd3f7ffdabb6ef98f7ea80516a06a7ed74a98c7)
Reviewed-on: http://photon-jenkins.eng.vmware.com/338
Reviewed-by: suezzelur <anishs@vmware.com>

dthaluru authored on 2015/11/22 01:52:20
Showing 4 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,39 @@
0
+Summary:        Interface for Python to call C code
1
+Name:           python-cffi
2
+Version:        1.3.0
3
+Release:        1%{?dist}
4
+Url:            https://pypi.python.org/pypi/cffi
5
+License:        MIT
6
+Group:          Development/Languages/Python
7
+Source0:        https://pypi.python.org/packages/source/c/cffi/cffi-1.3.0.tar.gz
8
+%define sha1 cffi=54a0b2dbbc2f5d99131aa337e217b636652641a9
9
+
10
+BuildRequires: python2
11
+BuildRequires: python2-libs
12
+BuildRequires: python2-devel
13
+BuildRequires: python-setuptools
14
+BuildRequires: libffi
15
+BuildRequires:  python-pycparser
16
+Requires:       python2
17
+Requires:       python2-libs
18
+Requires:       python-pycparser
19
+
20
+%description
21
+Foreign Function Interface for Python, providing a convenient and reliable way of calling existing C code from Python. The interface is based on LuaJIT’s FFI.
22
+
23
+%prep
24
+%setup -q -n cffi-%{version}
25
+
26
+%build
27
+python setup.py build
28
+
29
+%install
30
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
31
+
32
+%files
33
+%defattr(-,root,root)
34
+%{python_sitelib}/*
35
+
36
+%changelog
37
+* Wed Nov 18 2015 Divya Thaluru <dthaluru@vmware.com> 1.3.0-1
38
+- Initial packaging for Photon
0 39
new file mode 100644
... ...
@@ -0,0 +1,42 @@
0
+Summary:        Python cryptography library
1
+Name:           python-cryptography
2
+Version:        1.1
3
+Release:        1%{?dist}
4
+Url:            https://cryptography.io
5
+License:        ASL 2.0
6
+Group:          Development/Languages/Python
7
+Source0:        https://pypi.python.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz
8
+%define sha1 cryptography=e04eb5febd7d127bc673504a18984daf4491e941
9
+
10
+BuildRequires: python2
11
+BuildRequires: python2-libs
12
+BuildRequires: python2-devel
13
+BuildRequires: python-setuptools
14
+Requires:      python-cffi
15
+BuildRequires: python-cffi
16
+BuildRequires: openssl-devel
17
+Requires:      openssl
18
+
19
+Requires:       python2
20
+Requires:       python2-libs
21
+
22
+%description
23
+Cryptography is a Python library which exposes cryptographic recipes and primitives.
24
+
25
+
26
+%prep
27
+%setup -q -n cryptography-%{version}
28
+
29
+%build
30
+python setup.py build
31
+
32
+%install
33
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
34
+
35
+%files
36
+%defattr(-,root,root)
37
+%{python_sitelib}/*
38
+
39
+%changelog
40
+* Wed Nov 18 2015 Divya Thaluru <dthaluru@vmware.com> 1.1-1
41
+- Initial packaging for Photon
0 42
new file mode 100644
... ...
@@ -0,0 +1,39 @@
0
+Summary:        Python C parser
1
+Name:           python-pycparser
2
+Version:        2.14
3
+Release:        1%{?dist}
4
+Url:            https://pypi.python.org/pypi/pycparser
5
+License:        BSD
6
+Group:          Development/Languages/Python
7
+Source0:        https://pypi.python.org/packages/source/p/pycparser/pycparser-2.14.tar.gz
8
+%define sha1 pycparser=922162bad4aa8503988035506c1c65bbf8690ba4
9
+
10
+BuildRequires: python2
11
+BuildRequires: python2-libs
12
+BuildRequires: python2-devel
13
+BuildRequires: python-setuptools
14
+
15
+Requires:       python2
16
+Requires:       python2-libs
17
+
18
+
19
+%description
20
+pycparser is a complete parser of the C language, written in pure Python using the PLY parsing library. It parses C code into an AST and can serve as a front-end for C compilers or analysis tools. 
21
+
22
+%prep
23
+%setup -q -n pycparser-%{version}
24
+
25
+%build
26
+python setup.py build
27
+
28
+%install
29
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
30
+
31
+%files
32
+%defattr(-,root,root)
33
+%{python_sitelib}/*
34
+
35
+
36
+%changelog
37
+* Wed Nov 18 2015 Divya Thaluru <dthaluru@vmware.com> 2.14-1
38
+- Initial packaging for Photon
... ...
@@ -28,7 +28,7 @@
28 28
                 "libtirpc", "libtirpc-devel", "lsof", "nfs-utils", "cve-check-tool", "flannel", "rpm-build", "dkms", "openssl-perl", "xinetd", "tftp", "tftp-server",
29 29
                 "audit","audit-devel","libcap-ng","libcap-ng-devel","tcp_wrappers","tcp_wrappers-devel", "apr-util-devel", "apr-util-ldap", 
30 30
                 "apr-util-pgsql", "apr-util-sqlite","openjre", "sshpass", "openjdk-src", "openjdk-sample", "openjdk-doc", "e2fsprogs-devel", "haproxy","libcap-devel",
31
-		"cython","python-lxml"]
31
+		"cython","python-lxml","python-pycparser","python-cffi","python-cryptography"]
32 32
 }
33 33
 
34 34