forked from pool/python-Babel
Accepting request 309071 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/309071 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Babel?expand=0&rev=14
This commit is contained in:
commit
be4ff7a3d0
@ -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 <ledest@gmail.com>
|
||||
|
||||
|
@ -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}/*
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user