Hello community,

here is the log from the commit of package translate-toolkit for 
openSUSE:Factory checked in at 2017-12-06 08:55:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/translate-toolkit (Old)
 and      /work/SRC/openSUSE:Factory/.translate-toolkit.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "translate-toolkit"

Wed Dec  6 08:55:21 2017 rev:28 rq:547259 version:2.2.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/translate-toolkit/translate-toolkit.changes      
2017-09-04 12:18:20.723161806 +0200
+++ /work/SRC/openSUSE:Factory/.translate-toolkit.new/translate-toolkit.changes 
2017-12-06 08:56:15.250113387 +0100
@@ -1,0 +2,7 @@
+Tue Nov 14 16:48:52 UTC 2017 - [email protected]
+
+- drop unneeded requirement for python-utidy
+- drop unneeded requirements for diff_match_patch
+- switch to python3
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ translate-toolkit.spec ++++++
--- /var/tmp/diff_new_pack.RrioTc/_old  2017-12-06 08:56:15.978086739 +0100
+++ /var/tmp/diff_new_pack.RrioTc/_new  2017-12-06 08:56:15.982086593 +0100
@@ -30,41 +30,36 @@
 BuildRequires:  gettext-runtime
 BuildRequires:  iso-codes
 # The following are needed for man page and docs generation
-BuildRequires:  python-Babel
-BuildRequires:  python-Levenshtein
-BuildRequires:  python-Sphinx
-BuildRequires:  python-beautifulsoup4
-BuildRequires:  python-devel >= 2.7
-BuildRequires:  python-diff_match_patch
-BuildRequires:  python-iniparse
-BuildRequires:  python-lxml >= 3.5.0
-BuildRequires:  python-lxml-doc
-BuildRequires:  python-pyenchant
-BuildRequires:  python-pytest
-BuildRequires:  python-six
-BuildRequires:  python-utidy
-BuildRequires:  python-xml
+BuildRequires:  python3-Babel
+BuildRequires:  python3-Levenshtein
+BuildRequires:  python3-Sphinx
+BuildRequires:  python3-beautifulsoup4
+BuildRequires:  python3-devel >= 2.7
+BuildRequires:  python3-iniparse
+BuildRequires:  python3-lxml >= 3.5.0
+BuildRequires:  python3-lxml-doc
+BuildRequires:  python3-pyenchant
+BuildRequires:  python3-pytest
+BuildRequires:  python3-six
+BuildRequires:  python3-xml
 Requires:       gettext-runtime
-Requires:       python-diff_match_patch
-Requires:       python-lxml
-Requires:       python-pycountry
-Requires:       python-pyenchant
-Requires:       python-setuptools
-Requires:       python-six
+Requires:       python3-lxml
+Requires:       python3-pycountry
+Requires:       python3-pyenchant
+Requires:       python3-setuptools
+Requires:       python3-six
 # The following are for the full experience of translate-toolkit
 Recommends:     gaupol
 Recommends:     iso-codes
-Recommends:     python-chardet
-Recommends:     python-Levenshtein
-Recommends:     python-aeidon
-Recommends:     python-iniparse
-Recommends:     python-utidy
-Recommends:     python-PyYAML
+Recommends:     python3-chardet
+Recommends:     python3-Levenshtein
+Recommends:     python3-aeidon
+Recommends:     python3-iniparse
+Recommends:     python3-PyYAML
 Recommends:     vobject
-Provides:       python-translate-toolkit = %{version}
+Provides:       python3-translate-toolkit = %{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
-%py_requires
 
 %description
 The Translate Toolkit is a set of software and documentation designed to help
@@ -101,8 +96,10 @@
 %setup -n %{name}-%{version} -q
 %patch0 -p1
 sed -i 296"s|'share'|'translate/share'|" setup.py
-# fix for bnc#750652 - remove Apache-2.0 file - difflib is the fallback 
solution - added diff_match_patch as a required package
+# fix for bnc#750652 - remove Apache-2.0 file - difflib is the fallback 
solution
 rm translate/misc/diff_match_patch.py*
+# drop requirements for diff-match-patch
+sed -i '/diff-match-patch/d' requirements/required.txt
 
 # Remove build cache (causes problems with different Sphinx and/or 
architecture)
 rm -rf docs/_build
@@ -118,7 +115,7 @@
 sed -i 's/\r//' docs/_themes/sphinx-bootstrap/static/jquery.js
 
 %build
-python setup.py build
+python3 setup.py build
 pushd docs
 # Can't use parallel build here!
 make html man
@@ -128,7 +125,7 @@
 popd
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
 # create manpages
 mkdir -p %{buildroot}/%{_mandir}/man1
@@ -147,9 +144,9 @@
 
 # move documentation files to datadir
 install -d -m 755 %{buildroot}%{_defaultdocdir}/%{name}
-mv %{buildroot}%{python_sitelib}/translate/docs/_build/html 
%{buildroot}%{_defaultdocdir}/%{name}
-rm -rf %{buildroot}%{python_sitelib}/translate/docs
-rm -rf %{buildroot}/home/abuild/.local/lib/python%{py_ver}/site-packages/
+mv %{buildroot}%{python3_sitelib}/translate/docs/_build/html 
%{buildroot}%{_defaultdocdir}/%{name}
+rm -rf %{buildroot}%{python3_sitelib}/translate/docs
+rm -rf 
%{buildroot}/home/abuild/.local/lib/python%{python3_version}/site-packages/
 
 # create symlinks for man pages
 %fdupes -s %{buildroot}/%{_mandir}
@@ -164,8 +161,8 @@
 %doc COPYING README.rst
 %{_bindir}/*
 %{_mandir}/man1/*
-%{python_sitelib}/translate
-%{python_sitelib}/translate_toolkit-%{version}-py%{py_ver}.egg-info
+%{python3_sitelib}/translate
+%{python3_sitelib}/translate_toolkit-%{version}-*.egg-info
 
 %files devel-doc
 %defattr(-,root,root)


Reply via email to