diff --git a/Automat-0.6.0.tar.gz b/Automat-0.6.0.tar.gz deleted file mode 100644 index c11be50..0000000 --- a/Automat-0.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c1fd04ecf08ac87b4dd3feae409542e9bf7827257097b2b6ed5692f69d6f6a8 -size 31767 diff --git a/Automat-0.7.0.tar.gz b/Automat-0.7.0.tar.gz new file mode 100644 index 0000000..aaa1791 --- /dev/null +++ b/Automat-0.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cbd78b83fa2d81fe2a4d23d258e1661dd7493c9a50ee2f1a5b2cac61c1793b0e +size 61461 diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-Automat.changes b/python-Automat.changes index 6184da2..efdeaf5 100644 --- a/python-Automat.changes +++ b/python-Automat.changes @@ -1,7 +1,20 @@ +------------------------------------------------------------------- +Thu Mar 7 09:09:35 UTC 2019 - Tomáš Chvátal + +- Add mulitbuild to make sure we do not cycle + +------------------------------------------------------------------- +Tue Mar 5 12:01:41 UTC 2019 - Tomáš Chvátal + +- Update to version 0.7.0: + * test updates + * pep fixes +- Run tests + ------------------------------------------------------------------- Tue Jul 4 04:45:19 UTC 2017 - tbechtold@suse.com -update to version v0.6.0 +- update to version v0.6.0 * use version-specific travis environments * tox/travis: enable tests on py3.5 * add a comment: this check doesn't catch non-None returns diff --git a/python-Automat.spec b/python-Automat.spec index 259a2af..b523bd9 100644 --- a/python-Automat.spec +++ b/python-Automat.spec @@ -1,7 +1,7 @@ # # spec file for package python-Automat # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,39 +12,44 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} %bcond_with test -Name: python-Automat -Version: 0.6.0 +%endif +Name: python-Automat%{psuffix} +Version: 0.7.0 Release: 0 Summary: Self-service finite-state machines for the programmer on the go License: MIT Group: Development/Languages/Python -Url: https://github.com/glyph/automat +URL: https://github.com/glyph/automat Source: https://files.pythonhosted.org/packages/source/A/Automat/Automat-%{version}.tar.gz BuildRequires: %{python_module m2r} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{with test} -BuildRequires: %{python_module Twisted} -BuildRequires: %{python_module attrs} -BuildRequires: %{python_module graphviz} -%endif -Requires: python-attrs +Requires: python-attrs >= 16.1.0 Requires: python-six -Suggests: python-graphviz > 0.5.1 -Suggests: python-Twisted >= 16.1.1 Requires(post): update-alternatives Requires(preun): update-alternatives -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Suggests: python-Twisted >= 16.1.1 +Suggests: python-graphviz > 0.5.1 BuildArch: noarch - +%if %{with test} +BuildRequires: %{python_module Twisted >= 16.1.1} +BuildRequires: %{python_module attrs >= 16.1.0} +BuildRequires: %{python_module graphviz >= 0.5.1} +%endif %python_subpackages %description @@ -58,15 +63,18 @@ automata (particularly deterministic finite-state transducers). %python_build %install +%if !%{with test} %python_install %python_clone -a %{buildroot}%{_bindir}/automat-visualize %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif -%if %{with test} %check +%if %{with test} %python_exec setup.py test %endif +%if !%{with test} %post %python_install_alternative automat-visualize @@ -74,9 +82,10 @@ automata (particularly deterministic finite-state transducers). %python_uninstall_alternative automat-visualize %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE README.md +%license LICENSE +%doc README.md %python_alternative %{_bindir}/automat-visualize %{python_sitelib}/* +%endif %changelog