commit 94abfeb14e6dfd6a34e2d813ec93b606db2c5a6e4bd89c185c6ec02c2b0c9ef7 Author: Tomáš Chvátal Date: Mon Mar 4 09:11:23 2019 +0000 Accepting request 677293 from home:jayvdb:moban - Initial spec for v4.1.2 OBS-URL: https://build.opensuse.org/request/show/677293 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cbor2?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/cbor2-4.1.2.tar.gz b/cbor2-4.1.2.tar.gz new file mode 100644 index 0000000..59c8172 --- /dev/null +++ b/cbor2-4.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17b615da69964f87e48c5adb34ba63db3068f65b9cd14a7b099503d9f8a0e9ae +size 23498 diff --git a/python-cbor2.changes b/python-cbor2.changes new file mode 100644 index 0000000..c989355 --- /dev/null +++ b/python-cbor2.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Feb 19 02:42:46 AM UTC 2019 - John Vandenberg + +- Initial spec for v4.1.2 diff --git a/python-cbor2.spec b/python-cbor2.spec new file mode 100644 index 0000000..748918b --- /dev/null +++ b/python-cbor2.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-cbor2 +# +# 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 https://bugs.opensuse.org/ +# + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-cbor2 +Version: 4.1.2 +Release: 0 +Summary: Pure Python CBOR (de)serializer with extensive tag support +License: MIT +Group: Development/Languages/Python +URL: https://github.com/agronholm/cbor2 +Source: https://files.pythonhosted.org/packages/source/c/cbor2/cbor2-%{version}.tar.gz +BuildRequires: %{python_module setuptools >= 36.2.7} +BuildRequires: %{python_module setuptools_scm >= 1.7.0} +BuildRequires: %{python_module pytest} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +Pure Python CBOR (de)serializer with extensive tag support + +%prep +%setup -q -n cbor2-%{version} +# Remove test dependency on pytest-cov +sed -i 's/--cov//' setup.cfg + +%build +# py27 bug in setuptools{_scm} https://github.com/agronholm/cbor2/issues/38 +export LANG=en_US.UTF8 +%python_build + +%install +export LANG=en_US.UTF8 +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_exec -m pytest + +%files %{python_files} +%doc README.rst +%license LICENSE.txt +%{python_sitelib}/* + +%changelog