- Remove circular dependency between automat & twisted while building
Change-Id: I4627e4495abca9bdfa881e7ecf89e35bf14ed8e3
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/c/photon/+/21441
Tested-by: gerrit-photon <photon-checkins@vmware.com>
| ... | ... |
@@ -1,36 +1,36 @@ |
| 1 | 1 |
Summary: Self-service finite-state machines for the programmer on the go. |
| 2 | 2 |
Name: python3-automat |
| 3 | 3 |
Version: 20.2.0 |
| 4 |
-Release: 3%{?dist}
|
|
| 4 |
+Release: 4%{?dist}
|
|
| 5 | 5 |
License: MIT |
| 6 | 6 |
Group: Development/Languages/Python |
| 7 | 7 |
Vendor: VMware, Inc. |
| 8 | 8 |
Distribution: Photon |
| 9 | 9 |
Url: https://pypi.python.org/pypi/Automat |
| 10 |
-Source0: https://files.pythonhosted.org/packages/source/A/Automat/Automat-%{version}.tar.gz
|
|
| 11 |
-%define sha512 Automat=715cb5dc087288492e6465a29e7d8502a84fadf451bc3d29da86335ea1c20f8efd9549f0c1eaac8800559dd8001dd73736c3bfacdc6321c83a35d2288d69632c |
|
| 12 | 10 |
|
| 13 |
-BuildRequires: python3-devel |
|
| 14 |
-BuildRequires: python3-libs |
|
| 15 |
-BuildRequires: python3-m2r |
|
| 16 |
-BuildRequires: python3-packaging |
|
| 17 |
-BuildRequires: python3-pip |
|
| 18 |
-BuildRequires: python3-setuptools_scm |
|
| 19 |
-BuildRequires: python3-setuptools |
|
| 20 |
-BuildRequires: python3-xml |
|
| 21 |
-BuildRequires: python3-docutils |
|
| 22 |
-BuildRequires: python3-mistune |
|
| 23 |
-BuildRequires: python3-graphviz |
|
| 24 |
-BuildRequires: python3-attrs |
|
| 25 |
-BuildRequires: python3-six |
|
| 11 |
+Source0: https://files.pythonhosted.org/packages/source/A/Automat/Automat-%{version}.tar.gz
|
|
| 12 |
+%define sha512 Automat=715cb5dc087288492e6465a29e7d8502a84fadf451bc3d29da86335ea1c20f8efd9549f0c1eaac8800559dd8001dd73736c3bfacdc6321c83a35d2288d69632c |
|
| 26 | 13 |
|
| 27 |
-Requires: python3-six |
|
| 28 |
-Requires: python3-attrs |
|
| 29 |
-Requires: python3 |
|
| 30 |
-Requires: python3-libs |
|
| 31 |
-Requires: python3-graphviz |
|
| 14 |
+BuildRequires: python3-devel |
|
| 15 |
+BuildRequires: python3-m2r |
|
| 16 |
+BuildRequires: python3-packaging |
|
| 17 |
+BuildRequires: python3-pip |
|
| 18 |
+BuildRequires: python3-setuptools_scm |
|
| 19 |
+BuildRequires: python3-setuptools |
|
| 20 |
+BuildRequires: python3-xml |
|
| 21 |
+BuildRequires: python3-docutils |
|
| 22 |
+BuildRequires: python3-mistune |
|
| 23 |
+BuildRequires: python3-graphviz |
|
| 24 |
+BuildRequires: python3-attrs |
|
| 25 |
+BuildRequires: python3-six |
|
| 32 | 26 |
|
| 33 |
-BuildArch: noarch |
|
| 27 |
+Requires: python3-six |
|
| 28 |
+Requires: python3-attrs |
|
| 29 |
+Requires: python3 |
|
| 30 |
+Requires: python3-graphviz |
|
| 31 |
+Requires: python3-Twisted |
|
| 32 |
+ |
|
| 33 |
+BuildArch: noarch |
|
| 34 | 34 |
|
| 35 | 35 |
%description |
| 36 | 36 |
Self-service finite-state machines for the programmer on the go. |
| ... | ... |
@@ -38,24 +38,29 @@ Self-service finite-state machines for the programmer on the go. |
| 38 | 38 |
Automat is a library for concise, idiomatic Python expression of finite-state automata (particularly deterministic finite-state transducers). |
| 39 | 39 |
|
| 40 | 40 |
%prep |
| 41 |
-%autosetup -n Automat-%{version}
|
|
| 41 |
+%autosetup -p1 -n Automat-%{version}
|
|
| 42 | 42 |
|
| 43 | 43 |
%build |
| 44 |
-%py3_build |
|
| 44 |
+%{py3_build}
|
|
| 45 | 45 |
|
| 46 | 46 |
%install |
| 47 |
-%py3_install |
|
| 48 |
-mv %{buildroot}/%{_bindir}/automat-visualize %{buildroot}/%{_bindir}/automat-visualize3
|
|
| 47 |
+%{py3_install}
|
|
| 48 |
+mv %{buildroot}%{_bindir}/automat-visualize %{buildroot}%{_bindir}/automat-visualize3
|
|
| 49 |
+ln -sv automat-visualize3 %{buildroot}%{_bindir}/automat-visualize
|
|
| 49 | 50 |
|
| 51 |
+%if 0%{?with_check}
|
|
| 50 | 52 |
%check |
| 51 |
-python3 setup.py test |
|
| 53 |
+%pytest |
|
| 54 |
+%endif |
|
| 52 | 55 |
|
| 53 | 56 |
%files |
| 54 | 57 |
%defattr(-,root,root) |
| 55 | 58 |
%{python3_sitelib}/*
|
| 56 |
-%{_bindir}/automat-visualize3
|
|
| 59 |
+%{_bindir}/automat-visualize*
|
|
| 57 | 60 |
|
| 58 | 61 |
%changelog |
| 62 |
+* Thu Aug 03 2023 Shreenidhi Shedi <sshedi@vmware.com> 20.2.0-4 |
|
| 63 |
+- Add twisted to requires |
|
| 59 | 64 |
* Mon Oct 31 2022 Prashant S Chauhan <psinghchauha@vmware.com> 20.2.0-3 |
| 60 | 65 |
- Update release to compile with python 3.11 |
| 61 | 66 |
* Tue Dec 15 2020 Shreenidhi Shedi <sshedi@vmware.com> 20.2.0-2 |