From 2b2a913593401af4a866d1949993a384581381434c080cd9dc0bbb863232da45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 26 Jan 2019 09:09:18 +0000 Subject: [PATCH] Accepting request 668741 from home:jbrownell:branches:devel:languages:python - Remove redundant /etc/alternatives files produced on Red Hat OBS-URL: https://build.opensuse.org/request/show/668741 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpath-rw?expand=0&rev=11 --- python-jsonpath-rw.changes | 5 +++++ python-jsonpath-rw.spec | 5 +++++ 2 files changed, 10 insertions(+) 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