diff --git a/python-pycodestyle.changes b/python-pycodestyle.changes index 149012a..b5b6165 100644 --- a/python-pycodestyle.changes +++ b/python-pycodestyle.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 13 13:46:58 UTC 2023 - Johannes Kastl + +- cleanup spec, trim %files section and fix %python_clone command + ------------------------------------------------------------------- Tue Dec 13 16:26:21 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-pycodestyle.spec b/python-pycodestyle.spec index 1dc5b91..b10d2d4 100644 --- a/python-pycodestyle.spec +++ b/python-pycodestyle.spec @@ -1,7 +1,7 @@ # # spec file for package python-pycodestyle # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,7 @@ # -%{?!python_module:%define python_module() python3-%{**}} -%global skip_python2 1 +%define skip_python2 1 Name: python-pycodestyle Version: 2.10.0 Release: 0 @@ -54,8 +53,7 @@ sed -ri '1s/^#!.*//' pycodestyle.py %install %python_install -%python_clone %{buildroot}%{_bindir}/pycodestyle -ln -sf pycodestyle-%{python3_bin_suffix} %{buildroot}%{_bindir}/pycodestyle +%python_clone -a %{buildroot}%{_bindir}/pycodestyle %python_expand %fdupes %{buildroot}/%{$python_sitelib} %post @@ -71,9 +69,8 @@ ln -sf pycodestyle-%{python3_bin_suffix} %{buildroot}%{_bindir}/pycodestyle %license LICENSE %doc README.rst %python_alternative %{_bindir}/pycodestyle -%{_bindir}/pycodestyle-%{python_bin_suffix} %{python_sitelib}/pycodestyle.py* %pycache_only %{python_sitelib}/__pycache__/pycodestyle.*.py* -%{python_sitelib}/pycodestyle-%{version}-*.egg-info +%{python_sitelib}/pycodestyle-%{version}*-info %changelog