diff --git a/python-cogapp.changes b/python-cogapp.changes index 068140f..5527741 100644 --- a/python-cogapp.changes +++ b/python-cogapp.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Sep 27 06:52:19 UTC 2022 - Daniel Garcia + +- Remove not needed patch in prep section +- Change preun to postun to run python_uninstall_alternatives to remove rpmlint + errors + ------------------------------------------------------------------- Mon Sep 26 22:06:02 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-cogapp.spec b/python-cogapp.spec index 8b4809b..8502b50 100644 --- a/python-cogapp.spec +++ b/python-cogapp.spec @@ -30,7 +30,7 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives -Requires(preun):update-alternatives +Requires(postun):update-alternatives BuildArch: noarch %python_subpackages @@ -41,9 +41,6 @@ need. %prep %setup -q -n cogapp-%{version} -# The fix for bpo-43105 broke cogapp's way to import relative paths -# https://github.com/nedbat/cog/issues/16 -sed -i 's/self.addToIncludePath(a)/self.addToIncludePath(os.path.abspath(a))/' cogapp/cogapp.py %build %python_build @@ -61,7 +58,7 @@ mv %{buildroot}%{_bindir}/cog.py %{buildroot}%{_bindir}/cog %post %python_install_alternative cog -%preun +%postun %python_uninstall_alternative cog %files %{python_files}