Browse code

Adding python-lxml and cython packages

Change-Id: I5da821685e9d6b40bd7267022231ce299317a69a
Reviewed-on: http://photon-jenkins.eng.vmware.com/81
Reviewed-by: Sharath George
Tested-by: jenkins-photon <wangnan2015@hotmail.com>

dthaluru authored on 2015/10/29 09:38:08
Showing 3 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,44 @@
0
+Summary:        C extensions for Python
1
+Name:           cython
2
+Version:        0.23.4
3
+Release:        1%{?dist}
4
+Group:          Development/Libraries
5
+License:        Apache License
6
+URL:            http://cython.org/
7
+Source0:        http://cython.org/release/Cython-%{version}.tar.gz
8
+%define sha1 Cython=fc574c5050cd5a8e34435432e2a4a693353ed807
9
+Vendor:		VMware, Inc.
10
+Distribution:	Photon
11
+BuildRequires:	python2-devel
12
+BuildRequires:	python2-libs
13
+Requires:	python2
14
+
15
+%description
16
+Cython is an optimising static compiler for both the Python programming language and the extended Cython programming language (based on Pyrex). It makes writing C extensions for Python as easy as Python itself.
17
+
18
+%prep
19
+%setup -q -n Cython-%{version}
20
+
21
+
22
+%build
23
+%{__python} setup.py build
24
+
25
+%install
26
+%{__python} setup.py install --skip-build --root %{buildroot}
27
+
28
+%clean
29
+rm -rf %{buildroot}
30
+
31
+
32
+%files
33
+%defattr(-,root,root,-)
34
+%{_bindir}/*
35
+%{python_sitearch}/Cython-0.23.4-py2.7.egg-info
36
+%{python_sitearch}/Cython/*
37
+%{python_sitearch}/cython.py*
38
+%{python_sitearch}/pyximport/*
39
+
40
+
41
+%changelog
42
+* 	Wed Oct 28 2015 Divya Thaluru <dthaluru@vmware.com> 0.23.4-1
43
+- 	Initial build.
0 44
new file mode 100644
... ...
@@ -0,0 +1,44 @@
0
+Summary:        XML and HTML with Python
1
+Name:           python-lxml
2
+Version:        3.5.0b1
3
+Release:        1%{?dist}
4
+Group:          Development/Libraries
5
+License:        BSD
6
+URL:            http://lxml.de
7
+Source0:        https://github.com/lxml/lxml/archive/lxml-%{version}.tar.gz
8
+%define sha1 lxml=59763f575c589069b4477b737129a0430df68252
9
+Vendor:		VMware, Inc.
10
+Distribution:	Photon
11
+BuildRequires:	python2-devel
12
+BuildRequires:	python2-libs
13
+BuildRequires:	libxslt
14
+BuildRequires:	cython
15
+Requires:	python2
16
+Requires:	libxslt
17
+
18
+%description
19
+The lxml XML toolkit is a Pythonic binding for the C libraries libxml2 and libxslt. It is unique in that it combines the speed and XML feature completeness of these libraries with the simplicity of a native Python API, mostly compatible but superior to the well-known ElementTree API. 
20
+
21
+%prep
22
+%setup -q -n lxml-lxml-%{version}
23
+
24
+
25
+%build
26
+%{__python} setup.py build
27
+
28
+%install
29
+%{__python} setup.py install --skip-build --root %{buildroot}
30
+
31
+%clean
32
+rm -rf %{buildroot}
33
+
34
+
35
+%files
36
+%defattr(-,root,root,-)
37
+%{python_sitearch}/lxml/*
38
+%{python_sitearch}/lxml-3.5.0b1-py2.7.egg-info
39
+
40
+
41
+%changelog
42
+* 	Wed Oct 28 2015 Divya Thaluru <dthaluru@vmware.com> 3.5.0b1-1
43
+- 	Initial build.
... ...
@@ -27,7 +27,8 @@
27 27
                 "nss-altfiles", "apache-maven", "subversion", "mesos", "python3", "python3-libs", "python3-devel", "python3-tools", "fakeroot-ng", "ctags",
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
-                "apr-util-pgsql", "apr-util-sqlite","openjre", "sshpass", "openjdk-src", "openjdk-sample", "openjdk-doc", "e2fsprogs-devel", "haproxy","libcap-devel"]
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 32
 }
32 33
 
33 34