diff --git a/python-jsonpath-rw.changes b/python-jsonpath-rw.changes index 8528164..f2a5e1f 100644 --- a/python-jsonpath-rw.changes +++ b/python-jsonpath-rw.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 8 23:06:06 UTC 2019 - Jonathan Brownell + +- Remove redundant /etc/alternatives files produced on Red Hat + ------------------------------------------------------------------- Tue Dec 4 12:49:35 UTC 2018 - Matej Cepl diff --git a/python-jsonpath-rw.spec b/python-jsonpath-rw.spec index 60aee67..801ed17 100644 --- a/python-jsonpath-rw.spec +++ b/python-jsonpath-rw.spec @@ -37,6 +37,11 @@ Requires(postun): update-alternatives BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +# detritus in /etc/alternatives from brp-python-bytecompile must be removed +%define __os_install_post %(echo '%{__os_install_post}; \ + rm -f %{buildroot}%{_sysconfdir}/alternatives/jsonpath.pyo; \ + rm -f %{buildroot}%{_sysconfdir}/alternatives/jsonpath.pyc') + %python_subpackages %description