Hello community,

here is the log from the commit of package python-Scrapy for openSUSE:Factory 
checked in at 2020-05-19 14:58:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Scrapy (Old)
 and      /work/SRC/openSUSE:Factory/.python-Scrapy.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Scrapy"

Tue May 19 14:58:12 2020 rev:7 rq:807286 version:2.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Scrapy/python-Scrapy.changes      
2020-04-02 17:43:42.857412703 +0200
+++ /work/SRC/openSUSE:Factory/.python-Scrapy.new.2738/python-Scrapy.changes    
2020-05-19 14:58:26.117394165 +0200
@@ -1,0 +2,5 @@
+Tue May 19 09:27:53 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-Scrapy.spec ++++++
--- /var/tmp/diff_new_pack.nGufM8/_old  2020-05-19 14:58:27.789397873 +0200
+++ /var/tmp/diff_new_pack.nGufM8/_new  2020-05-19 14:58:27.793397882 +0200
@@ -64,6 +64,8 @@
 Requires:       python-setuptools
 Requires:       python-w3lib >= 1.17.2
 Requires:       python-zope.interface >= 4.1.3
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 %python_subpackages
 
@@ -87,12 +89,12 @@
 %build
 %python_build
 pushd docs
-make %{?_smp_mflags} html && rm -r build/html/.buildinfo
+%make_build html && rm -r build/html/.buildinfo
 popd
 
 %install
 %python_install
-%python_clone %{buildroot}%{_bindir}/scrapy
+%python_clone -a %{buildroot}%{_bindir}/scrapy
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -108,12 +110,17 @@
     -W ignore::DeprecationWarning \
     tests}
 
+%post
+%python_install_alternative scrapy
+
+%postun
+%python_uninstall_alternative scrapy
+
 %files %{python_files}
 %license LICENSE
 %doc AUTHORS README.rst
 %{python_sitelib}/*
-%{_bindir}/scrapy-%{python_bin_suffix}
-%python3_only %{_bindir}/scrapy
+%python_alternative %{_bindir}/scrapy
 
 %files -n %{name}-doc
 %doc docs/build/html


Reply via email to