forked from pool/python-Sphinx
Accepting request 207422 from devel:languages:python
- Fix %preun update-alternatives, used wrong master - Only ghost /etc/alternatives on 12.3 or newer OBS-URL: https://build.opensuse.org/request/show/207422 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Sphinx?expand=0&rev=26
This commit is contained in:
commit
ea27e34134
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 18 09:05:53 UTC 2013 - speilicke@suse.com
|
||||
|
||||
- Fix %preun update-alternatives, used wrong master
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 15 12:17:12 UTC 2013 - speilicke@suse.com
|
||||
|
||||
- Only ghost /etc/alternatives on 12.3 or newer
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 13 14:54:09 UTC 2013 - speilicke@suse.com
|
||||
|
||||
|
@ -132,38 +132,40 @@ update-alternatives \
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
update-alternatives --remove sphinx-build %{_bindir}/sphinx-apidoc-%{py_ver}
|
||||
update-alternatives --remove sphinx-apidoc %{_bindir}/sphinx-apidoc-%{py_ver}
|
||||
fi
|
||||
|
||||
%files -f sphinx.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS CHANGES LICENSE README.rst
|
||||
%ghost %{_bindir}/sphinx-apidoc
|
||||
%ghost %{_sysconfdir}/alternatives/sphinx-apidoc
|
||||
%{_bindir}/sphinx-apidoc-%{py_ver}
|
||||
%ghost %{_bindir}/sphinx-autogen
|
||||
%ghost %{_sysconfdir}/alternatives/sphinx-autogen
|
||||
%{_bindir}/sphinx-autogen-%{py_ver}
|
||||
%ghost %{_bindir}/sphinx-build
|
||||
%ghost %{_sysconfdir}/alternatives/sphinx-build
|
||||
%{_bindir}/sphinx-build-%{py_ver}
|
||||
%ghost %{_bindir}/sphinx-quickstart
|
||||
%ghost %{_sysconfdir}/alternatives/sphinx-quickstart
|
||||
%{_bindir}/sphinx-quickstart-%{py_ver}
|
||||
%ghost %{_mandir}/man1/sphinx-all.1.gz
|
||||
%ghost %{_sysconfdir}/alternatives/sphinx-all.1.gz
|
||||
%{_mandir}/man1/sphinx-all-%{py_ver}.1.gz
|
||||
%ghost %{_mandir}/man1/sphinx-apidoc.1.gz
|
||||
%ghost %{_sysconfdir}/alternatives/sphinx-apidoc.1.gz
|
||||
%{_mandir}/man1/sphinx-apidoc-%{py_ver}.1.gz
|
||||
%ghost %{_mandir}/man1/sphinx-build.1.gz
|
||||
%ghost %{_sysconfdir}/alternatives/sphinx-build.1.gz
|
||||
%{_mandir}/man1/sphinx-build-%{py_ver}.1.gz
|
||||
%ghost %{_mandir}/man1/sphinx-quickstart.1.gz
|
||||
%ghost %{_sysconfdir}/alternatives/sphinx-quickstart.1.gz
|
||||
%{_mandir}/man1/sphinx-quickstart-%{py_ver}.1.gz
|
||||
%{python_sitelib}/sphinx/
|
||||
%{python_sitelib}/Sphinx-%{version}-py%{py_ver}.egg-info
|
||||
%if 0%{?suse_version} >= 1230
|
||||
%ghost %{_sysconfdir}/alternatives/sphinx-apidoc
|
||||
%ghost %{_sysconfdir}/alternatives/sphinx-autogen
|
||||
%ghost %{_sysconfdir}/alternatives/sphinx-build
|
||||
%ghost %{_sysconfdir}/alternatives/sphinx-quickstart
|
||||
%ghost %{_sysconfdir}/alternatives/sphinx-all.1.gz
|
||||
%ghost %{_sysconfdir}/alternatives/sphinx-apidoc.1.gz
|
||||
%ghost %{_sysconfdir}/alternatives/sphinx-build.1.gz
|
||||
%ghost %{_sysconfdir}/alternatives/sphinx-quickstart.1.gz
|
||||
%endif
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
|
Loading…
x
Reference in New Issue
Block a user