Hello community,

here is the log from the commit of package python-py2pack for openSUSE:Factory 
checked in at 2017-05-27 13:14:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-py2pack (Old)
 and      /work/SRC/openSUSE:Factory/.python-py2pack.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-py2pack"

Sat May 27 13:14:23 2017 rev:40 rq:492681 version:0.8.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-py2pack/python-py2pack.changes    
2017-04-20 20:48:51.865658249 +0200
+++ /work/SRC/openSUSE:Factory/.python-py2pack.new/python-py2pack.changes       
2017-05-27 13:14:31.376095914 +0200
@@ -1,0 +2,6 @@
+Thu Apr 27 15:53:20 UTC 2017 - toddrme2...@gmail.com
+
+- Fix source URL.
+- Implement single-spec version.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-py2pack.spec ++++++
--- /var/tmp/diff_new_pack.Virpmh/_old  2017-05-27 13:14:31.968012230 +0200
+++ /var/tmp/diff_new_pack.Virpmh/_new  2017-05-27 13:14:31.972011665 +0200
@@ -16,6 +16,7 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-py2pack
 Version:        0.8.0
 Release:        0
@@ -23,23 +24,25 @@
 Summary:        Generate distribution packages from Python packages on PyPI
 License:        Apache-2.0
 Group:          Development/Languages/Python
-Source:         
https://pypi.io/packages/source/p/py2pack/py2pack-%{version}.tar.gz
+Source:         
https://files.pythonhosted.org/packages/source/p/py2pack/py2pack-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-Jinja2
-BuildRequires:  python-Sphinx
-BuildRequires:  python-devel
-BuildRequires:  python-metaextract
-BuildRequires:  python-pbr
-BuildRequires:  python-six
-BuildRequires:  python-sphinxcontrib-programoutput
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module Jinja2}
+BuildRequires:  %{python_module Sphinx}
+BuildRequires:  %{python_module metaextract}
+BuildRequires:  %{python_module pbr}
+BuildRequires:  %{python_module six}
+BuildRequires:  %{python_module sphinxcontrib-programoutput}
 Requires:       python-Jinja2
 Requires:       python-metaextract
 Requires:       python-pbr
 Requires:       python-setuptools
 Requires:       python-six
-Requires(post): update-alternatives
-Requires(postun): update-alternatives
 BuildArch:      noarch
+%python_subpackages
 
 %description
 This script allows to generate RPM spec or DEB dsc files from Python modules.
@@ -47,44 +50,34 @@
 (PyPI). Conveniently, it can fetch tarballs and changelogs making it an
 universal tool to package Python modules.
 
+%package -n %{name}-doc
+Summary:        Documentation for %{name}
+Provides:       %{python_module py2pack-doc = %{version}}
+
+%description -n %{name}-doc
+Documentation and help files for %{name}.
+
 %prep
 %setup -q -n py2pack-%{version}
 
 %build
-python setup.py build
-python setup.py build_sphinx
+%python_build
+python3 setup.py build_sphinx
 # remove the sphinx-build leftovers
 rm -rf doc/build/html/.{doctrees,buildinfo}
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-
-# Prepare for update-alternatives usage
-mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-mv %{buildroot}%{_bindir}/py2pack %{buildroot}%{_bindir}/py2pack-%{py_ver}
-ln -s -f %{_sysconfdir}/alternatives/py2pack %{buildroot}%{_bindir}/py2pack
-
-# create dummy targets
-touch %{buildroot}%{_sysconfdir}/alternatives/py2pack
-touch %{buildroot}%{_sysconfdir}/alternatives/py2pack.1.gz
-
-%post
-%_sbindir/update-alternatives \
-   --install %{_bindir}/py2pack py2pack %{_bindir}/py2pack-%{py_ver} 30
-
-%postun
-if [ $1 -eq 0 ] ; then
-    %_sbindir/update-alternatives --remove py2pack %{_bindir}/py2pack-%{py_ver}
-fi
+%python_install
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
-%doc AUTHORS LICENSE README.rst doc/build/html
-%{_bindir}/py2pack
-%{_bindir}/py2pack-%{py_ver}
-%ghost %{_sysconfdir}/alternatives/py2pack
-%ghost %{_sysconfdir}/alternatives/py2pack.1.gz
+%python3_only %{_bindir}/py2pack
 %{python_sitelib}/py2pack-%{version}-py*.egg-info
-%{python_sitelib}/py2pack
+%{python_sitelib}/py2pack/
+
+%files -n %{name}-doc
+%defattr(-,root,root,-)
+%doc AUTHORS LICENSE
+%doc doc/build/html/
 
 %changelog


Reply via email to