2013-04-30 13:22:38 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-construct
|
|
|
|
#
|
2017-01-23 14:35:02 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-04-30 13:22:38 +02:00
|
|
|
#
|
|
|
|
# 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/
|
2014-05-08 15:16:42 +02:00
|
|
|
#
|
2013-04-30 13:22:38 +02:00
|
|
|
|
|
|
|
|
2017-04-26 07:34:51 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-04-30 13:22:38 +02:00
|
|
|
Name: python-construct
|
2017-08-26 11:17:39 +02:00
|
|
|
Version: 2.8.12
|
2013-04-30 13:22:38 +02:00
|
|
|
Release: 0
|
2017-08-26 19:09:05 +02:00
|
|
|
Summary: A declarative parser/builder for binary data
|
2014-05-08 15:16:42 +02:00
|
|
|
License: MIT
|
2013-04-30 13:22:38 +02:00
|
|
|
Group: Development/Languages/Python
|
2014-05-08 15:16:42 +02:00
|
|
|
Url: http://construct.readthedocs.org
|
2017-04-26 07:34:51 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/c/construct/construct-%{version}.tar.gz
|
2013-05-08 09:42:14 +02:00
|
|
|
# PATCH-FEATURE-OPENSUSE split_debug.patch matwey.kornilov@gmail.com -- make debug.py non-loadable
|
|
|
|
Patch0: split_debug.patch
|
2017-04-26 07:34:51 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2013-04-30 13:22:38 +02:00
|
|
|
Requires: python-six
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2017-04-26 07:34:51 +02:00
|
|
|
%python_subpackages
|
2013-04-30 13:22:38 +02:00
|
|
|
|
|
|
|
%description
|
2017-08-26 19:09:05 +02:00
|
|
|
Construct is a declarative parser (and builder) for binary data.
|
2013-04-30 13:22:38 +02:00
|
|
|
|
2017-08-26 19:09:05 +02:00
|
|
|
Instead of writing imperative code to parse a piece of data, a data
|
|
|
|
structure that describes the data is declared. As this data structure is not
|
|
|
|
code, it can be used in one direction to parse data into Pythonic objects,
|
|
|
|
and in the other direction to convert ("build") objects into binary data.
|
2013-04-30 13:22:38 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n construct-%{version}
|
2013-05-08 09:42:14 +02:00
|
|
|
%patch0 -p1
|
2013-04-30 13:22:38 +02:00
|
|
|
|
|
|
|
%build
|
2017-04-26 07:34:51 +02:00
|
|
|
%python_build
|
2013-04-30 13:22:38 +02:00
|
|
|
|
|
|
|
%install
|
2017-04-26 07:34:51 +02:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
2013-04-30 13:22:38 +02:00
|
|
|
|
2017-04-26 07:34:51 +02:00
|
|
|
%files %{python_files}
|
2013-04-30 13:22:38 +02:00
|
|
|
%defattr(-,root,root,-)
|
2013-04-30 13:30:29 +02:00
|
|
|
%doc LICENSE README.rst
|
2017-04-26 07:34:51 +02:00
|
|
|
%{python_sitelib}/construct
|
|
|
|
%{python_sitelib}/construct-%{version}-py%{python_version}.egg-info
|
2013-04-30 13:22:38 +02:00
|
|
|
|
2014-05-08 15:16:42 +02:00
|
|
|
%changelog
|