commit edd522674aa3f2daec41388c60b345a9870b3d5322ba59bd7510c9c950968f23 Author: Dirk Mueller Date: Tue Jun 6 08:19:45 2017 +0000 Accepting request 497350 from home:alois:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/497350 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kaitaistruct?expand=0&rev=1 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/kaitaistruct-0.7.tar.gz b/kaitaistruct-0.7.tar.gz new file mode 100644 index 0000000..1d7dda0 --- /dev/null +++ b/kaitaistruct-0.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:319caca6dd7051655b48457be4a06a236ce782606c347f1c226d6190abd543a6 +size 5117 diff --git a/python-kaitaistruct.changes b/python-kaitaistruct.changes new file mode 100644 index 0000000..9aa69a0 --- /dev/null +++ b/python-kaitaistruct.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon May 22 15:56:36 UTC 2017 - aloisio@gmx.com + +- Initial package (v. 0.7) + diff --git a/python-kaitaistruct.spec b/python-kaitaistruct.spec new file mode 100644 index 0000000..831d49d --- /dev/null +++ b/python-kaitaistruct.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-kaitaistruct +# +# 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 +# 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-kaitaistruct +Version: 0.7 +Release: 0 +Summary: Python library for kaitaistruct +License: MIT +Group: Development/Languages/Python +Url: http://kaitai.io +Source: https://files.pythonhosted.org/packages/source/k/kaitaistruct/kaitaistruct-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%python_subpackages + +%description +This library implements the Kaitai Struct API for Python. + +Kaitai Struct is a declarative language used to describe various binary data +structures, laid out in files or in memory: i.e. binary file formats, network +stream packet formats, etc. + +It is similar to Python’s [construct] and [Construct3], but it is +language-agnostic. +The format description is done in YAML-based .ksy format, which then can be +compiled into a wide range of target languages. + +%prep +%setup -q -n kaitaistruct-%{version} +rm -rf kaitaistruct.egg-info + +%build +%python_build + +%install +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} + +%files %{python_files} +%defattr(-,root,root,-) +%doc README.md +%pycache_only %{python_sitelib}/__pycache__ +%{python_sitelib}/kaitaistruct.py* +%{python_sitelib}/kaitaistruct-%{version}-py%{python_version}.egg-info + +%changelog