Hello community,

here is the log from the commit of package python-Sphinx for openSUSE:Factory 
checked in at 2013-05-13 15:28:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Sphinx (Old)
 and      /work/SRC/openSUSE:Factory/.python-Sphinx.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Sphinx"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Sphinx/python-Sphinx.changes      
2012-11-28 14:34:47.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-Sphinx.new/python-Sphinx.changes 
2013-05-13 15:28:26.000000000 +0200
@@ -1,0 +2,5 @@
+Tue Apr 30 14:38:24 UTC 2013 - [email protected]
+
+- Apply update-alternatives for binaries and man-pages
+
+-------------------------------------------------------------------
--- /work/SRC/openSUSE:Factory/python-Sphinx/python3-Sphinx.changes     
2012-11-28 14:34:47.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-Sphinx.new/python3-Sphinx.changes        
2013-05-13 15:28:26.000000000 +0200
@@ -1,0 +2,11 @@
+Tue May  7 08:16:04 UTC 2013 - [email protected]
+
+- fix building under openSUSE 12.1, 12.2: 
+ BuildRequires: python3-2to3 should be explicitly stated
+
+-------------------------------------------------------------------
+Tue Apr 30 14:38:39 UTC 2013 - [email protected]
+
+- Apply update-alternatives for binaries and man-pages
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Sphinx.spec ++++++
--- /var/tmp/diff_new_pack.HO57lo/_old  2013-05-13 15:28:27.000000000 +0200
+++ /var/tmp/diff_new_pack.HO57lo/_new  2013-05-13 15:28:27.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Sphinx
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 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
@@ -25,14 +25,16 @@
 Group:          Development/Languages/Python
 Source:         
http://pypi.python.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  fdupes
-BuildRequires:  python-Jinja2
 BuildRequires:  python-devel
 BuildRequires:  python-distribute
+# Documentation requirements:
+BuildRequires:  python-Jinja2
 BuildRequires:  python-docutils
-# Testsuite build requirements:
+# Testsuite requirements:
 BuildRequires:  python-Pygments
 BuildRequires:  python-nose
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Requires:       python-Jinja2
 Requires:       python-Pygments
 Requires:       python-distribute
@@ -86,19 +88,57 @@
 
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+for B in apidoc autogen build quickstart ; do
+  mv %{buildroot}%{_bindir}/sphinx-$B 
%{buildroot}%{_bindir}/sphinx-$B-%{py_ver}
+  touch %{buildroot}%{_bindir}/sphinx-$B
+done
 install -d %{buildroot}%{_mandir}/man1/
-install -m 644 build/sphinx/man/sphinx-*.1 %{buildroot}%{_mandir}/man1/
+for M in all apidoc build quickstart ; do
+  install -m 644 build/sphinx/man/sphinx-$M.1 
%{buildroot}%{_mandir}/man1/sphinx-$M-%{py_ver}.1
+  touch %{buildroot}%{_mandir}/man1/sphinx-$M.1
+done
 %find_lang sphinx
 
 %check
 nosetests
 
+%post
+update-alternatives \
+    --install %{_bindir}/sphinx-apidoc sphinx-apidoc 
%{_bindir}/sphinx-apidoc-%{py_ver} 10 \
+    --slave %{_bindir}/sphinx-build sphinx-build 
%{_bindir}/sphinx-build-%{py_ver} \
+    --slave %{_bindir}/sphinx-autogen sphinx-autogen 
%{_bindir}/sphinx-autogen-%{py_ver} \
+    --slave %{_bindir}/sphinx-quickstart sphinx-quickstart 
%{_bindir}/sphinx-quickstart-%{py_ver} \
+    --slave %{_mandir}/man1/sphinx-all.1.gz sphinx-all.1 
%{_mandir}/sphinx-all-%{py_ver}.1.gz \
+    --slave %{_mandir}/man1/sphinx-apidoc.1.gz sphinx-apidoc.1 
%{_mandir}/sphinx-apidoc-%{py_ver}.1.gz \
+    --slave %{_mandir}/man1/sphinx-build.1.gz sphinx-build.1 
%{_mandir}/sphinx-build-%{py_ver}.1.gz \
+    --slave %{_mandir}/man1/sphinx-quickstart.1.gz sphinx-quickstart.1 
%{_mandir}/sphinx-quickstart-%{py_ver}.1.gz \
+
+%postun
+if [ $1 -eq 0 ] ; then
+  update-alternatives --remove sphinx-build %{_bindir}/sphinx-apidoc-%{py_ver}
+fi
+
 %files -f sphinx.lang
 %defattr(-,root,root,-)
-%doc AUTHORS CHANGES LICENSE README TODO
-%{_bindir}/sphinx-*
-%{_mandir}/man1/sphinx-*
-%{python_sitelib}/*
+%doc AUTHORS CHANGES LICENSE README
+%ghost %attr(0755,root,root) %{_bindir}/sphinx-apidoc
+%{_bindir}/sphinx-apidoc-%{py_ver}
+%ghost %attr(0755,root,root)  %{_bindir}/sphinx-autogen
+%{_bindir}/sphinx-autogen-%{py_ver}
+%ghost %attr(0755,root,root)  %{_bindir}/sphinx-build
+%{_bindir}/sphinx-build-%{py_ver}
+%ghost %attr(0755,root,root)  %{_bindir}/sphinx-quickstart
+%{_bindir}/sphinx-quickstart-%{py_ver}
+%ghost %{_mandir}/man1/sphinx-all.1.gz
+%{_mandir}/man1/sphinx-all-%{py_ver}.1.gz
+%ghost %{_mandir}/man1/sphinx-apidoc.1.gz
+%{_mandir}/man1/sphinx-apidoc-%{py_ver}.1.gz
+%ghost %{_mandir}/man1/sphinx-build.1.gz
+%{_mandir}/man1/sphinx-build-%{py_ver}.1.gz
+%ghost %{_mandir}/man1/sphinx-quickstart.1.gz
+%{_mandir}/man1/sphinx-quickstart-%{py_ver}.1.gz
+%{python_sitelib}/sphinx
+%{python_sitelib}/Sphinx-%{version}-py%{py_ver}.egg-info
 
 %files doc
 %defattr(-,root,root,-)

++++++ python3-Sphinx.spec ++++++
--- /var/tmp/diff_new_pack.HO57lo/_old  2013-05-13 15:28:27.000000000 +0200
+++ /var/tmp/diff_new_pack.HO57lo/_new  2013-05-13 15:28:27.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python3-Sphinx
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 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
@@ -25,15 +25,17 @@
 Group:          Development/Languages/Python
 Source:         
http://pypi.python.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
 Patch0:         python3-Sphinx-docs.patch
-BuildRequires:  fdupes
 BuildRequires:  python3-2to3
-BuildRequires:  python3-Jinja2
 BuildRequires:  python3-devel
 BuildRequires:  python3-distribute
+# Documentation requirements:
+BuildRequires:  python3-Jinja2
 BuildRequires:  python3-docutils
-# Testsuite build requirements:
+# Testsuite requirements:
 BuildRequires:  python3-Pygments
 BuildRequires:  python3-nose
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Requires:       python3-Jinja2
 Requires:       python3-Pygments
 Requires:       python3-distribute
@@ -86,21 +88,56 @@
 
 %install
 python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
+for B in apidoc autogen build quickstart ; do
+  touch %{buildroot}%{_bindir}/sphinx-$B
+done
 install -d %{buildroot}%{_mandir}/man1/
-install -m 644 build/sphinx/man/*.1 %{buildroot}%{_mandir}/man1/
-%fdupes %{buildroot}%{_prefix}
+for M in all apidoc build quickstart ; do
+  install -m 644 build/sphinx/man/sphinx-$M-%{py3_ver}.1 
%{buildroot}%{_mandir}/man1/sphinx-$M-%{py3_ver}.1
+  touch %{buildroot}%{_mandir}/man1/sphinx-$M.1
+done
 %find_lang sphinx
 
 #TODO: Fix
 #%%check
 #nosetests-%{py3_ver}
 
+%post
+update-alternatives \
+    --install %{_bindir}/sphinx-apidoc sphinx-apidoc 
%{_bindir}/sphinx-apidoc-%{py3_ver} 10 \
+    --slave %{_bindir}/sphinx-build sphinx-build 
%{_bindir}/sphinx-build-%{py3_ver} \
+    --slave %{_bindir}/sphinx-autogen sphinx-autogen 
%{_bindir}/sphinx-autogen-%{py3_ver} \
+    --slave %{_bindir}/sphinx-quickstart sphinx-quickstart 
%{_bindir}/sphinx-quickstart-%{py3_ver} \
+    --slave %{_mandir}/man1/sphinx-all.1.gz sphinx-all.1 
%{_mandir}/sphinx-all-%{py3_ver}.1.gz \
+    --slave %{_mandir}/man1/sphinx-apidoc.1.gz sphinx-apidoc.1 
%{_mandir}/sphinx-apidoc-%{py3_ver}.1.gz \
+    --slave %{_mandir}/man1/sphinx-build.1.gz sphinx-build.1 
%{_mandir}/sphinx-build-%{py3_ver}.1.gz \
+    --slave %{_mandir}/man1/sphinx-quickstart.1.gz sphinx-quickstart.1 
%{_mandir}/sphinx-quickstart-%{py3_ver}.1.gz \
+
+%postun
+if [ $1 -eq 0 ] ; then
+  update-alternatives --remove sphinx-build %{_bindir}/sphinx-apidoc-%{py3_ver}
+fi
+
 %files -f sphinx.lang
 %defattr(-,root,root,-)
 %doc AUTHORS CHANGES LICENSE README TODO
-%{_bindir}/sphinx-*-%{py3_ver}
-%{_mandir}/man1/sphinx-*-%{py3_ver}.1.gz
-%{python3_sitelib}/sphinx/
+%ghost %attr(0755,root,root) %{_bindir}/sphinx-apidoc
+%{_bindir}/sphinx-apidoc-%{py3_ver}
+%ghost %attr(0755,root,root)  %{_bindir}/sphinx-autogen
+%{_bindir}/sphinx-autogen-%{py3_ver}
+%ghost %attr(0755,root,root)  %{_bindir}/sphinx-build
+%{_bindir}/sphinx-build-%{py3_ver}
+%ghost %attr(0755,root,root)  %{_bindir}/sphinx-quickstart
+%{_bindir}/sphinx-quickstart-%{py3_ver}
+%ghost %{_mandir}/man1/sphinx-all.1.gz
+%{_mandir}/man1/sphinx-all-%{py3_ver}.1.gz
+%ghost %{_mandir}/man1/sphinx-apidoc.1.gz
+%{_mandir}/man1/sphinx-apidoc-%{py3_ver}.1.gz
+%ghost %{_mandir}/man1/sphinx-build.1.gz
+%{_mandir}/man1/sphinx-build-%{py3_ver}.1.gz
+%ghost %{_mandir}/man1/sphinx-quickstart.1.gz
+%{_mandir}/man1/sphinx-quickstart-%{py3_ver}.1.gz
+%{python3_sitelib}/sphinx
 %{python3_sitelib}/Sphinx-%{version}-py%{py3_ver}.egg-info
 
 %files doc

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to