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-releases.changes b/python-releases.changes index 0cd0251..cb7a24a 100644 --- a/python-releases.changes +++ b/python-releases.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sat Aug 11 14:43:12 UTC 2018 - tchvatal@suse.com + +- Enable testsuite in multibuild mode as it creates cycle otherwise + +------------------------------------------------------------------- +Sat Aug 11 09:50:05 UTC 2018 - tchvatal@suse.com + +- Update to 1.6.1: + * Support sphinx 1.7 + ------------------------------------------------------------------- Fri May 18 14:29:58 UTC 2018 - toddrme2178@gmail.com diff --git a/python-releases.spec b/python-releases.spec index 63f1b57..49d6614 100644 --- a/python-releases.spec +++ b/python-releases.spec @@ -13,26 +13,44 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# +%global flavor @BUILD_FLAVOR@%{nil} %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# Tests have dependency loop with python-invoke and python-invocations -Name: python-releases -Version: 1.5.0 +%if "%{flavor}" == "test" +%bcond_without test +%else +%bcond_with test +%endif +Version: 1.6.1 Release: 0 -License: BSD-2-Clause Summary: A Sphinx extension for changelog manipulation -Url: https://github.com/bitprophet/releases +License: BSD-2-Clause Group: Development/Languages/Python +URL: https://github.com/bitprophet/releases Source: https://files.pythonhosted.org/packages/source/r/releases/releases-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -Requires: python-semantic_version < 3.0 +BuildRequires: python-rpm-macros Requires: python-Sphinx >= 1.3 +Requires: python-semantic_version +Requires: python-six >= 1.4.1 BuildArch: noarch - +%if %{with test} +Name: python-releases-%{flavor} +%else +Name: python-releases +%endif +%if %{with test} +BuildRequires: %{python_module Sphinx >= 1.3} +BuildRequires: %{python_module invocations} +BuildRequires: %{python_module invoke} +BuildRequires: %{python_module mock >= 1.0.1} +BuildRequires: %{python_module semantic_version} +BuildRequires: %{python_module six >= 1.4.1} +BuildRequires: %{python_module spec >= 0.11.3} +%endif %python_subpackages %description @@ -59,13 +77,21 @@ Specifically: %python_build %install +%if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%if %{with test} +%check +%python_expand invoke-%{$python_bin_suffix} test +%endif %files %{python_files} -%defattr(-,root,root,-) %doc README.rst %license LICENSE +%if !%{with test} %{python_sitelib}/* +%endif %changelog diff --git a/releases-1.5.0.tar.gz b/releases-1.5.0.tar.gz deleted file mode 100644 index 3eaec5a..0000000 --- a/releases-1.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4c4b2ff79490e11f7b59ff89537f1c221bb57dc8412ce51289734567bd1d0ad0 -size 39405 diff --git a/releases-1.6.1.tar.gz b/releases-1.6.1.tar.gz new file mode 100644 index 0000000..cbd7858 --- /dev/null +++ b/releases-1.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a1b3163ab062d41dc4e61d8f51df055756d146f1fb6e18ee5cf55d91c9cda54 +size 42029