Browse code

Added package python-certifi

Change-Id: I4677ed3e4c2870d0b8c8ab7fb962c70bdd066399
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6602
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>

Tapas Kundu authored on 2019/01/29 01:46:41
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,69 @@
0
+%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
1
+%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
2
+
3
+Summary:        Python package for providing Mozilla's CA Bundle
4
+Name:           python-certifi
5
+Version:        2018.11.29
6
+Release:        1%{?dist}
7
+URL:            https://github.com/certifi
8
+License:        MPL-2.0
9
+Group:          Development/Languages/Python
10
+Vendor:         VMware, Inc.
11
+Distribution:   Photon
12
+Source0:        https://github.com/certifi/python-certifi/archive/certifi-%{version}.tar.gz
13
+%define sha1    certifi=673bf8bc29d7ee0a1a0d8af74d050e5769fec2a9
14
+
15
+BuildRequires:  python2-devel
16
+BuildRequires:  ca-certificates
17
+%if %{with_check}
18
+BuildRequires:  python-pytest
19
+%endif
20
+
21
+Requires:       ca-certificates
22
+
23
+BuildArch:      noarch
24
+
25
+%description
26
+Certifi is a carefully curated collection of
27
+Root Certificates for validating the trustworthiness of
28
+SSL certificates while verifying the identity of TLS hosts
29
+
30
+%package -n     python3-certifi
31
+Summary:        Python 3 certifi library
32
+
33
+BuildRequires:  python3-devel
34
+%if %{with_check}
35
+BuildRequires:  python3-pytest
36
+%endif
37
+
38
+Requires:       ca-certificates
39
+
40
+%description -n python3-certifi
41
+Python 3 version of certifi.
42
+
43
+%prep
44
+%setup -q -n certifi-%{version}
45
+
46
+%build
47
+python2 setup.py build
48
+python3 setup.py build
49
+
50
+%install
51
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
52
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
53
+
54
+%check
55
+python2 setup.py test
56
+python3 setup.py test
57
+
58
+%files
59
+%defattr(-,root,root,-)
60
+%{python2_sitelib}/*
61
+
62
+%files -n python3-certifi
63
+%defattr(-,root,root,-)
64
+%{python3_sitelib}/*
65
+
66
+%changelog
67
+*   Mon Jan 28 2019 Tapas Kundu <tkundu@vmware.com> 2018.11.29-1
68
+-   Initial packaging