Browse code

Added support for python-backports_abc

Change-Id: I046fb240687c3df3b2d21ccf23a37368a74eb34b
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4400
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Priyesh Padmavilasom <ppadmavilasom@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>

pthirumalachar authored on 2017/11/29 18:29:29
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,42 @@
0
+%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
1
+
2
+Name:           python-backports_abc
3
+Version:        0.5
4
+Release:        1%{?dist}
5
+Summary:        A backport of recent additions to the 'collections.abc' module.
6
+License:        PSFL
7
+Group:          Development/Languages/Python
8
+Url:            https://github.com/cython/backports_abc
9
+Source0:        https://pypi.python.org/packages/68/3c/1317a9113c377d1e33711ca8de1e80afbaf4a3c950dd0edfaf61f9bfe6d8/backports_abc-0.5.tar.gz
10
+%define sha1 backports_abc=91c000d7f18066f428b015caf5308ca34d492f77
11
+
12
+Vendor:         VMware, Inc.
13
+Distribution:   Photon
14
+
15
+BuildRequires:  python2
16
+BuildRequires:  python2-libs
17
+BuildRequires:  python-setuptools
18
+Requires:       python2
19
+Requires:       python2-libs
20
+
21
+BuildArch:      noarch
22
+
23
+%description
24
+
25
+
26
+%prep
27
+%setup -n backports_abc-%{version}
28
+
29
+%build
30
+python2 setup.py build
31
+
32
+%install
33
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
34
+
35
+%files
36
+%defattr(-,root,root,-)
37
+%{python2_sitelib}/*
38
+
39
+%changelog
40
+*   Wed Nov 29 2017 Padmini Thirumalachar <pthirumalachar@vmware.com> 0.5-1
41
+-   Initial version of python backports_abc for PhotonOS.