Change-Id: I95bcfe8745d51152ae794390294a3745330760bf
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3262
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
... | ... |
@@ -4,7 +4,7 @@ |
4 | 4 |
Summary: Self-service finite-state machines for the programmer on the go. |
5 | 5 |
Name: python-automat |
6 | 6 |
Version: 0.5.0 |
7 |
-Release: 3%{?dist} |
|
7 |
+Release: 4%{?dist} |
|
8 | 8 |
License: MIT |
9 | 9 |
Group: Development/Languages/Python |
10 | 10 |
Vendor: VMware, Inc. |
... | ... |
@@ -23,16 +23,16 @@ BuildRequires: python-attrs |
23 | 23 |
BuildRequires: python-six |
24 | 24 |
BuildRequires: python-docutils |
25 | 25 |
BuildRequires: python-mistune |
26 |
+BuildRequires: python-graphviz |
|
27 |
+BuildRequires: python-Twisted |
|
26 | 28 |
|
27 | 29 |
|
28 | 30 |
Requires: python2 |
29 | 31 |
Requires: python2-libs |
30 |
-Requires: python-m2r |
|
31 |
-Requires: python-setuptools_scm |
|
32 | 32 |
Requires: python-attrs |
33 | 33 |
Requires: python-six |
34 |
-Requires: python-docutils |
|
35 |
-Requires: python-mistune |
|
34 |
+Requires: python-graphviz |
|
35 |
+Requires: python-Twisted |
|
36 | 36 |
|
37 | 37 |
BuildArch: noarch |
38 | 38 |
|
... | ... |
@@ -49,19 +49,19 @@ BuildRequires: python3-m2r |
49 | 49 |
BuildRequires: python3-setuptools_scm |
50 | 50 |
BuildRequires: python3-attrs |
51 | 51 |
BuildRequires: python3-six |
52 |
-BuildRequires: python3-docutils |
|
53 |
-BuildRequires: python3-mistune |
|
54 | 52 |
BuildRequires: python3-setuptools |
55 | 53 |
BuildRequires: python3-xml |
54 |
+BuildRequires: python3-docutils |
|
55 |
+BuildRequires: python3-mistune |
|
56 |
+BuildRequires: python3-graphviz |
|
57 |
+BuildRequires: python3-Twisted |
|
56 | 58 |
|
57 | 59 |
Requires: python3 |
58 | 60 |
Requires: python3-libs |
59 |
-Requires: python3-m2r |
|
60 |
-Requires: python3-setuptools_scm |
|
61 | 61 |
Requires: python3-attrs |
62 | 62 |
Requires: python3-six |
63 |
-Requires: python3-docutils |
|
64 |
-Requires: python3-mistune |
|
63 |
+Requires: python3-graphviz |
|
64 |
+Requires: python3-Twisted |
|
65 | 65 |
|
66 | 66 |
%description -n python3-automat |
67 | 67 |
Python 3 version. |
... | ... |
@@ -101,6 +101,8 @@ popd |
101 | 101 |
%{_bindir}/automat-visualize3 |
102 | 102 |
|
103 | 103 |
%changelog |
104 |
+* Mon Jul 17 2017 Divya Thaluru <dthaluru@vmware.com> 0.5.0-4 |
|
105 |
+- Fixed run time dependencies |
|
104 | 106 |
* Wed Jun 07 2017 Xiaolin Li <xiaolinl@vmware.com> 0.5.0-3 |
105 | 107 |
- Add python3-setuptools and python3-xml to python3 sub package Buildrequires. |
106 | 108 |
* Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.5.0-2 |
107 | 109 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,74 @@ |
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: Graph visualization dot render |
|
4 |
+Name: python-graphviz |
|
5 |
+Version: 0.8 |
|
6 |
+Release: 1%{?dist} |
|
7 |
+License: MIT |
|
8 |
+Group: Development/Languages/Python |
|
9 |
+Vendor: VMware, Inc. |
|
10 |
+Distribution: Photon |
|
11 |
+Url: https://pypi.python.org/pypi/graphviz |
|
12 |
+#wget https://github.com/xflr6/graphviz/archive/0.8.tar.gz -O graphviz-0.8.tar.gz |
|
13 |
+Source0: graphviz-%{version}.tar.gz |
|
14 |
+%define sha1 graphviz=2aee1f3576b1ba08e0b70a0c83ef8e9e7d82d82f |
|
15 |
+BuildRequires: python2 |
|
16 |
+BuildRequires: python2-libs |
|
17 |
+BuildRequires: python2-devel |
|
18 |
+BuildRequires: python-setuptools |
|
19 |
+BuildRequires: python-xml |
|
20 |
+Requires: python2 |
|
21 |
+Requires: python2-libs |
|
22 |
+ |
|
23 |
+BuildArch: noarch |
|
24 |
+ |
|
25 |
+%description |
|
26 |
+This package facilitates the creation and rendering of graph descriptions in the DOT language of the Graphviz graph drawing software (repo) from Python. |
|
27 |
+ |
|
28 |
+%package -n python3-graphviz |
|
29 |
+Summary: Provide support for Graphviz software dot render in python3 |
|
30 |
+BuildRequires: python3-devel |
|
31 |
+BuildRequires: python3-libs |
|
32 |
+BuildRequires: python3-setuptools |
|
33 |
+BuildRequires: python3-xml |
|
34 |
+Requires: python3 |
|
35 |
+Requires: python3-libs |
|
36 |
+ |
|
37 |
+%description -n python3-graphviz |
|
38 |
+Python 3 version. |
|
39 |
+ |
|
40 |
+%prep |
|
41 |
+%setup -q -n graphviz-%{version} |
|
42 |
+rm -rf ../p3dir |
|
43 |
+cp -a . ../p3dir |
|
44 |
+ |
|
45 |
+%build |
|
46 |
+python2 setup.py build |
|
47 |
+pushd ../p3dir |
|
48 |
+python3 setup.py build |
|
49 |
+popd |
|
50 |
+ |
|
51 |
+%install |
|
52 |
+pushd ../p3dir |
|
53 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
54 |
+popd |
|
55 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
56 |
+ |
|
57 |
+%check |
|
58 |
+python2 setup.py test |
|
59 |
+pushd ../p3dir |
|
60 |
+python3 setup.py test |
|
61 |
+popd |
|
62 |
+ |
|
63 |
+%files |
|
64 |
+%defattr(-,root,root) |
|
65 |
+%{python2_sitelib}/* |
|
66 |
+ |
|
67 |
+%files -n python3-graphviz |
|
68 |
+%defattr(-,root,root) |
|
69 |
+%{python3_sitelib}/* |
|
70 |
+ |
|
71 |
+%changelog |
|
72 |
+* Thu Jul 13 2017 Divya Thaluru <dthaluru@vmware.com> 0.8-1 |
|
73 |
+- Initial packaging for Photon |