commit python-chardet for openSUSE:Factory
Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2019-11-04 17:10:09 Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new.2990 (New) Package is "python-chardet" Mon Nov 4 17:10:09 2019 rev:27 rq:743978 version:3.0.4 Changes: --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2019-07-05 13:48:17.329413582 +0200 +++ /work/SRC/openSUSE:Factory/.python-chardet.new.2990/python-chardet.changes 2019-11-04 17:10:10.512502707 +0100 @@ -1,0 +2,5 @@ +Mon Oct 14 11:45:00 UTC 2019 - Matej Cepl + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + +--- Other differences: -- ++ python-chardet.spec ++ --- /var/tmp/diff_new_pack.RKrV8h/_old 2019-11-04 17:10:12.092504395 +0100 +++ /var/tmp/diff_new_pack.RKrV8h/_new 2019-11-04 17:10:12.116504421 +0100 @@ -30,7 +30,6 @@ Release:0 Summary:Universal encoding detector License:LGPL-2.1-or-later -Group: Development/Languages/Python URL:https://github.com/chardet/chardet Source0: https://files.pythonhosted.org/packages/source/c/chardet/chardet-%{version}.tar.gz Source1:python-chardet-rpmlintrc @@ -87,7 +86,7 @@ %if !%{with test} %{python_expand %$python_install mv %{buildroot}%{_bindir}/chardetect %{buildroot}%{_bindir}/chardetect-%{$python_bin_suffix} -%fdupes -s %{buildroot}%{$python_sitelib} +%fdupes %{buildroot}%{$python_sitelib} } %prepare_alternative chardetect %endif
commit python-chardet for openSUSE:Factory
Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2019-07-05 13:48:16 Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new.4615 (New) Package is "python-chardet" Fri Jul 5 13:48:16 2019 rev:26 rq:713178 version:3.0.4 Changes: --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2019-02-26 22:16:08.674196156 +0100 +++ /work/SRC/openSUSE:Factory/.python-chardet.new.4615/python-chardet.changes 2019-07-05 13:48:17.329413582 +0200 @@ -1,0 +2,6 @@ +Wed Jul 3 08:32:17 UTC 2019 - Tomáš Chvátal + +- Add patch to fix build with pytest4: + * pytest4.patch + +--- New: pytest4.patch Other differences: -- ++ python-chardet.spec ++ --- /var/tmp/diff_new_pack.RV8rtD/_old 2019-07-05 13:48:17.945414532 +0200 +++ /var/tmp/diff_new_pack.RV8rtD/_new 2019-07-05 13:48:17.949414538 +0200 @@ -34,6 +34,7 @@ URL:https://github.com/chardet/chardet Source0: https://files.pythonhosted.org/packages/source/c/chardet/chardet-%{version}.tar.gz Source1:python-chardet-rpmlintrc +Patch0: pytest4.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -77,6 +78,7 @@ %prep %setup -q -n chardet-%{version} +%patch0 -p1 %build %python_build @@ -92,7 +94,7 @@ %check %if %{with test} -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} test.py +%pytest test.py %endif %if !%{with test} ++ pytest4.patch ++ >From 0561ddcedcd12ea1f98b7ddedb93686ed8a5ffa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 12 Mar 2019 18:44:36 +0100 Subject: [PATCH] Support pytest 4, don't apply marks directly to parameters Fixes https://github.com/chardet/chardet/issues/173 --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.py b/test.py index 9833307..ad2b753 100644 --- a/test.py +++ b/test.py @@ -59,7 +59,7 @@ def gen_test_params(): full_path = join(path, file_name) test_case = full_path, encoding if full_path in EXPECTED_FAILURES: -test_case = pytest.mark.xfail(test_case) +test_case = pytest.param(*test_case, marks=pytest.mark.xfail) yield test_case
commit python-chardet for openSUSE:Factory
Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2019-02-26 22:16:05 Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new.28833 (New) Package is "python-chardet" Tue Feb 26 22:16:05 2019 rev:25 rq:679159 version:3.0.4 Changes: --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2018-12-27 00:26:25.307808838 +0100 +++ /work/SRC/openSUSE:Factory/.python-chardet.new.28833/python-chardet.changes 2019-02-26 22:16:08.674196156 +0100 @@ -1,0 +2,5 @@ +Tue Feb 26 08:14:25 UTC 2019 - Tomáš Chvátal + +- Switch to multibuild to avoid buildcycles + +--- New: _multibuild Other differences: -- ++ python-chardet.spec ++ --- /var/tmp/diff_new_pack.uzhQri/_old 2019-02-26 22:16:09.386195914 +0100 +++ /var/tmp/diff_new_pack.uzhQri/_new 2019-02-26 22:16:09.390195913 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-chardet # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-chardet +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-chardet%{psuffix} Version:3.0.4 Release:0 Summary:Universal encoding detector @@ -26,14 +34,16 @@ URL:https://github.com/chardet/chardet Source0: https://files.pythonhosted.org/packages/source/c/chardet/chardet-%{version}.tar.gz Source1:python-chardet-rpmlintrc -BuildRequires: %{python_module hypothesis} -BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module pytest-runner} +%endif %python_subpackages %description @@ -72,17 +82,20 @@ %python_build %install -%python_install +%if !%{with test} %{python_expand %$python_install mv %{buildroot}%{_bindir}/chardetect %{buildroot}%{_bindir}/chardetect-%{$python_bin_suffix} %fdupes -s %{buildroot}%{$python_sitelib} } - %prepare_alternative chardetect +%endif %check +%if %{with test} %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} test.py +%endif +%if !%{with test} %post %python_install_alternative chardetect @@ -94,5 +107,6 @@ %python_alternative %{_bindir}/chardetect %{python_sitelib}/chardet %{python_sitelib}/chardet-%{version}-py%{python_version}.egg-info +%endif %changelog ++ _multibuild ++ test
commit python-chardet for openSUSE:Factory
Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2018-12-27 00:25:55 Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new.28833 (New) Package is "python-chardet" Thu Dec 27 00:25:55 2018 rev:24 rq:659382 version:3.0.4 Changes: --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2018-05-23 16:04:44.631559857 +0200 +++ /work/SRC/openSUSE:Factory/.python-chardet.new.28833/python-chardet.changes 2018-12-27 00:26:25.307808838 +0100 @@ -1,0 +2,5 @@ +Tue Dec 4 12:49:12 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +--- Other differences: -- ++ python-chardet.spec ++ --- /var/tmp/diff_new_pack.n4s0z7/_old 2018-12-27 00:26:25.683808531 +0100 +++ /var/tmp/diff_new_pack.n4s0z7/_new 2018-12-27 00:26:25.687808528 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-chardet # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -21,22 +21,19 @@ Version:3.0.4 Release:0 Summary:Universal encoding detector -License:LGPL-2.1+ +License:LGPL-2.1-or-later Group: Development/Languages/Python -Url:https://github.com/chardet/chardet +URL:https://github.com/chardet/chardet Source0: https://files.pythonhosted.org/packages/source/c/chardet/chardet-%{version}.tar.gz Source1:python-chardet-rpmlintrc -BuildRequires: %{python_module devel} BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch Requires(post): update-alternatives Requires(postun): update-alternatives - +BuildArch: noarch %python_subpackages %description @@ -93,7 +90,6 @@ %python_uninstall_alternative chardetect %files %{python_files} -%defattr(-,root,root,-) %doc README.rst %python_alternative %{_bindir}/chardetect %{python_sitelib}/chardet
commit python-chardet for openSUSE:Factory
Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2018-05-23 16:04:41 Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new (New) Package is "python-chardet" Wed May 23 16:04:41 2018 rev:23 rq:607708 version:3.0.4 Changes: --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2017-09-25 13:54:00.780449387 +0200 +++ /work/SRC/openSUSE:Factory/.python-chardet.new/python-chardet.changes 2018-05-23 16:04:44.631559857 +0200 @@ -1,0 +2,5 @@ +Tue May 15 07:02:02 UTC 2018 - antoine.belv...@opensuse.org + +- Fix update-alternatives call in %postun. + +--- Other differences: -- ++ python-chardet.spec ++ --- /var/tmp/diff_new_pack.fNoqKT/_old 2018-05-23 16:04:45.455529669 +0200 +++ /var/tmp/diff_new_pack.fNoqKT/_new 2018-05-23 16:04:45.459529523 +0200 @@ -90,7 +90,7 @@ %python_install_alternative chardetect %postun -%python_install_alternative chardetect +%python_uninstall_alternative chardetect %files %{python_files} %defattr(-,root,root,-)
commit python-chardet for openSUSE:Factory
Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2017-09-25 13:53:59 Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new (New) Package is "python-chardet" Mon Sep 25 13:53:59 2017 rev:22 rq:527624 version:3.0.4 Changes: --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2017-09-04 12:19:35.276680939 +0200 +++ /work/SRC/openSUSE:Factory/.python-chardet.new/python-chardet.changes 2017-09-25 13:54:00.780449387 +0200 @@ -1,0 +2,5 @@ +Wed Sep 20 21:47:30 UTC 2017 - dmuel...@suse.com + +- add update-alternatives post-requires + +--- Other differences: -- ++ python-chardet.spec ++ --- /var/tmp/diff_new_pack.lbXna6/_old 2017-09-25 13:54:01.320373421 +0200 +++ /var/tmp/diff_new_pack.lbXna6/_new 2017-09-25 13:54:01.320373421 +0200 @@ -24,7 +24,7 @@ License:LGPL-2.1+ Group: Development/Languages/Python Url:https://github.com/chardet/chardet -Source0: https://pypi.io/packages/source/c/chardet/chardet-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/c/chardet/chardet-%{version}.tar.gz Source1:python-chardet-rpmlintrc BuildRequires: %{python_module devel} BuildRequires: %{python_module hypothesis} @@ -34,6 +34,9 @@ BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +Requires(post): update-alternatives +Requires(postun): update-alternatives + %python_subpackages %description
commit python-chardet for openSUSE:Factory
Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2017-09-04 12:19:31 Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new (New) Package is "python-chardet" Mon Sep 4 12:19:31 2017 rev:21 rq:519333 version:3.0.4 Changes: --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2017-07-04 11:56:19.518839060 +0200 +++ /work/SRC/openSUSE:Factory/.python-chardet.new/python-chardet.changes 2017-09-04 12:19:35.276680939 +0200 @@ -1,0 +2,10 @@ +Fri Aug 25 13:09:48 UTC 2017 - tbecht...@suse.com + +- Fix build for Leap-42.3 + +--- +Tue Aug 15 09:57:21 UTC 2017 - dmuel...@suse.com + +- add update-alternative support for py2/py3 coinstallability + +--- Other differences: -- ++ python-chardet.spec ++ --- /var/tmp/diff_new_pack.vOhcmN/_old 2017-09-04 12:19:37.304395877 +0200 +++ /var/tmp/diff_new_pack.vOhcmN/_new 2017-09-04 12:19:37.308395315 +0200 @@ -73,15 +73,26 @@ %install %python_install -%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%{python_expand %$python_install +mv %{buildroot}%{_bindir}/chardetect %{buildroot}%{_bindir}/chardetect-%{$python_bin_suffix} +%fdupes -s %{buildroot}%{$python_sitelib} +} + +%prepare_alternative chardetect %check -%python_exec setup.py test +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} test.py + +%post +%python_install_alternative chardetect + +%postun +%python_install_alternative chardetect %files %{python_files} %defattr(-,root,root,-) %doc README.rst -%python3_only %{_bindir}/chardetect +%python_alternative %{_bindir}/chardetect %{python_sitelib}/chardet %{python_sitelib}/chardet-%{version}-py%{python_version}.egg-info
commit python-chardet for openSUSE:Factory
Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2017-07-04 11:56:17 Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new (New) Package is "python-chardet" Tue Jul 4 11:56:17 2017 rev:20 rq:507075 version:3.0.4 Changes: --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2017-04-20 20:49:18.737858647 +0200 +++ /work/SRC/openSUSE:Factory/.python-chardet.new/python-chardet.changes 2017-07-04 11:56:19.518839060 +0200 @@ -1,0 +2,10 @@ +Thu Jun 29 08:43:41 UTC 2017 - ec...@opensuse.org + +- fix source link + +--- +Sat Jun 10 08:39:04 UTC 2017 - dmuel...@suse.com + +- update to 3.0.4 + +--- Old: chardet-2.3.0.tar.bz2 New: chardet-3.0.4.tar.gz Other differences: -- ++ python-chardet.spec ++ --- /var/tmp/diff_new_pack.6HNXqO/_old 2017-07-04 11:56:20.082759701 +0200 +++ /var/tmp/diff_new_pack.6HNXqO/_new 2017-07-04 11:56:20.082759701 +0200 @@ -18,15 +18,17 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-chardet -Version:2.3.0 +Version:3.0.4 Release:0 Summary:Universal encoding detector License:LGPL-2.1+ Group: Development/Languages/Python Url:https://github.com/chardet/chardet -Source0:chardet-%{version}.tar.bz2 +Source0: https://pypi.io/packages/source/c/chardet/chardet-%{version}.tar.gz Source1:python-chardet-rpmlintrc BuildRequires: %{python_module devel} +BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros
commit python-chardet for openSUSE:Factory
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 - jmate...@suse.com + +- do not use %py_ver, replace with %python_version + +--- +Sun Mar 19 08:23:54 UTC 2017 - aloi...@gmx.com + +- 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
commit python-chardet for openSUSE:Factory
Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2017-02-09 11:17:14 Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new (New) Package is "python-chardet" Changes: --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2015-05-19 23:42:18.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-chardet.new/python-chardet.changes 2017-02-09 11:17:15.561125927 +0100 @@ -1,0 +2,5 @@ +Mon Jan 30 21:41:47 UTC 2017 - rjsch...@suse.com + +- Include in SLE 12 (bsc#1002895, FATE#321630) + +--- Other differences: -- ++ python-chardet.spec ++ --- /var/tmp/diff_new_pack.E8uOyH/_old 2017-02-09 11:17:15.937072723 +0100 +++ /var/tmp/diff_new_pack.E8uOyH/_new 2017-02-09 11:17:15.937072723 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-chardet # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed
commit python-chardet for openSUSE:Factory
Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2015-05-19 23:42:16 Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new (New) Package is "python-chardet" Changes: --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2015-02-18 12:08:52.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-chardet.new/python-chardet.changes 2015-05-19 23:42:18.0 +0200 @@ -1,0 +2,7 @@ +Mon May 11 05:49:58 UTC 2015 - a...@gmx.de + +- specfile: + * added update alternative to prevent conflicts with python3 version + * add tests + +--- Other differences: -- ++ python-chardet.spec ++ --- /var/tmp/diff_new_pack.HHH3Ol/_old 2015-05-19 23:42:19.0 +0200 +++ /var/tmp/diff_new_pack.HHH3Ol/_new 2015-05-19 23:42:19.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-chardet # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,6 +27,8 @@ Source1:python-chardet-rpmlintrc BuildRequires: python-devel BuildRequires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} > 1110 BuildArch: noarch @@ -69,10 +71,28 @@ %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 + +%check +python 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 %defattr(-,root,root,-) %{python_sitelib}/* %{_bindir}/chardetect +%{_bindir}/chardetect-%{py_ver} +%ghost %{_sysconfdir}/alternatives/chardetect %changelog
commit python-chardet for openSUSE:Factory
Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2015-02-18 11:39:29 Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new (New) Package is "python-chardet" Changes: --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2013-10-25 11:18:42.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-chardet.new/python-chardet.changes 2015-02-18 12:08:52.0 +0100 @@ -1,0 +2,13 @@ +Tue Feb 10 23:45:01 UTC 2015 - aloi...@gmx.com + +- Update to version 2.3.0 + * Added support for CP932 detection (thanks to @hashy) + * Fixed an issue where UTF-8 with a BOM would not be detected +as UTF-8-SIG (#8) + * Modified chardetect to use argparse for argument parsing + * Moved docs to a gh-pages branch. You can now access them +at http://chardet.github.io +- Changelog on https://github.com/chardet/chardet/commits/2.3.0 +- Other minor changes + +--- Old: chardet-2.1.1.tar.bz2 New: chardet-2.3.0.tar.bz2 python-chardet-rpmlintrc Other differences: -- ++ python-chardet.spec ++ --- /var/tmp/diff_new_pack.XRmpe1/_old 2015-02-18 12:08:53.0 +0100 +++ /var/tmp/diff_new_pack.XRmpe1/_new 2015-02-18 12:08:53.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-chardet # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,20 +17,18 @@ Name: python-chardet -Version:2.1.1 +Version:2.3.0 Release:0 Summary:Universal encoding detector License:LGPL-2.1+ Group: Development/Languages/Python -Url:http://chardet.feedparser.org/ -Source: chardet-%{version}.tar.bz2 +Url:https://github.com/chardet/chardet +Source0:chardet-%{version}.tar.bz2 +Source1:python-chardet-rpmlintrc BuildRequires: python-devel BuildRequires: python-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%else +%if 0%{?suse_version} > 1110 BuildArch: noarch %endif @@ -75,6 +73,6 @@ %files %defattr(-,root,root,-) %{python_sitelib}/* -%{_bindir}/chardetect.py +%{_bindir}/chardetect %changelog ++ chardet-2.1.1.tar.bz2 -> chardet-2.3.0.tar.bz2 ++ 6827 lines of diff (skipped) ++ python-chardet-rpmlintrc ++ # remove warnings about modules not being executable addFilter("non-executable-script") -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-chardet for openSUSE:Factory
Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2013-10-25 11:18:42 Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new (New) Package is "python-chardet" Changes: --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2012-10-09 13:59:16.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-chardet.new/python-chardet.changes 2013-10-25 11:18:42.0 +0200 @@ -1,0 +2,5 @@ +Thu Oct 24 11:00:03 UTC 2013 - speili...@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + +--- Other differences: -- ++ python-chardet.spec ++ --- /var/tmp/diff_new_pack.Z0nw47/_old 2013-10-25 11:18:44.0 +0200 +++ /var/tmp/diff_new_pack.Z0nw47/_new 2013-10-25 11:18:44.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-chardet # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,7 +25,7 @@ Url:http://chardet.feedparser.org/ Source: chardet-%{version}.tar.bz2 BuildRequires: python-devel -BuildRequires: python-distribute +BuildRequires: python-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-chardet for openSUSE:Factory
Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2012-10-09 13:53:40 Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new (New) Package is "python-chardet", Maintainer is "" Changes: --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2012-09-23 17:08:39.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-chardet.new/python-chardet.changes 2012-10-09 13:59:16.0 +0200 @@ -1,0 +2,6 @@ +Tue Oct 2 03:09:41 UTC 2012 - alexan...@exatati.com.br + +- Update to 2.1.1: + - Sorry, no changelog. + +--- Old: chardet-1.1.tar.bz2 New: chardet-2.1.1.tar.bz2 Other differences: -- ++ python-chardet.spec ++ --- /var/tmp/diff_new_pack.q3QZPJ/_old 2012-10-09 13:59:17.0 +0200 +++ /var/tmp/diff_new_pack.q3QZPJ/_new 2012-10-09 13:59:17.0 +0200 @@ -17,7 +17,7 @@ Name: python-chardet -Version:1.1 +Version:2.1.1 Release:0 Summary:Universal encoding detector License:LGPL-2.1+ ++ chardet-1.1.tar.bz2 -> chardet-2.1.1.tar.bz2 ++ 1805 lines of diff (skipped) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-chardet for openSUSE:Factory
Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2012-09-23 17:08:37 Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new (New) Package is "python-chardet", Maintainer is "" Changes: --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2012-02-15 22:24:40.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-chardet.new/python-chardet.changes 2012-09-23 17:08:39.0 +0200 @@ -1,0 +2,6 @@ +Fri Jul 27 15:10:36 UTC 2012 - alexan...@exatati.com.br + +- Update to 1.1: + - Sorry, no changelog. + +--- Old: python2-chardet-2.0.1.tar.bz2 New: chardet-1.1.tar.bz2 Other differences: -- ++ python-chardet.spec ++ --- /var/tmp/diff_new_pack.KFsybz/_old 2012-09-23 17:08:40.0 +0200 +++ /var/tmp/diff_new_pack.KFsybz/_new 2012-09-23 17:08:40.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-chardet # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -14,25 +14,25 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + Name: python-chardet -Version:2.0.1 +Version:1.1 Release:0 -Url:http://chardet.feedparser.org/ Summary:Universal encoding detector License:LGPL-2.1+ Group: Development/Languages/Python -Source: python2-chardet-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Url:http://chardet.feedparser.org/ +Source: chardet-%{version}.tar.bz2 BuildRequires: python-devel -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 +BuildRequires: python-distribute +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%else BuildArch: noarch %endif -%endif %description Universal character encoding detector @@ -51,8 +51,20 @@ - ISO-8859-8, windows-1255 (Visual and Logical Hebrew) - TIS-620 (Thai) +Requires Python 2.1 or later + +Command-line Tool +- + +chardet comes with a command-line script which reports on the encodings of one +or more files:: + +% chardetect.py somefile someotherfile +somefile: windows-1252 with confidence 0.5 +someotherfile: ascii with confidence 1.0 + %prep -%setup -q -n python2-chardet-%{version} +%setup -q -n chardet-%{version} %build python setup.py build @@ -63,5 +75,6 @@ %files %defattr(-,root,root,-) %{python_sitelib}/* +%{_bindir}/chardetect.py %changelog ++ python2-chardet-2.0.1.tar.bz2 -> chardet-1.1.tar.bz2 ++ 2183 lines of diff (skipped) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-chardet for openSUSE:Factory
Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at 2012-02-15 22:21:50 Comparing /work/SRC/openSUSE:Factory/python-chardet (Old) and /work/SRC/openSUSE:Factory/.python-chardet.new (New) Package is "python-chardet", Maintainer is "" Changes: --- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes 2011-09-23 12:42:31.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-chardet.new/python-chardet.changes 2012-02-15 22:24:40.0 +0100 @@ -1,0 +2,11 @@ +Wed Dec 28 22:18:53 UTC 2011 - alexan...@exatati.com.br + +- Standard in spec file; +- Remove CFLAGS and %clean section from spec file. + +--- +Thu Dec 8 11:12:41 UTC 2011 - co...@suse.com + +- the license seems to be LGPL-2.1+ + +--- Other differences: -- ++ python-chardet.spec ++ --- /var/tmp/diff_new_pack.IibMrS/_old 2012-02-15 22:24:58.0 +0100 +++ /var/tmp/diff_new_pack.IibMrS/_new 2012-02-15 22:24:58.0 +0100 @@ -14,22 +14,17 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - -# norootforbuild - %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%define mod_name chardet - -Name: python-%{mod_name} +Name: python-chardet Version:2.0.1 -Release:7 +Release:0 Url:http://chardet.feedparser.org/ Summary:Universal encoding detector -License:LGPL +License:LGPL-2.1+ Group: Development/Languages/Python -Source: python2-%{mod_name}-%{version}.tar.bz2 +Source: python2-chardet-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel %if 0%{?suse_version} @@ -57,24 +52,16 @@ - TIS-620 (Thai) %prep -%setup -q -n python2-%{mod_name}-%{version} +%setup -q -n python2-chardet-%{version} %build -export CFLAGS="%{optflags}" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%clean -rm -rf %{buildroot} - %files %defattr(-,root,root,-) -# You may have to add additional files here (documentation and binaries mostly) -%python_sitelib/%{mod_name}* -%if 0%{suse_version} > 1010 -%python_sitelib/*.egg-info -%endif +%{python_sitelib}/* %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-chardet for openSUSE:Factory
Hello community, here is the log from the commit of package python-chardet for openSUSE:Factory checked in at Thu Mar 31 15:52:49 CEST 2011. --- python-chardet/python-chardet.changes 2010-01-25 15:39:19.0 +0100 +++ python-chardet/python-chardet.changes 2011-03-26 03:17:27.0 +0100 @@ -1,0 +2,6 @@ +Sat Mar 26 02:11:35 UTC 2011 - alexan...@exatati.com.br + +- Regenerate spec file with py2pack; +- Bzip2 source file. + +--- calling whatdependson for head-i586 Old: python2-chardet-2.0.1.tar.gz New: python2-chardet-2.0.1.tar.bz2 Other differences: -- ++ python-chardet.spec ++ --- /var/tmp/diff_new_pack.l1BBjK/_old 2011-03-31 15:15:30.0 +0200 +++ /var/tmp/diff_new_pack.l1BBjK/_new 2011-03-31 15:15:30.0 +0200 @@ -1,7 +1,7 @@ # -# spec file for package python-chardet (Version 2.0.1) +# spec file for package python-chardet # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,39 +17,64 @@ # norootforbuild +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -Name: python-chardet +%define mod_name chardet + +Name: python-%{mod_name} Version:2.0.1 -Release:1 -Summary:Universal encoding detectorUniversal encoding detector +Release:7 +Url:http://chardet.feedparser.org/ +Summary:Universal encoding detector License:LGPL -Group: Development/Libraries/Python -Source: python2-chardet-%{version}.tar.gz -Url:http://chardet.feedparser.org -BuildRequires: python-devel python-setuptools +Group: Development/Languages/Python +Source: python2-%{mod_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{py_requires} -%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} +BuildRequires: python-devel +%if 0%{?suse_version} +%py_requires +%if 0%{?suse_version} > 1110 BuildArch: noarch %endif +%endif %description -Universal encoding detector. - -Author: - -Mark Pilgrim +Universal character encoding detector +- +Detects + - ASCII, UTF-8, UTF-16 (2 variants), UTF-32 (4 variants) + - Big5, GB2312, EUC-TW, HZ-GB-2312, ISO-2022-CN (Traditional and Simplified Chinese) + - EUC-JP, SHIFT_JIS, ISO-2022-JP (Japanese) + - EUC-KR, ISO-2022-KR (Korean) + - KOI8-R, MacCyrillic, IBM855, IBM866, ISO-8859-5, windows-1251 (Cyrillic) + - ISO-8859-2, windows-1250 (Hungarian) + - ISO-8859-5, windows-1251 (Bulgarian) + - windows-1252 (English) + - ISO-8859-7, windows-1253 (Greek) + - ISO-8859-8, windows-1255 (Visual and Logical Hebrew) + - TIS-620 (Thai) %prep -%setup -q -n python2-chardet-%{version} +%setup -q -n python2-%{mod_name}-%{version} %build -%{__python} setup.py build +export CFLAGS="%{optflags}" +python setup.py build %install -%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +# You may have to add additional files here (documentation and binaries mostly) +%python_sitelib/%{mod_name}* +%if 0%{suse_version} > 1010 +%python_sitelib/*.egg-info +%endif -%files -f INSTALLED_FILES -%defattr(-,root,root) %changelog ++ python2-chardet-2.0.1.tar.gz -> python2-chardet-2.0.1.tar.bz2 ++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org