From bd742214b0b9f14981c168fbd33ab331864e3dbe Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:48:02 +0100 Subject: [PATCH] fix binary confict between py variants [release 2.6.0-3mamba;Fri May 17 2019] --- python-babel.spec | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/python-babel.spec b/python-babel.spec index bbdf5b4..f76da12 100644 --- a/python-babel.spec +++ b/python-babel.spec @@ -1,6 +1,6 @@ Name: python-babel Version: 2.6.0 -Release: 2mamba +Release: 3mamba Summary: Library for internationalizing Python applications Group: System/Libraries/Python Vendor: openmamba @@ -15,6 +15,8 @@ BuildRequires: libpython-devel ## AUTOBUILDREQ-END Requires: python >= %python_version Requires: python-setuptools +Provides: python-babel-tool +Obsoletes: python-babel-tool BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch @@ -54,20 +56,22 @@ sed -i -e '/^#!/,1d' babel/messages/frontend.py #sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist +%if 0%{?with_pyver} +mv %{buildroot}%{_bindir}/pybabel %{buildroot}%{_bindir}/pybabel-%{?pyappend} +sed -i "s|%{_bindir}/pybabel|%{_bindir}/pybabel-%{?pyappend}|" %{name}.filelist +%endif + %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) -#%doc doc/* - -%files tool -%defattr(-,root,root) -%{_bindir}/pybabel %doc AUTHORS LICENSE -#ChangeLog COPYING README.txt doc/cmdline.txt %changelog +* Fri May 17 2019 Silvan Calarco 2.6.0-3mamba +- fix binary confict between py variants + * Thu May 16 2019 Silvan Calarco 2.6.0-2mamba - rebuilt with py36 support