diff --git a/python-Babel.changes b/python-Babel.changes index dc6668c..e8ff22e 100644 --- a/python-Babel.changes +++ b/python-Babel.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 28 12:21:10 UTC 2015 - toddrme2178@gmail.com + +- Fix update-alternatives usage + ------------------------------------------------------------------- Sat Nov 08 17:11:00 UTC 2014 - Led diff --git a/python-Babel.spec b/python-Babel.spec index 4ff16f0..982954c 100644 --- a/python-Babel.spec +++ b/python-Babel.spec @@ -1,7 +1,7 @@ # # spec file for package python-Babel # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -63,7 +63,11 @@ python setup.py build_sphinx && rm build/sphinx/html/.buildinfo %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -ln -s %{_bindir}/pybabel-%{py_ver} %{buildroot}%{_bindir}/pybabel + +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +touch %{buildroot}%{_sysconfdir}/alternatives/pybabel +ln -sf %{_sysconfdir}/alternatives/pybabel %{buildroot}%{_bindir}/pybabel + %fdupes %{buildroot}%{python_sitelib} %check @@ -77,7 +81,7 @@ LC_ALL=C py.test tests %post update-alternatives --install %{_bindir}/pybabel pybabel %{_bindir}/pybabel-%{py_ver} 20 -%preun +%postun if [ $1 -eq 0 ] ; then update-alternatives --remove pybabel %{_bindir}/pybabel-%{py_ver} fi @@ -85,7 +89,8 @@ fi %files %defattr(-,root,root,-) %doc LICENSE CHANGES README build/sphinx/html -%ghost %{_bindir}/pybabel +%ghost %{_sysconfdir}/alternatives/pybabel +%{_bindir}/pybabel %{_bindir}/pybabel-%{py_ver} %{python_sitelib}/*