commit e8c942c5e795b8f1d55b520bff6b4e9d077c59f5d94de3046afc5b011ba2c0b6 Author: Tomáš Chvátal Date: Tue May 14 21:44:25 2019 +0000 Accepting request 702045 from home:jayvdb:py-new - De-vendor six - Enable builds on Python 2 and remove undesirable build dependencies OBS-URL: https://build.opensuse.org/request/show/702045 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mbstrdecoder?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/mbstrdecoder-0.8.0.tar.gz b/mbstrdecoder-0.8.0.tar.gz new file mode 100644 index 0000000..070e5df --- /dev/null +++ b/mbstrdecoder-0.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35f904cb1036ce723a5e6620b781e165c02b4cb4e5b49c6e8f8fd66e80584c0f +size 9118 diff --git a/python-mbstrdecoder.changes b/python-mbstrdecoder.changes new file mode 100644 index 0000000..dd48128 --- /dev/null +++ b/python-mbstrdecoder.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Fri May 10 16:22:14 UTC 2019 - John Vandenberg + +- De-vendor six +- Enable builds on Python 2 and remove undesirable build dependencies + +------------------------------------------------------------------- +Fri Jan 18 19:51:55 UTC 2019 - mardnh@gmx.de + +- Initial package, version 0.6.2 diff --git a/python-mbstrdecoder.spec b/python-mbstrdecoder.spec new file mode 100644 index 0000000..53ac7ae --- /dev/null +++ b/python-mbstrdecoder.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-mbstrdecoder +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# 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/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-mbstrdecoder +Version: 0.8.0 +Release: 0 +Summary: Multi-byte character string decoder +License: MIT +Group: Development/Languages/Python +URL: https://github.com/thombashi/mbstrdecoder +Source: https://files.pythonhosted.org/packages/source/m/mbstrdecoder/mbstrdecoder-%{version}.tar.gz +BuildRequires: %{python_module chardet >= 3.0.4} +BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-chardet >= 3.0.4 +Requires: python-six +BuildArch: noarch +%python_subpackages + +%description +Python library for multi-byte character string decoding. + +%prep +%setup -q -n mbstrdecoder-%{version} +# De-vendor six +rm mbstrdecoder/_six.py +sed -i 's/\._six/six/' mbstrdecoder/_mbstrdecoder.py + +find . -type f | xargs chmod -x + +echo > requirements/test_requirements.txt + +# Remove build alias +sed -i '/build =/d' setup.cfg + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_exec setup.py test + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/* + +%changelog