Change-Id: I1ae57dcce1e91e42c4bbfacc100313849d5421df
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2073
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Xiaolin Li <xiaolinl@vmware.com>
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,45 @@ |
0 |
+%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
1 |
+ |
|
2 |
+Name: python-enum |
|
3 |
+Version: 0.4.6 |
|
4 |
+Release: 1%{?dist} |
|
5 |
+Summary: Robust enumerated type support in Python |
|
6 |
+License: MIT |
|
7 |
+Group: Development/Languages/Python |
|
8 |
+Url: http://pypi.python.org/packages/source/e/enum/enum-%{version}.tar.gz |
|
9 |
+Vendor: VMware, Inc. |
|
10 |
+Distribution: Photon |
|
11 |
+Source0: enum-%{version}.tar.gz |
|
12 |
+%define sha1 enum=b8868b1370181e92bbffbcd18b3ccd2be1f0438d |
|
13 |
+ |
|
14 |
+BuildRequires: python2 |
|
15 |
+BuildRequires: python2-libs |
|
16 |
+BuildRequires: python-setuptools |
|
17 |
+ |
|
18 |
+Requires: python2 |
|
19 |
+Requires: python2-libs |
|
20 |
+ |
|
21 |
+BuildArch: noarch |
|
22 |
+ |
|
23 |
+%description |
|
24 |
+This package provides a module for robust enumerations in Python. |
|
25 |
+ |
|
26 |
+%prep |
|
27 |
+%setup -n enum-%{version} |
|
28 |
+ |
|
29 |
+%build |
|
30 |
+python setup.py build |
|
31 |
+ |
|
32 |
+%install |
|
33 |
+python setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
34 |
+ |
|
35 |
+%check |
|
36 |
+python setup.py test |
|
37 |
+ |
|
38 |
+%files |
|
39 |
+%defattr(-,root,root,-) |
|
40 |
+%{python_sitelib}/* |
|
41 |
+ |
|
42 |
+%changelog |
|
43 |
+* Thu Feb 16 2017 Xiaolin Li <xiaolinl@vmware.com> 0.4.6-1 |
|
44 |
+- Initial packaging for Photon |
0 | 45 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,45 @@ |
0 |
+%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
1 |
+ |
|
2 |
+Name: python-ipaddress |
|
3 |
+Version: 1.0.18 |
|
4 |
+Release: 1%{?dist} |
|
5 |
+Summary: Port of the 3.3+ ipaddress module to 2.6, 2.7, 3.2 |
|
6 |
+License: MIT |
|
7 |
+Group: Development/Languages/Python |
|
8 |
+Url: https://pypi.python.org/pypi/ipaddress |
|
9 |
+Vendor: VMware, Inc. |
|
10 |
+Distribution: Photon |
|
11 |
+Source0: ipaddress-%{version}.tar.gz |
|
12 |
+%define sha1 ipaddress=f15a3714e4bea2ddfe54e80ad6f7b5de57cc94c5 |
|
13 |
+ |
|
14 |
+BuildRequires: python2 |
|
15 |
+BuildRequires: python2-libs |
|
16 |
+BuildRequires: python-setuptools |
|
17 |
+ |
|
18 |
+Requires: python2 |
|
19 |
+Requires: python2-libs |
|
20 |
+ |
|
21 |
+BuildArch: noarch |
|
22 |
+ |
|
23 |
+%description |
|
24 |
+IPv4/IPv6 manipulation library |
|
25 |
+ |
|
26 |
+%prep |
|
27 |
+%setup -n ipaddress-%{version} |
|
28 |
+ |
|
29 |
+%build |
|
30 |
+python setup.py build |
|
31 |
+ |
|
32 |
+%install |
|
33 |
+python setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
34 |
+ |
|
35 |
+%check |
|
36 |
+python setup.py test |
|
37 |
+ |
|
38 |
+%files |
|
39 |
+%defattr(-,root,root,-) |
|
40 |
+%{python_sitelib}/* |
|
41 |
+ |
|
42 |
+%changelog |
|
43 |
+* Thu Feb 16 2017 Xiaolin Li <xiaolinl@vmware.com> 1.0.18-1 |
|
44 |
+- Initial packaging for Photon |
... | ... |
@@ -3,7 +3,7 @@ |
3 | 3 |
Summary: Python wrapper module around the OpenSSL library |
4 | 4 |
Name: python-pyOpenSSL |
5 | 5 |
Version: 16.2.0 |
6 |
-Release: 1%{?dist} |
|
6 |
+Release: 2%{?dist} |
|
7 | 7 |
Url: https://github.com/pyca/pyopenssl |
8 | 8 |
License: ASL 2.0 |
9 | 9 |
Group: Development/Languages/Python |
... | ... |
@@ -19,6 +19,8 @@ BuildRequires: python-setuptools |
19 | 19 |
Requires: python2 |
20 | 20 |
Requires: python2-libs |
21 | 21 |
Requires: python-cryptography |
22 |
+Requires: python-enum |
|
23 |
+Requires: python-ipaddress |
|
22 | 24 |
|
23 | 25 |
BuildArch: noarch |
24 | 26 |
|
... | ... |
@@ -61,5 +63,7 @@ python3 setup.py test |
61 | 61 |
%{python3_sitelib}/* |
62 | 62 |
|
63 | 63 |
%changelog |
64 |
+* Tue Feb 21 2017 Xiaolin Li <xiaolinl@vmware.com> 16.2.0-2 |
|
65 |
+- Add Requires for python-enum and python-ipaddress |
|
64 | 66 |
* Tue Feb 14 2017 Xiaolin Li <xiaolinl@vmware.com> 16.2.0-1 |
65 | 67 |
- Initial packaging for Photon |