diff --git a/python-python-json-logger.spec b/python-python-json-logger.spec index 29eeb3c..7d4a6f6 100644 --- a/python-python-json-logger.spec +++ b/python-python-json-logger.spec @@ -25,9 +25,10 @@ License: BSD-2-Clause Group: Development/Languages/Python URL: https://github.com/madzak/python-json-logger Source: https://files.pythonhosted.org/packages/source/p/python-json-logger/python-json-logger-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-setuptools BuildArch: noarch %python_subpackages @@ -35,13 +36,14 @@ BuildArch: noarch A python library adding a json log formatter. %prep -%setup -q -n python-json-logger-%{version} +%autosetup -p1 -n python-json-logger-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pyunittest discover -v @@ -49,6 +51,7 @@ A python library adding a json log formatter. %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/python_json_logger-%{version}*-info +%{python_sitelib}/pythonjsonlogger %changelog