Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2017-04-20 20:49:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-chardet" Thu Apr 20 20:49:17 2017 rev:19 rq:483137 version:2.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2017-02-09 11:17:15.561125927 +0100 +++ /work/SRC/openSUSE:Factory/.python-chardet.new/python-chardet.changes 2017-04-20 20:49:18.737858647 +0200 @@ -1,0 +2,10 @@ +Tue Mar 21 13:57:55 UTC 2017 - [email protected] + +- do not use %py_ver, replace with %python_version + +------------------------------------------------------------------- +Sun Mar 19 08:23:54 UTC 2017 - [email protected] + +- Converted to single spec. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-chardet.spec ++++++ --- /var/tmp/diff_new_pack.hJo5XQ/_old 2017-04-20 20:49:19.353771560 +0200 +++ /var/tmp/diff_new_pack.hJo5XQ/_new 2017-04-20 20:49:19.357770994 +0200 @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-chardet Version: 2.3.0 Release: 0 @@ -25,14 +26,13 @@ Url: https://github.com/chardet/chardet Source0: chardet-%{version}.tar.bz2 Source1: python-chardet-rpmlintrc -BuildRequires: python-devel -BuildRequires: python-setuptools -Requires(post): update-alternatives -Requires(postun): update-alternatives +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} > 1110 BuildArch: noarch -%endif +%python_subpackages %description Universal character encoding detector @@ -67,32 +67,20 @@ %setup -q -n chardet-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -# update-alternatives -mv %{buildroot}%{_bindir}/chardetect %{buildroot}%{_bindir}/chardetect-%{py_ver} -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -touch %{buildroot}%{_sysconfdir}/alternatives/chardetect -ln -sf %{_sysconfdir}/alternatives/chardetect %{buildroot}%{_bindir}/chardetect +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} %check -python setup.py test +%python_exec setup.py test -%post - update-alternatives --install %{_bindir}/chardetect chardetect %{_bindir}/chardetect-%{py_ver} 30 - -%postun -if [ $1 -eq 0 ] ; then - update-alternatives --remove chardetect %{_bindir}/chardetect-%{py_ver} -fi - -%files +%files %{python_files} %defattr(-,root,root,-) -%{python_sitelib}/* -%{_bindir}/chardetect -%{_bindir}/chardetect-%{py_ver} -%ghost %{_sysconfdir}/alternatives/chardetect +%doc README.rst +%python3_only %{_bindir}/chardetect +%{python_sitelib}/chardet +%{python_sitelib}/chardet-%{version}-py%{python_version}.egg-info %changelog
