Hello community,

here is the log from the commit of package python3-bpython for openSUSE:Factory 
checked in at 2016-10-20 23:07:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-bpython (Old)
 and      /work/SRC/openSUSE:Factory/.python3-bpython.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-bpython"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-bpython/python3-bpython.changes  
2016-03-09 15:17:01.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python3-bpython.new/python3-bpython.changes     
2016-10-20 23:07:21.000000000 +0200
@@ -1,0 +2,21 @@
+Wed Aug 24 14:32:06 UTC 2016 - toddrme2...@gmail.com
+
+- Specfile cleanups to make it easier to compare with python2
+  version.
+
+-------------------------------------------------------------------
+Mon Aug 15 14:51:56 UTC 2016 - toddrme2...@gmail.com
+
+- Fix update-alternatives implementation.
+- Split documentation into own subpackage.
+
+-------------------------------------------------------------------
+Fri Jul 15 20:36:45 UTC 2016 - badshah...@gmail.com
+
+- Do not drop Icon reference from .desktop file, it is actually
+  installed in /usr/share/pixmaps; instead change the icon file
+  name to bpython3.
+- Correct the reference to .desktop file in appdata.xml: should
+  be bpython3.desktop instead of bpython.desktop.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python3-bpython.spec ++++++
--- /var/tmp/diff_new_pack.5KVqTn/_old  2016-10-20 23:07:22.000000000 +0200
+++ /var/tmp/diff_new_pack.5KVqTn/_new  2016-10-20 23:07:22.000000000 +0200
@@ -40,10 +40,9 @@
 Requires:       python3-greenlet
 Requires:       python3-jedi
 Requires:       python3-pyparsing
-Requires:       python3-setuptools
 Requires:       python3-six
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(preun): update-alternatives
 BuildArch:      noarch
 
 %description
@@ -54,42 +53,57 @@
 submit your code and return a URL. Its goal is to bring together a few handy
 ideas to enhance the standard interpreter without getting carried away.
 
+%package doc
+Summary:        Documentation for %{name}
+Group:          Documentation/HTML
+Recommends:     %{name} = %{version}
+
+%description doc
+Documentation and help files for %{name}.
+
 %prep
 %setup -q -n bpython-%{version}
-# Drop non-existing icon reference
-sed -i -e "/Icon.*/d" \
-       -e "s/bpython/bpython-%{py3_ver}/g" data/bpython.desktop
+
 mv data/bpython.desktop data/bpython3.desktop
 mv data/bpython.png data/bpython3.png
 mv data/bpython.appdata.xml data/bpython3.appdata.xml
-sed -i -e "s/bpython.desktop/bpython3.desktop/" \
-       -e "s/bpython.png/bpython3.png/" \
-       -e "s/bpython.appdata.xml/bpython3.appdata.xml/"  setup.py
+
+sed -i -e "s|Icon=bpython|Icon=bpython3|" \
+       -e "s|Exec=/usr/bin/bpython|Exec=bpython-%{py3_ver}|" 
data/bpython3.desktop
+sed -i "s|bpython.desktop|bpython3.desktop|" data/bpython3.appdata.xml
+sed -i -e "s|bpython.desktop|bpython3.desktop|" \
+       -e "s|bpython.png|bpython3.png|" \
+       -e "s|bpython.appdata.xml|bpython3.appdata.xml|" setup.py
 
 %build
 export LC_ALL=en_US.utf8
 python3 setup.py build
 python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo # HTML 
documentation
 
+gzip build/man/bpython.1
+gzip build/man/bpython-config.5
+
 %install
 export LC_ALL=en_US.utf8
 python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
 mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-for p in bpython bpython-urwid bpython-curses bpdb; do
+for p in bpdb bpython bpython-urwid bpython-curses ; do
     mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py3_ver}
     ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
-    touch %{buildroot}%{_sysconfdir}/alternatives/$p
 done
+
 install -d %{buildroot}%{_mandir}/man1/
 install -m 644 build/man/bpython.1 
%{buildroot}%{_mandir}/man1/bpython-%{py3_ver}.1
+gzip %{buildroot}%{_mandir}/man1/bpython.1
+mv %{buildroot}%{_mandir}/man1/bpython.1.gz 
%{buildroot}%{_mandir}/man1/bpython-%{py3_ver}.1.gz
 ln -s -f %{_sysconfdir}/alternatives/bpython.1.gz 
%{buildroot}%{_mandir}/man1/bpython.1.gz
-touch %{buildroot}%{_sysconfdir}/alternatives/bpython.1.gz
 
 install -d %{buildroot}%{_mandir}/man5/
 install -m 644 build/man/bpython-config.5 
%{buildroot}%{_mandir}/man5/bpython-config-%{py3_ver}.5
+gzip %{buildroot}%{_mandir}/man5/bpython-config.5
+mv %{buildroot}%{_mandir}/man5/bpython-config.5.gz 
%{buildroot}%{_mandir}/man5/bpython-config-%{py3_ver}.5.gz
 ln -s -f %{_sysconfdir}/alternatives/bpython-config.5.gz 
%{buildroot}%{_mandir}/man5/bpython-config.5.gz
-touch %{buildroot}%{_sysconfdir}/alternatives/bpython-config.5.gz
 
 rm -r %{buildroot}%{python3_sitelib}/bpython/test # Don't ship tests
 %if 0%{?suse_version}
@@ -101,9 +115,9 @@
 #nosetests
 
 %post
-update-alternatives \
+%_sbindir/update-alternatives \
     --install %{_bindir}/bpython bpython %{_bindir}/bpython-%{py3_ver} 30 \
-    --slave %{_bindir}/bpbd bpbd %{_bindir}/bpbd-%{py3_ver} \
+    --slave %{_bindir}/bpdb bpdb %{_bindir}/bpdb-%{py3_ver} \
     --slave %{_bindir}/bpython-curses bpython-curses 
%{_bindir}/bpython-curses-%{py3_ver} \
     --slave %{_bindir}/bpython-urwid bpython-urwid 
%{_bindir}/bpython-urwid-%{py3_ver} \
     --slave %{_mandir}/man1/bpython.1.gz bpython.1.gz 
%{_mandir}/man1/bpython-%{py3_ver}.1.gz \
@@ -111,38 +125,42 @@
 
 %preun
 if [ $1 -eq 0 ] ; then
-    update-alternatives --remove bpython %{_bindir}/bpython-%{py3_ver}
+    %_sbindir/update-alternatives --remove bpython 
%{_bindir}/bpython-%{py3_ver}
 fi
 
 %files
 %defattr(-,root,root)
-%doc AUTHORS CHANGELOG LICENSE README.rst build/sphinx/html
-%{_bindir}/bpython
-%{_bindir}/bpython-%{py3_ver}
+%doc AUTHORS CHANGELOG LICENSE README.rst
 %{_bindir}/bpdb
-%{_bindir}/bpdb-%{py3_ver}
+%{_bindir}/bpython
 %{_bindir}/bpython-curses
-%{_bindir}/bpython-curses-%{py3_ver}
 %{_bindir}/bpython-urwid
+%{_bindir}/bpdb-%{py3_ver}
+%{_bindir}/bpython-%{py3_ver}
+%{_bindir}/bpython-curses-%{py3_ver}
 %{_bindir}/bpython-urwid-%{py3_ver}
-%{python3_sitelib}/bpdb
-%{python3_sitelib}/bpython-%{version}-py%{py3_ver}.egg-info
-%{python3_sitelib}/bpython
-%{_mandir}/man1/bpython.1.gz
-%{_mandir}/man1/bpython-%{py3_ver}.1.gz
-%{_mandir}/man5/bpython-config.5.gz
-%{_mandir}/man5/bpython-config-%{py3_ver}.5.gz
 %ghost %{_sysconfdir}/alternatives/bpdb
 %ghost %{_sysconfdir}/alternatives/bpython
 %ghost %{_sysconfdir}/alternatives/bpython-curses
 %ghost %{_sysconfdir}/alternatives/bpython-urwid
+%{_mandir}/man1/bpython.1.gz
+%{_mandir}/man5/bpython-config.5.gz
+%{_mandir}/man1/bpython-%{py3_ver}.1.gz
+%{_mandir}/man5/bpython-config-%{py3_ver}.5.gz
 %ghost %{_sysconfdir}/alternatives/bpython.1.gz
 %ghost %{_sysconfdir}/alternatives/bpython-config.5.gz
-%{_datadir}/applications/bpython3.desktop
-%if %{suse_version} == 1310 || %{suse_version} == 1315
+%{python3_sitelib}/bpdb
+%{python3_sitelib}/bpython-%{version}-py*.egg-info
+%{python3_sitelib}/bpython/
+%if %{suse_version} <= 1315
 %dir %{_datadir}/appdata
 %endif
 %{_datadir}/appdata/bpython3.appdata.xml
+%{_datadir}/applications/bpython3.desktop
 %{_datadir}/pixmaps/bpython3.png
 
+%files doc
+%defattr(-,root,root)
+%doc build/sphinx/html
+
 %changelog


Reply via email to