From b0808d1c400b851270eab23368fee6f3ddf1c1c9661a693627cb77f68dc55ee4 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 24 May 2018 20:56:29 +0000 Subject: [PATCH] Accepting request 612023 from devel:languages:python:misc schema-based serialization and deserialization library OBS-URL: https://build.opensuse.org/request/show/612023 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colander?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + colander-1.4.tar.gz | 3 + python-colander.changes | 28 +++++++++ python-colander.spec | 123 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 178 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 colander-1.4.tar.gz create mode 100644 python-colander.changes create mode 100644 python-colander.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.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 +*.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..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/colander-1.4.tar.gz b/colander-1.4.tar.gz new file mode 100644 index 0000000..51e524e --- /dev/null +++ b/colander-1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e20e9acf190e5711cf96aa65a5405dac04b6e841028fc361d953a9923dbc4e72 +size 122253 diff --git a/python-colander.changes b/python-colander.changes new file mode 100644 index 0000000..b978df8 --- /dev/null +++ b/python-colander.changes @@ -0,0 +1,28 @@ +------------------------------------------------------------------- +Thu May 24 17:30:12 UTC 2018 - toddrme2178@gmail.com + +- spec file cleanups + +------------------------------------------------------------------- +Tue Sep 19 14:55:27 UTC 2017 - bruno@ioda-net.ch + +- Update to upstream 1.4 +- Backport python3 to singlespec + lang package + +------------------------------------------------------------------- +Thu Feb 9 22:32:43 UTC 2017 - hpj@urpla.net + +- version 1.3.2: initial build for python3 + +------------------------------------------------------------------- +Fri Feb 6 11:21:47 UTC 2015 - hpj@urpla.net + +- update to version 1.0 + to many changes to list here, check: + https://pypi.python.org/pypi/colander/1.0 + +------------------------------------------------------------------- +Mon Aug 5 16:32:46 UTC 2013 - hpj@urpla.net + +- version 1.0a5: initial build + diff --git a/python-colander.spec b/python-colander.spec new file mode 100644 index 0000000..27b3bf1 --- /dev/null +++ b/python-colander.spec @@ -0,0 +1,123 @@ +# +# spec file for package python-colander +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 LISA GmbH, Bingen, 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-colander +Version: 1.4 +Release: 0 +License: BSD-4-Clause and ZPL-2.1 and MIT +Summary: A simple schema-based serialization and deserialization library +Url: https://github.com/Pylons/colander +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/c/colander/colander-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module translationstring} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION documentation requirements +BuildRequires: %{python_module Sphinx} >= 1.3.1 +BuildRequires: %{python_module docutils} +BuildRequires: %{python_module pylons-sphinx-themes} +# /SECTION +# SECTION test requirements +BuildRequires: %{python_module iso8601} +BuildRequires: %{python_module hupper} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module plaster-pastedeploy} +BuildRequires: %{python_module plaster} +BuildRequires: %{python_module coverage} +# /SECTION +Requires: python-iso8601 +Requires: python-translationstring +BuildArch: noarch + +%python_subpackages + +%description +An extensible package which can be used to: + +- deserialize and validate a data structure composed of strings, + mappings, and lists. + +- serialize an arbitrary data structure to a data structure composed + of strings, mappings, and lists. + +It is tested on Python 2.7, 3.3, 3.4, 3.5, and 3.6, and PyPy. + +Please see http://docs.pylonsproject.org/projects/colander/en/latest/ +for documentation. + +%package doc +Summary: Documentation for %{name} +Group: Documentation/HTML +Requires: %{name} = %{version} + +%description doc +This package contains documentation files for %{name}. + +%package lang +Summary: Translations for package %{name} +Group: System/Localization +Requires: %{name} = %{version} +Requires: python-base +Provides: %{name}-lang-all = %{version} +Supplements: %{name} +BuildArch: noarch + +%description lang +Provides translations for the "%{name}" package. + +%prep +%setup -q -n colander-%{version} + +%build +%python_build +%python_exec setup.py build_sphinx && rm build/sphinx/html/.buildinfo + +%install +%python_install +%find_lang colander +%python_expand grep -F "%{$python_sitelib}" colander.lang > colander_%{$python_bin_suffix}.lang +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} + +%check +%python_exec setup.py nosetests --with-coverage + +%files %{python_files} +%license LICENSE.txt +%doc CHANGES.rst README.rst +%{python_sitelib}/* +%exclude %{python_sitelib}/colander/locale + +%if %have_python2 && ! 0%{?skip_python2} +%files -n %{python2_prefix}-colander-lang -f colander_%{python2_bin_suffix}.lang +%license LICENSE.txt +%{python2_sitelib}/colander/locale +%endif + +%if %have_python2 && ! 0%{?skip_python3} +%files -n %{python3_prefix}-colander-lang -f colander_%{python3_bin_suffix}.lang +%license LICENSE.txt +%{python3_sitelib}/colander/locale +%endif + +%files %{python_files doc} +%license LICENSE.txt +%doc build/sphinx/html + +%changelog