Change-Id: I72ccb8c5b694a165a9d8ce06080bef49f4025bf6
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2377
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,76 @@ |
| 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: A DNS toolkit for Python |
|
| 4 |
+Name: python-dnspython |
|
| 5 |
+Version: 1.15.0 |
|
| 6 |
+Release: 1%{?dist}
|
|
| 7 |
+Url: https://pypi.python.org/pypi/dnspython |
|
| 8 |
+License: BSD |
|
| 9 |
+Group: Development/Languages/Python |
|
| 10 |
+Vendor: VMware, Inc. |
|
| 11 |
+Distribution: Photon |
|
| 12 |
+Source0: https://files.pythonhosted.org/packages/source/d/dnspython/dnspython-%{version}.zip
|
|
| 13 |
+%define sha1 dnspython=2a3ffd70c0dbcac5ab60b582b5c53d202a938570 |
|
| 14 |
+BuildArch: noarch |
|
| 15 |
+ |
|
| 16 |
+BuildRequires: python2 |
|
| 17 |
+BuildRequires: python2-libs |
|
| 18 |
+BuildRequires: python2-devel |
|
| 19 |
+BuildRequires: python-setuptools |
|
| 20 |
+BuildRequires: unzip |
|
| 21 |
+Requires: python2 |
|
| 22 |
+Requires: python2-libs |
|
| 23 |
+ |
|
| 24 |
+%description |
|
| 25 |
+dnspython is a DNS toolkit for Python. It supports almost all record types. It can be used for queries, zone transfers, and dynamic updates. It supports TSIG authenticated messages and EDNS0. |
|
| 26 |
+ |
|
| 27 |
+dnspython provides both high and low level access to DNS. The high level classes perform queries for data of a given name, type, and class, and return an answer set. The low level classes allow direct manipulation of DNS zones, messages, names, and records. |
|
| 28 |
+ |
|
| 29 |
+dnspython originated at Nominum where it was developed to facilitate the testing of DNS software. Nominum has generously allowed it to be open sourced under a BSD-style license. |
|
| 30 |
+ |
|
| 31 |
+%package -n python3-dnspython |
|
| 32 |
+Summary: python-dnspython |
|
| 33 |
+BuildRequires: python3 |
|
| 34 |
+BuildRequires: python3-devel |
|
| 35 |
+BuildRequires: python3-libs |
|
| 36 |
+Requires: python3 |
|
| 37 |
+Requires: python3-libs |
|
| 38 |
+ |
|
| 39 |
+%description -n python3-dnspython |
|
| 40 |
+Python 3 version. |
|
| 41 |
+ |
|
| 42 |
+%prep |
|
| 43 |
+%setup -q -n dnspython-%{version}
|
|
| 44 |
+rm -rf ../p3dir |
|
| 45 |
+cp -a . ../p3dir |
|
| 46 |
+ |
|
| 47 |
+%build |
|
| 48 |
+python2 setup.py build |
|
| 49 |
+pushd ../p3dir |
|
| 50 |
+python3 setup.py build |
|
| 51 |
+popd |
|
| 52 |
+ |
|
| 53 |
+%install |
|
| 54 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
| 55 |
+pushd ../p3dir |
|
| 56 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
| 57 |
+popd |
|
| 58 |
+ |
|
| 59 |
+%check |
|
| 60 |
+python2 setup.py test |
|
| 61 |
+pushd ../p3dir |
|
| 62 |
+python3 setup.py test |
|
| 63 |
+popd |
|
| 64 |
+ |
|
| 65 |
+%files |
|
| 66 |
+%defattr(-,root,root) |
|
| 67 |
+%{python2_sitelib}/*
|
|
| 68 |
+ |
|
| 69 |
+%files -n python3-dnspython |
|
| 70 |
+%defattr(-,root,root,-) |
|
| 71 |
+%{python3_sitelib}/*
|
|
| 72 |
+ |
|
| 73 |
+%changelog |
|
| 74 |
+* Tue Apr 11 2017 Xiaolin Li <xiaolinl@vmware.com> 1.15.0-1 |
|
| 75 |
+- Initial packaging for Photon |
| 0 | 76 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,76 @@ |
| 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: World timezone definitions, modern and historical |
|
| 4 |
+Name: python-pytz |
|
| 5 |
+Version: 2017.2 |
|
| 6 |
+Release: 1%{?dist}
|
|
| 7 |
+Url: https://pypi.python.org/pypi/pytz |
|
| 8 |
+License: MIT |
|
| 9 |
+Group: Development/Languages/Python |
|
| 10 |
+Vendor: VMware, Inc. |
|
| 11 |
+Distribution: Photon |
|
| 12 |
+Source0: https://files.pythonhosted.org/packages/source/p/pytz/pytz-%{version}.zip
|
|
| 13 |
+%define sha1 pytz=c2d0024d4a6bd649290813f0a57d849accf82fa9 |
|
| 14 |
+BuildArch: noarch |
|
| 15 |
+ |
|
| 16 |
+BuildRequires: python2 |
|
| 17 |
+BuildRequires: python2-libs |
|
| 18 |
+BuildRequires: python2-devel |
|
| 19 |
+BuildRequires: python-setuptools |
|
| 20 |
+BuildRequires: unzip |
|
| 21 |
+Requires: python2 |
|
| 22 |
+Requires: python2-libs |
|
| 23 |
+ |
|
| 24 |
+%description |
|
| 25 |
+pytz brings the Olson tz database into Python. This library allows |
|
| 26 |
+accurate and cross platform timezone calculations using Python 2.4 |
|
| 27 |
+or higher. It also solves the issue of ambiguous times at the end |
|
| 28 |
+of daylight saving time, which you can read more about in the Python |
|
| 29 |
+Library Reference (``datetime.tzinfo``). |
|
| 30 |
+ |
|
| 31 |
+%package -n python3-pytz |
|
| 32 |
+Summary: python-pytz |
|
| 33 |
+BuildRequires: python3 |
|
| 34 |
+BuildRequires: python3-devel |
|
| 35 |
+BuildRequires: python3-libs |
|
| 36 |
+Requires: python3 |
|
| 37 |
+Requires: python3-libs |
|
| 38 |
+ |
|
| 39 |
+%description -n python3-pytz |
|
| 40 |
+Python 3 version. |
|
| 41 |
+ |
|
| 42 |
+%prep |
|
| 43 |
+%setup -q -n pytz-%{version}
|
|
| 44 |
+rm -rf ../p3dir |
|
| 45 |
+cp -a . ../p3dir |
|
| 46 |
+ |
|
| 47 |
+%build |
|
| 48 |
+python2 setup.py build |
|
| 49 |
+pushd ../p3dir |
|
| 50 |
+python3 setup.py build |
|
| 51 |
+popd |
|
| 52 |
+ |
|
| 53 |
+%install |
|
| 54 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
| 55 |
+pushd ../p3dir |
|
| 56 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
| 57 |
+popd |
|
| 58 |
+ |
|
| 59 |
+%check |
|
| 60 |
+python2 setup.py test |
|
| 61 |
+pushd ../p3dir |
|
| 62 |
+python3 setup.py test |
|
| 63 |
+popd |
|
| 64 |
+ |
|
| 65 |
+%files |
|
| 66 |
+%defattr(-,root,root) |
|
| 67 |
+%{python2_sitelib}/*
|
|
| 68 |
+ |
|
| 69 |
+%files -n python3-pytz |
|
| 70 |
+%defattr(-,root,root,-) |
|
| 71 |
+%{python3_sitelib}/*
|
|
| 72 |
+ |
|
| 73 |
+%changelog |
|
| 74 |
+* Tue Apr 11 2017 Xiaolin Li <xiaolinl@vmware.com> 2017.2-1 |
|
| 75 |
+- Initial packaging for Photon |