From 86068115206ad03b705b1e186f819efdd42760357242cabc1e0dda139a05ea7a Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 23 Mar 2020 18:46:07 +0000 Subject: [PATCH] - Add macro %dephell_genspec to generate setup.py OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-clikit?expand=0&rev=11 --- python-clikit.changes | 5 +++++ python-clikit.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python-clikit.changes b/python-clikit.changes index c9a3be6..d1fcb68 100644 --- a/python-clikit.changes +++ b/python-clikit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 23 18:13:43 UTC 2020 - Matej Cepl + +- Add macro %dephell_genspec to generate setup.py + ------------------------------------------------------------------- Sun Mar 15 10:12:32 UTC 2020 - Tomáš Chvátal diff --git a/python-clikit.spec b/python-clikit.spec index c600915..39ab011 100644 --- a/python-clikit.spec +++ b/python-clikit.spec @@ -32,6 +32,7 @@ BuildRequires: %{python_module pytest-mock >= 2.0.0} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module typing >= 3.6} BuildRequires: fdupes +BuildRequires: python-dephell-rpm-macros BuildRequires: python-rpm-macros BuildRequires: python3-dephell Requires: python-pastel >= 0.2.0 @@ -52,7 +53,8 @@ command line interfaces. %prep %setup -q -n clikit-%{version} -dephell deps convert --from pyproject.toml --to setup.py +%{!?dephell_gensetup:%define dephell_gensetup dephell deps convert --traceback --from pyproject.toml --to setup.py} +%dephell_gensetup %build %python_build